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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for