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 #ifndef USE_REACTOS_DDK 21 22 CROSSNT_DECL( 23 LONG, 24 __fastcall, 25 InterlockedIncrement,( 26 IN OUT PLONG Addend 27 ), 28 ( 29 IN OUT PLONG Addend 30 )) 31 32 CROSSNT_DECL( 33 LONG, 34 __fastcall, 35 InterlockedDecrement,( 36 IN OUT PLONG Addend 37 ), 38 ( 39 IN OUT PLONG Addend 40 )) 41 42 CROSSNT_DECL( 43 LONG, 44 __fastcall, 45 InterlockedExchangeAdd,( 46 IN OUT PLONG Addend, 47 IN LONG Increment 48 ), 49 ( 50 IN OUT PLONG Addend, 51 IN LONG Increment 52 )) 53 54 CROSSNT_DECL( 55 PVOID, 56 __fastcall, 57 InterlockedCompareExchange,( 58 IN OUT PVOID *Destination, 59 IN PVOID ExChange, 60 IN PVOID Comperand 61 ), 62 ( 63 IN OUT PVOID *Destination, 64 IN PVOID ExChange, 65 IN PVOID Comperand 66 )) 67 68 #else 69 70 #define CrNtInterlockedIncrement InterlockedIncrement 71 #define CrNtInterlockedDecrement InterlockedDecrement 72 #define CrNtInterlockedExchangeAdd InterlockedExchangeAdd 73 #define CrNtInterlockedCompareExchange InterlockedCompareExchange 74 75 #endif // !USE_REACTOS_DDK 76 77 CROSSNT_DECL_EX("HAL.DLL", 78 KIRQL,__stdcall, 79 KeRaiseIrqlToDpcLevel,(),()) 80 81 CROSSNT_DECL_EX("HAL.DLL", 82 KIRQL,__stdcall, 83 KeRaiseIrqlToSynchLevel,(),()) 84 85 CROSSNT_DECL_EX("NDIS.SYS", 86 VOID, 87 __stdcall, 88 NdisInitializeReadWriteLock,( 89 IN PNDIS_RW_LOCK Lock 90 ), 91 ( 92 Lock 93 )) 94 95 CROSSNT_DECL_EX("NDIS.SYS", 96 VOID, 97 __stdcall, 98 NdisAcquireReadWriteLock,( 99 IN PNDIS_RW_LOCK Lock, 100 IN BOOLEAN fWrite, 101 IN PLOCK_STATE LockState 102 ), 103 ( 104 Lock, 105 fWrite, 106 LockState 107 )) 108 109 CROSSNT_DECL_EX("NDIS.SYS", 110 VOID, 111 __stdcall, 112 NdisReleaseReadWriteLock,( 113 IN PNDIS_RW_LOCK Lock, 114 IN PLOCK_STATE LockState 115 ), 116 ( 117 Lock, 118 LockState 119 )) 120 121