summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/ddk/ntddk.h
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2004-10-15 01:18:11 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2004-10-15 01:18:11 +0000
commit12a638f990d6bb2456097cc303f3ace6cfb5ec3b (patch)
tree6c838ab27eff7b4e680bd4318e88305d33373744 /winsup/w32api/include/ddk/ntddk.h
parent902edd4512f1ab29d0d764effb8c10912e9581ba (diff)
downloadcygnal-12a638f990d6bb2456097cc303f3ace6cfb5ec3b.tar.gz
cygnal-12a638f990d6bb2456097cc303f3ace6cfb5ec3b.tar.bz2
cygnal-12a638f990d6bb2456097cc303f3ace6cfb5ec3b.zip
2004-10-15 Robert Wruck <wruck@tweerlei.de>
Danny Smith <dannysmith@users.sourceforge.net> = include/winbase.h (InitializeSListHead, Interlocked*): Guard with !__USE_NTOSKRNL__. * include/ddk/ntddk.h (__USE_NTOSKRNL__): Define. * include/ddk/winddk.h (InitializeSListHead, Interlocked*): Guard with __USE_NTOSKRNL__. (ExInterlockedPopEntrySList, ExInterlockedPushEntrySList): Add prototypes. Guard macro definition with __USE_NTOSKRNL__ && _WIN32_WINNT >= 0x0501 (ExAllocateFromNPagedLookasideList, ExAllocateFromPagedLookasideList, ExFreeToNPagedLookasideList, ExFreeToPagedLookasideList): Replace calts to InterlockedPopEntrySList, InterlockedPushEntrySList with ExInterlockedPopEntrySList, ExInterlockedPushEntrySList. * lib/ddk/ntosknl.def (ExInterlockedPopEntrySList, ExInterlockedPushEntrySList) Add stubs with fastcall decoration. (ExDesktopObjectType, ExEventObjectType, ExSemaphoreObjectType, ExWindowStationObjectType, IoAdapterObjectType, IoDeviceHandlerObjectSize, IoDeviceHandlerObjectType, IoDeviceObjectType, IoDriverObjectType, IoFileObjectType, LpcPortObjectType, MmSectionObjectType, SeTokenObjectType): Uncomment stubs.
Diffstat (limited to 'winsup/w32api/include/ddk/ntddk.h')
-rw-r--r--winsup/w32api/include/ddk/ntddk.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/winsup/w32api/include/ddk/ntddk.h b/winsup/w32api/include/ddk/ntddk.h
index d227fe98e..fd78905fd 100644
--- a/winsup/w32api/include/ddk/ntddk.h
+++ b/winsup/w32api/include/ddk/ntddk.h
@@ -19,9 +19,10 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* DEFINES:
- * DBG - Debugging enabled/disabled (0/1)
- * POOL_TAGGING - Enable pool tagging
- * _X86_ - X86 environment
+ * DBG - Debugging enabled/disabled (0/1)
+ * POOL_TAGGING - Enable pool tagging
+ * _X86_ - X86 environment
+ * __USE_NTOSKRNL__ - Use ntoskrnl.exe exports instead of kernel32.dll
*/
#ifndef __NTDDK_H
@@ -31,6 +32,10 @@
#pragma GCC system_header
#endif
+#ifndef __USE_NTOSKRNL__
+#define __USE_NTOSKRNL__ 1
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif