diff --git a/reactos/include/ddk/winddk.h b/reactos/include/ddk/winddk.h index bd3f5691c77..55f2d6d9643 100644 --- a/reactos/include/ddk/winddk.h +++ b/reactos/include/ddk/winddk.h @@ -6510,14 +6510,6 @@ InterlockedPushEntrySList( #endif -/* - * USHORT - * QueryDepthSList( - * IN PSLIST_HEADER SListHead) - */ -#define QueryDepthSList(_SListHead) \ - ((USHORT) ((_SListHead)->Alignment & 0xffff)) - #define InterlockedFlushSList(ListHead) ExInterlockedFlushSList(ListHead) NTSYSAPI @@ -7621,7 +7613,22 @@ ExFreePoolWithTag( IN PVOID P, IN ULONG Tag); -#define ExQueryDepthSList(ListHead) QueryDepthSList(ListHead) +#if defined (_WIN64) +#if defined(_NTDRIVER_) || defined(_NTDDK) || defined(_NTIFS_) || defined(_NTHAL_) || defined(_NTOSP_) +NTKRNLAPI +USHORT +ExQueryDepthSList(IN PSLIST_HEADER Listhead); +#else +FORCEINLINE +USHORT +ExQueryDepthSList(IN PSLIST_HEADER Listhead) +{ + return (USHORT)(ListHead->Alignment & 0xffff); +} +#endif +#else +#define ExQueryDepthSList(listhead) (listhead)->Depth +#endif static __inline VOID ExFreeToNPagedLookasideList( diff --git a/reactos/include/psdk/winbase.h b/reactos/include/psdk/winbase.h index dabf09dcbaf..5768a0016e6 100644 --- a/reactos/include/psdk/winbase.h +++ b/reactos/include/psdk/winbase.h @@ -1772,6 +1772,9 @@ PSLIST_ENTRY WINAPI InterlockedPushEntrySList(PSLIST_HEADER,PSLIST_ENTRY); #endif // !(defined (_M_AMD64) || defined (_M_IA64)) +VOID WINAPI InitializeSListHead(PSLIST_HEADER); +USHORT WINAPI QueryDepthSList(PSLIST_HEADER); + #if !defined(InterlockedAnd) #define InterlockedAnd InterlockedAnd_Inline FORCEINLINE