- Implement IoGetRemainingStackSize.

svn path=/trunk/; revision=37900
This commit is contained in:
Aleksey Bragin 2008-12-06 14:59:11 +00:00
parent 3cf14110c4
commit 12376e5bfa

View file

@ -8849,12 +8849,6 @@ NTAPI
IoGetRelatedDeviceObject(
IN PFILE_OBJECT FileObject);
NTKERNELAPI
ULONG
NTAPI
IoGetRemainingStackSize(
VOID);
NTKERNELAPI
VOID
NTAPI
@ -8862,6 +8856,20 @@ 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
NTAPI