若要测试位元栏位,判断特定列举值是否存在,请使用布林逻辑运算子。
To test a bit field to determine whether a specific enumeration value is present, use the Boolean logical operators.
若要使用位元栏位正确储存和撷取结合的列举值,列举中所定义的每个值都必须为二的次方。
For a bit field to store and retrieve combined enumeration values correctly, each value that is defined in the enumeration must be a power of two.
HRESULT为32位元值,它划分为三个不同栏位:严重性代码、设备代码和错误码。
HRESULT is a 32-bit value, divided into three different fields: a severity code, a facility code, and an error code.
应用推荐