RtlNumberOfSetBits 함수(wdm.h)

RtlNumberOfSetBits 루틴은 지정된 비트맵 변수에서 설정된 비트 수를 반환합니다.

구문

NTSYSAPI ULONG RtlNumberOfSetBits(
  [in] PRTL_BITMAP BitMapHeader
);

매개 변수

[in] BitMapHeader

비트맵을 설명하는 RTL_BITMAP 구조체에 대한 포인터입니다. 이 구조체는 RtlInitializeBitMap 루틴에 의해 초기화되어야 합니다.

반환 값

RtlNumberOfSetBits는 현재 설정된 비트 수를 반환합니다.

설명

비트맵 변수를 포함하는 메모리가 페이저닝 가능하거나 BitMapHeader의 메모리를 페이저닝할 수 있는 경우 RtlNumberOfSetBits의 호출자는 IRQL <= APC_LEVEL 실행되어야 합니다. 그렇지 않으면 모든 IRQL에서 RtlNumberOfSetBits 를 호출할 수 있습니다.

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows 2000부터 사용할 수 있습니다.
대상 플랫폼 유니버설
헤더 wdm.h(Wdm.h, Ntddk.h, Ntifs.h 포함)
라이브러리 NtosKrnl.lib
DLL NtosKrnl.exe(커널 모드); Ntdll.dll(사용자 모드)
IRQL <= APC_LEVEL(설명 섹션 참조)

추가 정보

RTL_BITMAP

RtlFindSetBits

RtlInitializeBitMap

RtlNumberOfClearBits