IoWithinStackLimits 函数 (wdm.h)
IoWithinStackLimits 例程确定内存区域是否在当前线程的堆栈限制内。
语法
LOGICAL IoWithinStackLimits(
[in] ULONG_PTR RegionStart,
[in] SIZE_T RegionSize
);
参数
[in] RegionStart
指向区域开头的指针。
[in] RegionSize
区域的大小。
返回值
IoWithinStackLimits 返回 TRUE 是当前线程的堆栈完全包含区域,否则 FALSE。
言论
如果需要,IoWithinStackLimits 例程会考虑所有可能的堆栈段和 DPC 堆栈。
对于使用 KeExpandKernelStackAndCallout的驱动程序,IoWithinStackLimits 只考虑当前线程。
要求
要求 | 价值 |
---|---|
目标平台 | 普遍 |
标头 | wdm.h (包括 Wdm.h、Ntddk.h、Ntifs.h) |
库 | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | IRQL <= APC_LEVEL |