次の方法で共有


2.2.29 FW_OS_PLATFORM_OP

This enumeration describes the operations used in the FW_OS_PLATFORM structure to determine if an object should be applied to a specified operating system platform.

 typedef  enum
 {
   FW_OS_PLATFORM_OP_EQ = 0,
   FW_OS_PLATFORM_OP_GTEQ = 1,
   FW_OS_PLATFORM_OP_MAX = 2,
   FW_OS_PLATFORM_OP_FIELD_SIZE = 5,
   FW_OS_PLATOFRM_OP_FIELD_MASK = 0xF8
 } FW_OS_PLATFORM_OP;

FW_OS_PLATFORM_OP_EQ:  The operating system platform MUST be the same as the one specified. This is satisfied when the following occurs:

If ( ((bPlatform & 0x7) == platform type) && (bMajorVersion == major version) && (bMinorVersion == minor version) ).

Otherwise, the operating system is not equal to the one specified. This symbolic constant has a value of 0.

FW_OS_PLATFORM_OP_GTEQ:  The operating system MUST be greater than or equal to the one specified. This is satisfied when any of the following occur:

If (bPlatform & 0x7) > platform type

If (((bPlatform & 0x7) == platform type) && (bMajorVersion > major version))

If (((bPlatform & 0x7) == platform type) && (bMajorVersion == major version) && (bMinorVersion >= minor version))

Otherwise, the operation system is not greater than or equal to the one specified. This symbolic constant has a value of 1.

FW_OS_PLATFORM_OP_MAX:  This value and values that exceed this value are not valid and MUST NOT be used. It is defined for simplicity in writing IDL definitions and code. This symbolic constant has a value of 2.

FW_OS_PLATFORM_OP_FIELD_SIZE: A constant value of 5.

FW_OS_PLATOFRM_OP_FIELD_MASK: A constant value of 0xF8.