Rev 9056 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4419 | clevermous | 1 | |
2 | ; Based on import32.inc from FASM, with small modifications |
||
3 | ; and list of actual kernel exports. |
||
4 | |||
5 | |||
6 | { common |
||
7 | import.data: |
||
8 | forward |
||
9 | local _label |
||
10 | if defined name#.redundant |
||
11 | if ~ name#.redundant |
||
12 | dd 0,0,0,RVA _label,RVA name#.address |
||
13 | end if |
||
14 | end if |
||
15 | name#.referred = 1 |
||
16 | common |
||
17 | dd 0,0,0,0,0 |
||
18 | forward |
||
19 | if defined name#.redundant |
||
20 | if ~ name#.redundant |
||
21 | _label db string,0 |
||
22 | end if |
||
23 | end if } |
||
24 | |||
25 | |||
26 | { common |
||
27 | rb (- rva $) and 3 |
||
28 | if defined name#.referred |
||
29 | name#.address: |
||
30 | forward |
||
31 | if used label |
||
32 | local _label |
||
33 | label dd RVA _label |
||
34 | label#._pe_import = 1 |
||
35 | end if |
||
36 | common |
||
37 | if $ > name#.address |
||
38 | name#.redundant = 0 |
||
39 | dw 0 |
||
40 | else |
||
41 | name#.redundant = 1 |
||
42 | end if |
||
43 | forward |
||
44 | if used label |
||
45 | _label dw 0 |
||
46 | db `label |
||
4522 | hidnplayr | 47 | end if |
4419 | clevermous | 48 | common |
49 | db 0 |
||
50 | end if } |
||
51 | |||
52 | |||
53 | data import |
||
54 | library core,'core.dll' |
||
55 | import core,\ |
||
56 | RegService,\ |
||
57 | GetService,\ |
||
58 | ServiceHandler,\ |
||
59 | AttachIntHandler,\ |
||
60 | GetIntHandler,\ |
||
61 | FpuSave,\ |
||
62 | FpuRestore,\ |
||
63 | ReservePortArea,\ |
||
64 | Boot_Log,\ |
||
65 | \ |
||
66 | FsRead32Sys,\ |
||
9924 | Doczom | 67 | FsRead32App,\ |
68 | FsRead64Sys,\ |
||
69 | FsRead64App,\ |
||
70 | \ |
||
71 | FsWrite32Sys,\ |
||
72 | FsWrite32App,\ |
||
73 | FsWrite64Sys,\ |
||
74 | FsWrite64App,\ |
||
75 | \ |
||
76 | FsAdd,\ |
||
77 | \ |
||
78 | DiskSync,\ |
||
79 | \ |
||
80 | MutexInit,\ |
||
9056 | turbocat | 81 | MutexLock,\ |
82 | MutexUnlock,\ |
||
83 | \ |
||
4419 | clevermous | 84 | PciApi,\ |
85 | PciRead32,\ |
||
86 | PciRead16,\ |
||
87 | PciRead8,\ |
||
88 | PciWrite8,\ |
||
89 | PciWrite16,\ |
||
90 | PciWrite32,\ |
||
91 | \ |
||
92 | AllocPage,\ |
||
93 | AllocPages,\ |
||
94 | FreePage,\ |
||
95 | MapPage,\ |
||
96 | MapSpace,\ |
||
97 | MapIoMem,\ |
||
98 | GetPgAddr,\ |
||
99 | GetPhysAddr,\ |
||
100 | CommitPages,\ |
||
101 | ReleasePages,\ |
||
102 | \ |
||
103 | AllocKernelSpace,\ |
||
104 | FreeKernelSpace,\ |
||
105 | KernelAlloc,\ |
||
106 | KernelFree,\ |
||
107 | UserAlloc,\ |
||
108 | UserFree,\ |
||
109 | Kmalloc,\ |
||
110 | Kfree,\ |
||
111 | CreateRingBuffer,\ |
||
112 | AllocDMA24,\ |
||
5057 | clevermous | 113 | \ |
4419 | clevermous | 114 | GetPid,\ |
115 | CreateThread,\ |
||
116 | CreateObject,\ |
||
117 | DestroyObject,\ |
||
118 | CreateEvent,\ |
||
119 | RaiseEvent,\ |
||
120 | WaitEvent,\ |
||
121 | DestroyEvent,\ |
||
122 | ClearEvent,\ |
||
123 | \ |
||
124 | LoadCursor,\ |
||
125 | SelectHwCursor,\ |
||
126 | SetHwCursor,\ |
||
127 | HwCursorRestore,\ |
||
128 | HwCursorCreate,\ |
||
129 | \ |
||
130 | SysMsgBoardStr,\ |
||
131 | SysMsgBoard,\ |
||
132 | GetCurrentTask,\ |
||
133 | LoadFile,\ |
||
134 | SendEvent,\ |
||
135 | SetMouseData,\ |
||
136 | SetKeyboardData,\ |
||
137 | RegKeyboard,\ |
||
138 | DelKeyboard,\ |
||
139 | Sleep,\ |
||
140 | GetTimerTicks,\ |
||
141 | \ |
||
142 | strncat,\ |
||
143 | strncpy,\ |
||
144 | strncmp,\ |
||
145 | strnlen,\ |
||
146 | strchr,\ |
||
147 | strrchr,\ |
||
148 | \ |
||
149 | LFBAddress,\ |
||
150 | GetDisplay,\ |
||
151 | SetScreen,\ |
||
152 | \ |
||
153 | RegUSBDriver,\ |
||
154 | USBOpenPipe,\ |
||
155 | USBNormalTransferAsync,\ |
||
156 | USBControlTransferAsync,\ |
||
157 | USBGetParam,\ |
||
158 | USBHCFunc,\ |
||
159 | \ |
||
160 | DiskAdd,\ |
||
161 | DiskMediaChanged,\ |
||
162 | DiskDel,\ |
||
163 | \ |
||
164 | TimerHS,\ |
||
165 | CancelTimerHS,\ |
||
4453 | clevermous | 166 | \ |
167 | NetRegDev,\ |
||
4522 | hidnplayr | 168 | NetUnRegDev,\ |
169 | NetPtrToNum,\ |
||
170 | NetLinkChanged,\ |
||
171 | EthInput,\ |
||
5522 | hidnplayr | 172 | NetAlloc,\ |
173 | NetFree,\ |
||
174 | \ |
||
4522 | hidnplayr | 175 | GetPCIList, \ |
9056 | turbocat | 176 | \ |
177 | FS_Service |
||
178 | |||
179 | |||
4419 | clevermous | 180 |