Line | |
---|
1 | .486
|
---|
2 | .model flat, stdcall
|
---|
3 |
|
---|
4 | ImportTrap MACRO name, arg
|
---|
5 | @CATSTR(<alias__imp__>, name) LABEL DWORD
|
---|
6 | @CATSTR(<_imp__>, name, <@>, arg) dd ?
|
---|
7 | PUBLIC @CATSTR(<_imp__>, name, <@>, arg)
|
---|
8 | PUBLIC @CATSTR(<alias__imp__>, name)
|
---|
9 | ENDM
|
---|
10 |
|
---|
11 | .const
|
---|
12 | TrapTableFirst LABEL DWORD
|
---|
13 | ImportTrap IsDebuggerPresent, 0
|
---|
14 | ImportTrap EncodePointer, 4
|
---|
15 | ImportTrap DecodePointer, 4
|
---|
16 | ImportTrap IsProcessorFeaturePresent, 4
|
---|
17 | ImportTrap HeapSetInformation, 16
|
---|
18 | ImportTrap InitializeCriticalSectionAndSpinCount, 8
|
---|
19 | ImportTrap InterlockedPushEntrySList, 8
|
---|
20 | ImportTrap InterlockedPopEntrySList, 4
|
---|
21 | ImportTrap InterlockedCompareExchange, 12
|
---|
22 | TrapTableLast LABEL DWORD
|
---|
23 |
|
---|
24 | REPEAT 4096 - (TrapTableLast - TrapTableFirst)
|
---|
25 | db ?
|
---|
26 | ENDM
|
---|
27 |
|
---|
28 | PUBLIC TrapTableFirst
|
---|
29 | PUBLIC TrapTableLast
|
---|
30 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.