The RtlNumberOfClearBits routine returns a count of the clear bits in a given bitmap variable.
ULONG
RtlNumberOfClearBits(
IN PRTL_BITMAP BitMapHeader
);
RtlNumberOfClearBits returns the number of bits that are currently clear.
Declared in ntddk.h. Include ntddk.h.
Callers of RtlNumberOfClearBits must be running at IRQL < DISPATCH_LEVEL if the memory containing the bitmap variable or at BitMapHeader is pageable. Otherwise, RtlNumberOfClearBits can be called at any IRQL.
RtlFindClearBits, RtlFindClearRuns, RtlFindFirstRunClear, RtlFindLastBackwardRunClear, RtlFindLongestRunClear, RtlFindNextForwardRunClear, RtlInitializeBitMap, RtlNumberOfSetBits