Author: tkreuzer Date: Sat Feb 7 17:46:56 2009 New Revision: 39467
URL: http://svn.reactos.org/svn/reactos?rev=39467&view=rev Log: Add InitializeSListHead and QueryDepthSList to winbase.h Remove QueryDepthSList from winddk.h Fix definion of ExQueryDepthSList in winddk.h
Modified: trunk/reactos/include/ddk/winddk.h trunk/reactos/include/psdk/winbase.h
Modified: trunk/reactos/include/ddk/winddk.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/winddk.h?rev=39... ============================================================================== --- trunk/reactos/include/ddk/winddk.h [iso-8859-1] (original) +++ trunk/reactos/include/ddk/winddk.h [iso-8859-1] Sat Feb 7 17:46:56 2009 @@ -6510,14 +6510,6 @@
#endif
-/* - * USHORT - * QueryDepthSList( - * IN PSLIST_HEADER SListHead) - */ -#define QueryDepthSList(_SListHead) \ - ((USHORT) ((_SListHead)->Alignment & 0xffff)) - #define InterlockedFlushSList(ListHead) ExInterlockedFlushSList(ListHead)
NTSYSAPI @@ -7621,7 +7613,22 @@ 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(
Modified: trunk/reactos/include/psdk/winbase.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winbase.h?rev=... ============================================================================== --- trunk/reactos/include/psdk/winbase.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/winbase.h [iso-8859-1] Sat Feb 7 17:46:56 2009 @@ -1772,6 +1772,9 @@
#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