#ifndef _NTRTL_H
_Check_return_
NTSYSAPI
BOOLEAN
NTAPI
RtlTestBit(
_In_ PRTL_BITMAP BitMapHeader,
_In_range_(<, BitMapHeader->SizeOfBitMap) ULONG BitNumber
);
View code on GitHub// wdm.h
NTSYSAPI BOOLEAN RtlTestBit(
[in] PRTL_BITMAP BitMapHeader,
[in] ULONG BitNumber
);
View the official Windows Driver Kit DDI referenceThis function is documented in Windows Driver Kit.
The RtlTestBit routine returns the value of a bit in a bitmap.
BitMapHeader [in]Pointer to the RTL_BITMAP structure that describes the bitmap. This structure must have been initialized by the RtlInitializeBitMap routine.
BitNumber [in]Specifies the zero-based index of the bit within the bitmap. The routine returns the value of this bit.
RtlTestBit returns the value of the bit that the BitNumber parameter points to.
Callers of RtlTestBit must be running at IRQL <= APC_LEVEL if the memory that contains the bitmap variable is pageable or the memory at BitMapHeader is pageable. Otherwise, RtlTestBit can be called at any IRQL.