CFIX_ASSERT_HRESULT may be used to check whether an expression yields a specific HRESULT.
This macro is primarily intended for COM development.
void CFIX_ASSERT_HRESULT(
__in HRESULT ExpectedHResult,
__in HRESULT Expression
);
CFIX_ASSERT_HRESULT(
E_NOINTERFACE,
Obj->QueryInterface( IID_INonExisting, ( PVOID* ) &Unk ) );
Table 7.5.
| User Mode | Kernel Mode |
---|
Available since | 1.5 | Not supported |
Header | Declared in cfix.h | Not supported |
Library | Link to cfix.lib | Not supported |
DLL | cfix.dll | Not supported |