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.
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla