IoAdjustPagingPathCount is a macro.
authorEric Kohl <eric.kohl@reactos.org>
Fri, 22 Oct 2004 20:54:57 +0000 (20:54 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Fri, 22 Oct 2004 20:54:57 +0000 (20:54 +0000)
svn path=/trunk/; revision=11392

reactos/include/ddk/pnpfuncs.h

index 73ae2c3..d5021b2 100644 (file)
@@ -45,11 +45,24 @@ IoReleaseRemoveLockAndWaitEx(
   IN PVOID Tag,
   IN ULONG RemlockSize);
 
-VOID
-STDCALL
-IoAdjustPagingPathCount(
-  IN PLONG Count,
-  IN BOOLEAN Increment);
+/*
+ * VOID
+ * STDCALL
+ * IoAdjustPagingPathCount(
+ *   IN PLONG Count,
+ *   IN BOOLEAN Increment);
+ */
+#define IoAdjustPagingPathCount(Count, Paging) \
+{ \
+  if (Paging) \
+  { \
+    InterlockedIncrement(Count); \
+  } \
+  else \
+  { \
+    InterlockedDecrement(Count); \
+  } \
+}
 
 NTSTATUS
 STDCALL