mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 12:11:38 -06:00
3.13
This commit is contained in:
23
Windows/Defs.h
Executable file
23
Windows/Defs.h
Executable file
@@ -0,0 +1,23 @@
|
||||
// Windows/Defs.h
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __WINDOWS_DEFS_H
|
||||
#define __WINDOWS_DEFS_H
|
||||
|
||||
inline bool BOOLToBool(BOOL value)
|
||||
{ return (value != FALSE); }
|
||||
|
||||
inline BOOL BoolToBOOL(bool value)
|
||||
{ return (value ? TRUE: FALSE); }
|
||||
|
||||
inline VARIANT_BOOL BoolToVARIANT_BOOL(bool value)
|
||||
{ return (value ? VARIANT_TRUE: VARIANT_FALSE); }
|
||||
|
||||
inline bool VARIANT_BOOLToBool(VARIANT_BOOL value)
|
||||
{ return (value != VARIANT_FALSE); }
|
||||
|
||||
// #define RETURN_IF_NOT_S_OK(x) { HRESULT __result_ = (x); if(__result_ != S_OK) return __result_; }
|
||||
// #define RINOK(x) { HRESULT __result_ = (x); if(__result_ != S_OK) return __result_; }
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user