Rev 5522 | Go to most recent revision | 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 | MutexInit,\ |
||
9056 | turbocat | 67 | MutexLock,\ |
68 | MutexUnlock,\ |
||
69 | \ |
||
4419 | clevermous | 70 | PciApi,\ |
71 | PciRead32,\ |
||
72 | PciRead16,\ |
||
73 | PciRead8,\ |
||
74 | PciWrite8,\ |
||
75 | PciWrite16,\ |
||
76 | PciWrite32,\ |
||
77 | \ |
||
78 | AllocPage,\ |
||
79 | AllocPages,\ |
||
80 | FreePage,\ |
||
81 | MapPage,\ |
||
82 | MapSpace,\ |
||
83 | MapIoMem,\ |
||
84 | GetPgAddr,\ |
||
85 | GetPhysAddr,\ |
||
86 | CommitPages,\ |
||
87 | ReleasePages,\ |
||
88 | \ |
||
89 | AllocKernelSpace,\ |
||
90 | FreeKernelSpace,\ |
||
91 | KernelAlloc,\ |
||
92 | KernelFree,\ |
||
93 | UserAlloc,\ |
||
94 | UserFree,\ |
||
95 | Kmalloc,\ |
||
96 | Kfree,\ |
||
97 | CreateRingBuffer,\ |
||
98 | AllocDMA24,\ |
||
5057 | clevermous | 99 | \ |
4419 | clevermous | 100 | GetPid,\ |
101 | CreateThread,\ |
||
102 | CreateObject,\ |
||
103 | DestroyObject,\ |
||
104 | CreateEvent,\ |
||
105 | RaiseEvent,\ |
||
106 | WaitEvent,\ |
||
107 | DestroyEvent,\ |
||
108 | ClearEvent,\ |
||
109 | \ |
||
110 | LoadCursor,\ |
||
111 | SelectHwCursor,\ |
||
112 | SetHwCursor,\ |
||
113 | HwCursorRestore,\ |
||
114 | HwCursorCreate,\ |
||
115 | \ |
||
116 | SysMsgBoardStr,\ |
||
117 | SysMsgBoard,\ |
||
118 | GetCurrentTask,\ |
||
119 | LoadFile,\ |
||
120 | SendEvent,\ |
||
121 | SetMouseData,\ |
||
122 | SetKeyboardData,\ |
||
123 | RegKeyboard,\ |
||
124 | DelKeyboard,\ |
||
125 | Sleep,\ |
||
126 | GetTimerTicks,\ |
||
127 | \ |
||
128 | strncat,\ |
||
129 | strncpy,\ |
||
130 | strncmp,\ |
||
131 | strnlen,\ |
||
132 | strchr,\ |
||
133 | strrchr,\ |
||
134 | \ |
||
135 | LFBAddress,\ |
||
136 | GetDisplay,\ |
||
137 | SetScreen,\ |
||
138 | \ |
||
139 | RegUSBDriver,\ |
||
140 | USBOpenPipe,\ |
||
141 | USBNormalTransferAsync,\ |
||
142 | USBControlTransferAsync,\ |
||
143 | USBGetParam,\ |
||
144 | USBHCFunc,\ |
||
145 | \ |
||
146 | DiskAdd,\ |
||
147 | DiskMediaChanged,\ |
||
148 | DiskDel,\ |
||
149 | \ |
||
150 | TimerHS,\ |
||
151 | CancelTimerHS,\ |
||
4453 | clevermous | 152 | \ |
153 | NetRegDev,\ |
||
4522 | hidnplayr | 154 | NetUnRegDev,\ |
155 | NetPtrToNum,\ |
||
156 | NetLinkChanged,\ |
||
157 | EthInput,\ |
||
5522 | hidnplayr | 158 | NetAlloc,\ |
159 | NetFree,\ |
||
160 | \ |
||
4522 | hidnplayr | 161 | GetPCIList, \ |
9056 | turbocat | 162 | \ |
163 | FS_Service |
||
164 | |||
165 | |||
4419 | clevermous | 166 |