michael@0: // Windows/Defs.h michael@0: michael@0: #ifndef __WINDOWS_DEFS_H michael@0: #define __WINDOWS_DEFS_H michael@0: michael@0: inline bool BOOLToBool(BOOL value) michael@0: { return (value != FALSE); } michael@0: michael@0: inline BOOL BoolToBOOL(bool value) michael@0: { return (value ? TRUE: FALSE); } michael@0: michael@0: inline VARIANT_BOOL BoolToVARIANT_BOOL(bool value) michael@0: { return (value ? VARIANT_TRUE: VARIANT_FALSE); } michael@0: michael@0: inline bool VARIANT_BOOLToBool(VARIANT_BOOL value) michael@0: { return (value != VARIANT_FALSE); } michael@0: michael@0: #endif