Declare Guarded Mutex functions and export them
Modified: trunk/reactos/ntoskrnl/ntoskrnl.def
Modified: trunk/reactos/w32api/include/ddk/winddk.h

Modified: trunk/reactos/ntoskrnl/ntoskrnl.def
--- trunk/reactos/ntoskrnl/ntoskrnl.def	2005-06-16 21:02:52 UTC (rev 15939)
+++ trunk/reactos/ntoskrnl/ntoskrnl.def	2005-06-16 22:15:43 UTC (rev 15940)
@@ -508,6 +508,8 @@
 Ke386IoSetAccessProcess@8
 Ke386QueryIoAccessMap@8
 Ke386SetIoAccessMap@8
+@KeAcquireGuardedMutex@4
+@KeAcquireGuardedMutexUnsafe@4
 KeAcquireSpinLockAtDpcLevel@4
 @KeAcquireDispatcherDatabaseLockAtDpcLevel@0
 @KeAcquireInStackQueuedSpinLockAtDpcLevel@8
@@ -529,6 +531,7 @@
 KeDetachProcess@0
 KeDisconnectInterrupt@4
 KeEnterCriticalRegion@0
+KeEnterGuardedRegion@0
 KeEnterKernelDebugger@0
 KeFindConfigurationEntry@16
 KeFindConfigurationNextEntry@20
@@ -552,6 +555,7 @@
 KeInitializeDeviceQueue@4
 KeInitializeDpc@12
 KeInitializeEvent@12
+@KeInitializeGuardedMutex@4
 KeInitializeInterrupt@44
 KeInitializeMutant@8
 KeInitializeMutex@8
@@ -569,6 +573,7 @@
 KeIsAttachedProcess@0
 KeIsExecutingDpc@0
 KeLeaveCriticalRegion@0
+KeLeaveGuardedRegion@0
 KeLoaderBlock DATA
 KeNumberProcessors DATA
 KeProfileInterrupt@4
@@ -591,6 +596,8 @@
 KeRegisterBugCheckCallback@20
 KeRegisterBugCheckReasonCallback@16
 @KeReleaseDispatcherDatabaseLockFromDpcLevel@0
+@KeReleaseGuardedMutexUnsafe@4
+@KeReleaseGuardedMutex@4
 @KeReleaseInStackQueuedSpinLockFromDpcLevel@4
 KeReleaseInterruptSpinLock@8
 KeReleaseMutant@16
@@ -633,6 +640,7 @@
 KeSynchronizeExecution@12
 KeTerminateThread@4
 KeTickCount DATA
+@KeTryToAcquireGuardedMutex@4
 KeUpdateRunTime@8
 KeUpdateSystemTime@8
 KeUnstackDetachProcess@4

Modified: trunk/reactos/w32api/include/ddk/winddk.h
--- trunk/reactos/w32api/include/ddk/winddk.h	2005-06-16 21:02:52 UTC (rev 15939)
+++ trunk/reactos/w32api/include/ddk/winddk.h	2005-06-16 22:15:43 UTC (rev 15940)
@@ -5350,6 +5350,52 @@
 #endif
 
 
+/* Guarded Mutex routines */
+
+VOID 
+FASTCALL
+KeAcquireGuardedMutex(
+    PKGUARDED_MUTEX GuardedMutex
+);
+
+VOID
+FASTCALL
+KeAcquireGuardedMutexUnsafe(
+    PKGUARDED_MUTEX GuardedMutex
+);
+
+VOID 
+STDCALL
+KeEnterGuardedRegion(VOID);
+
+VOID
+STDCALL
+KeLeaveGuardedRegion(VOID);
+
+VOID 
+FASTCALL
+KeInitializeGuardedMutex(
+    PKGUARDED_MUTEX GuardedMutex
+);
+
+VOID 
+FASTCALL
+KeReleaseGuardedMutexUnsafe(
+    PKGUARDED_MUTEX GuardedMutex
+);
+
+VOID 
+FASTCALL
+KeReleaseGuardedMutex(
+    PKGUARDED_MUTEX GuardedMutex
+);
+
+BOOL 
+FASTCALL
+KeTryToAcquireGuardedMutex(
+    PKGUARDED_MUTEX GuardedMutex
+);
+
 /** Executive support routines **/
 
 NTOSAPI