mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-09 04:07:08 -06:00
24 lines
618 B
C
Executable File
24 lines
618 B
C
Executable File
// 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
|