Add InitializeSListHead and QueryDepthSList to winbase.h

Remove QueryDepthSList from winddk.h
Fix definion of ExQueryDepthSList in winddk.h

svn path=/trunk/; revision=39467
This commit is contained in:
Timo Kreuzer 2009-02-07 23:46:56 +00:00
parent 5e8a4f674a
commit 9f5a99cfcf
2 changed files with 19 additions and 9 deletions

View file

@ -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(

View file

@ -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