boolean (WMI)

The boolean data type is a VT_BOOL parameter that takes on the value of VARIANT_TRUE (–1) or VARIANT_FALSE (0). The following table lists the difference between the programmatic representations of logical TRUE in C/C++ and the Automation type.

Language Value Numerical value
C/C++ TRUE 1
Automation VARIANT_TRUE –1

Both types are nonzero and therefore not FALSE, but have different representations for TRUE.