The VarUI2FromBool function converts variant data types to unsigned short from BOOL.
WINOLEAUTAPI VarUI2FromBool([in] BOOL boolIn, [out] USHORT * puiOut);
| Header file: | Oleauto.h | 
| Platforms: | H/PC | 
| Windows CE versions: | 2.0 and later | 
| Complete documentation: | Microsoft Platform SDK. | 
Passing into this function any invalid and, under some circumstances, NULL pointers will result in unexpected termination of the application. For more information about handling exceptions, see Programming Considerations.