[ros-diffs] [fireball] 37900: - Implement IoGetRemainingStackSize.

fireball at svn.reactos.org fireball at svn.reactos.org
Sat Dec 6 15:59:12 CET 2008


Author: fireball
Date: Sat Dec  6 08:59:11 2008
New Revision: 37900

URL: http://svn.reactos.org/svn/reactos?rev=37900&view=rev
Log:
- Implement IoGetRemainingStackSize.

Modified:
    trunk/reactos/include/ddk/winddk.h

Modified: trunk/reactos/include/ddk/winddk.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/winddk.h?rev=37900&r1=37899&r2=37900&view=diff
==============================================================================
--- trunk/reactos/include/ddk/winddk.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/winddk.h [iso-8859-1] Sat Dec  6 08:59:11 2008
@@ -8850,17 +8850,25 @@
   IN PFILE_OBJECT  FileObject);
 
 NTKERNELAPI
-ULONG
-NTAPI
-IoGetRemainingStackSize(
-  VOID);
-
-NTKERNELAPI
 VOID
 NTAPI
 IoGetStackLimits(
   OUT PULONG_PTR  LowLimit,
   OUT PULONG_PTR  HighLimit);
+
+FORCEINLINE
+ULONG_PTR
+IoGetRemainingStackSize(
+  VOID
+)
+{
+    ULONG_PTR End, Begin;
+    ULONG_PTR Result;
+
+    IoGetStackLimits(&Begin, &End);
+    Result = (ULONG_PTR)(&End) - Begin;
+    return Result;
+}
 
 NTKERNELAPI
 VOID



More information about the Ros-diffs mailing list