1 
2 CROSSNT_DECL(
3 HANDLE,__stdcall,
4 PsGetCurrentProcessId,(),())
5 
6 CROSSNT_DECL(
7 HANDLE,__stdcall,
8 PsGetCurrentThreadId,(),())
9 
10 CROSSNT_DECL(
11 BOOLEAN,
12 __fastcall,
13 KeTestSpinLock,(
14     IN PKSPIN_LOCK SpinLock
15     ),
16     (
17     SpinLock
18     ))
19 
20 CROSSNT_DECL(
21 LONG,
22 __fastcall,
23 InterlockedIncrement,(
24     IN OUT PLONG Addend
25     ),
26     (
27     IN OUT PLONG Addend
28     ))
29 
30 CROSSNT_DECL(
31 LONG,
32 __fastcall,
33 InterlockedDecrement,(
34     IN OUT PLONG Addend
35     ),
36     (
37     IN OUT PLONG Addend
38     ))
39 
40 CROSSNT_DECL(
41 LONG,
42 __fastcall,
43 InterlockedExchangeAdd,(
44     IN OUT PLONG Addend,
45     IN LONG Increment
46     ),
47     (
48     IN OUT PLONG Addend,
49     IN LONG Increment
50     ))
51 
52 CROSSNT_DECL(
53 PVOID,
54 __fastcall,
55 InterlockedCompareExchange,(
56     IN OUT PVOID *Destination,
57     IN PVOID ExChange,
58     IN PVOID Comperand
59     ),
60     (
61     IN OUT PVOID *Destination,
62     IN PVOID ExChange,
63     IN PVOID Comperand
64     ))
65 
66 CROSSNT_DECL_EX("HAL.DLL",
67 KIRQL,__stdcall,
68 KeRaiseIrqlToDpcLevel,(),())
69 
70 CROSSNT_DECL_EX("HAL.DLL",
71 KIRQL,__stdcall,
72 KeRaiseIrqlToSynchLevel,(),())
73 
74 CROSSNT_DECL_EX("NDIS.SYS",
75 VOID,
76 __stdcall,
77 NdisInitializeReadWriteLock,(
78     IN PNDIS_RW_LOCK Lock
79     ),
80     (
81     Lock
82     ))
83 
84 CROSSNT_DECL_EX("NDIS.SYS",
85 VOID,
86 __stdcall,
87 NdisAcquireReadWriteLock,(
88     IN PNDIS_RW_LOCK Lock,
89     IN BOOLEAN       fWrite,
90     IN PLOCK_STATE   LockState
91     ),
92     (
93     Lock,
94     fWrite,
95     LockState
96     ))
97 
98 CROSSNT_DECL_EX("NDIS.SYS",
99 VOID,
100 __stdcall,
101 NdisReleaseReadWriteLock,(
102     IN PNDIS_RW_LOCK Lock,
103     IN PLOCK_STATE   LockState
104     ),
105     (
106     Lock,
107     LockState
108     ))
109 
110