86 StackAddress = (
ULONG_PTR)(&StackAddress);
92 if ((StackAddress < *LowLimit) || (StackAddress > *
HighLimit))
99 (StackAddress <= DpcStack) &&
164 return Thread->ThreadsProcess;
195 ULONG NextEntryOffset;
197 ULONG ComputedLength;
228 if (NextEntryOffset == 0)
246 if ((
LONG)NextEntryOffset < 0)
320 if (!
Irp->Tail.Overlay.Thread)
322 DPRINT1(
"IoSetHardErrorOrVerifyDevice(0x%p, 0x%p): IRP has no thread, ignoring.\n",
#define ALIGN_UP_BY(size, align)
#define STATUS_EA_LIST_INCONSISTENT
#define PsGetCurrentThread()
#define KeGetCurrentIrql()
IN PVCB IN PDIRENT OUT PULONG EaLength
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ ULONG _In_ FS_INFORMATION_CLASS FsInformationClass
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
struct _FILE_FULL_EA_INFORMATION * PFILE_FULL_EA_INFORMATION
enum _FSINFOCLASS FS_INFORMATION_CLASS
VOID FASTCALL KeReleaseQueuedSpinLock(IN KSPIN_LOCK_QUEUE_NUMBER LockNumber, IN KIRQL OldIrql)
KIRQL FASTCALL KeAcquireQueuedSpinLock(IN KSPIN_LOCK_QUEUE_NUMBER LockNumber)
POBJECT_TYPE IoFileObjectType
FORCEINLINE struct _KPRCB * KeGetCurrentPrcb(VOID)
#define OBJECT_TO_OBJECT_HEADER(o)
NTSYSAPI VOID NTAPI RtlMapGenericMask(PACCESS_MASK AccessMask, PGENERIC_MAPPING GenericMapping)
ACCESS_MASK * PACCESS_MASK
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSTATUS NTAPI IoComputeDesiredAccessFileObject(IN PFILE_OBJECT FileObject, IN PACCESS_MASK DesiredAccess)
VOID NTAPI IoReleaseCancelSpinLock(IN KIRQL Irql)
VOID NTAPI IoSetDeviceToVerify(IN PETHREAD Thread, IN PDEVICE_OBJECT DeviceObject)
NTSTATUS NTAPI IoCheckDesiredAccess(IN OUT PACCESS_MASK DesiredAccess, IN ACCESS_MASK GrantedAccess)
PEPROCESS NTAPI IoThreadToProcess(IN PETHREAD Thread)
VOID NTAPI IoGetStackLimits(OUT PULONG_PTR LowLimit, OUT PULONG_PTR HighLimit)
VOID NTAPI RtlpGetStackLimits(PULONG_PTR StackBase, PULONG_PTR StackLimit)
BOOLEAN NTAPI IoIsSystemThread(IN PETHREAD Thread)
VOID NTAPI IoSetHardErrorOrVerifyDevice(IN PIRP Irp, IN PDEVICE_OBJECT DeviceObject)
PDEVICE_OBJECT NTAPI IoGetDeviceToVerify(IN PETHREAD Thread)
NTSTATUS NTAPI IoValidateDeviceIoControlAccess(IN PIRP Irp, IN ULONG RequiredAccess)
PVOID NTAPI IoGetInitialStack(VOID)
BOOLEAN NTAPI IoIsWdmVersionAvailable(IN UCHAR MajorVersion, IN UCHAR MinorVersion)
PEPROCESS NTAPI IoGetCurrentProcess(VOID)
NTSTATUS NTAPI IoCheckQuerySetVolumeInformation(IN FS_INFORMATION_CLASS FsInformationClass, IN ULONG Length, IN BOOLEAN SetOperation)
NTSTATUS NTAPI IoCheckFunctionAccess(IN ACCESS_MASK GrantedAccess, IN UCHAR MajorFunction, IN UCHAR MinorFunction, IN ULONG IoControlCode, IN PVOID ExtraData OPTIONAL, IN PVOID ExtraData2 OPTIONAL)
VOID NTAPI IoAcquireCancelSpinLock(OUT PKIRQL Irql)
NTSTATUS NTAPI IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
BOOLEAN NTAPI PsIsSystemThread(IN PETHREAD Thread)
#define STATUS_NOT_IMPLEMENTED
#define STATUS_OBJECT_TYPE_MISMATCH
#define KERNEL_STACK_SIZE
PULONG MinorVersion OPTIONAL
PDEVICE_OBJECT DeviceToVerify
GENERIC_MAPPING GenericMapping
OBJECT_TYPE_INITIALIZER TypeInfo
#define FIELD_OFFSET(t, f)
#define STATUS_ACCESS_DENIED
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
_In_ UCHAR _In_ UCHAR MinorFunction
_In_ WDFREQUEST _In_ size_t _In_ size_t _In_ ULONG IoControlCode
_In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Out_ PIO_STATUS_BLOCK _In_opt_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _In_ ULONG _In_ ULONG _In_opt_ PVOID EaBuffer
_Out_ PULONG_PTR HighLimit
_In_ ULONG RequiredAccess
_In_ PSECURITY_SUBJECT_CONTEXT _In_ BOOLEAN _In_ ACCESS_MASK _In_ ACCESS_MASK _Outptr_opt_ PPRIVILEGE_SET _In_ PGENERIC_MAPPING _In_ KPROCESSOR_MODE _Out_ PACCESS_MASK GrantedAccess