| Microsoft DirectX 8.1 (C++) | 
Counts the total number of bits set in a field.
Syntax
DWORD CountSetBits(
    const DWORD Field
);
Parameters
Field
Field in which to count bit sets.
Return Value
Returns the number of bit sets.
Remarks
This is a protected member function.
See Also