RtlClearBit - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H
#if (PHNT_MODE == PHNT_MODE_KERNEL || PHNT_VERSION >= PHNT_WINDOWS_8)

NTSYSAPI
VOID
NTAPI
RtlClearBit(
    _In_ PRTL_BITMAP BitMapHeader,
    _In_range_(<, BitMapHeader->SizeOfBitMap) ULONG BitNumber
    );

#endif
#endif

View code on GitHub
// wdm.h

NTSYSAPI VOID RtlClearBit(
  [in] PRTL_BITMAP BitMapHeader,
  [in] ULONG       BitNumber
);
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-wdm-rtlclearbit)

RtlClearBit function

Description

The RtlClearBit routine sets the specified bit in a bitmap to zero.

Parameters

BitMapHeader [in]

A 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 sets this bit to zero.

Return value

None

Remarks

Callers of RtlClearBit 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, RtlClearBit can be called at any IRQL.

See also

RTL_BITMAP

RtlInitializeBitMap