Result-Code Macros

Honeywell recommends using these C/C++ macros to evaluate return codes. All macros are located in itc50MsgSys.h. This file is in the Include directory.

ITC_FACILITY

Returns the facility value.

DWORD ITC_FACILITY (HRESULT hStatusCode);

Parameters

hStatusCode
[in] The 32-bit message identifier for the requested message.

Return Values

Facility value.

ITC_ISERROR

Returns TRUE if hStatusCode has error severity.

BOOL ITC_ISERROR (HRESULT hStatusCode);

Parameters

hStatusCode
[in] The 32-bit message identifier for the requested message.

Return Values

TRUE: hStatusCode has error severity.

FALSE: hStatusCode does not have error severity.

ITC_ISINFO

Returns TRUE if hStatusCode has informational severity.

BOOL ITC_ISINFO (HRESULT hStatusCode);

Parameters

hStatusCode
[in] The 32-bit message identifier for the requested message.

Return Values

TRUE: hStatusCode has informational severity.

FALSE: hStatusCode does not have informational severity.

ITC_ISOK

Returns TRUE if hStatusCode has success, informational, or warning severity.

BOOL ITC_ISOK (HRESULT hStatusCode);

Parameters

hStatusCode
[in] The 32-bit message identifier for the requested message.

Return Values

TRUE: hStatusCode has success, informational, or warning severity.

FALSE: hStatusCode does not have success, informational, or warning severity.

ITC_ISSUCCESS

Returns TRUE if hStatusCode is a success code.

BOOL ITC_ISSUCCESS (HRESULT hStatusCode);

Parameters

hStatusCode
[in] The 32-bit message identifier for the requested message.

Return Values

TRUE: hStatusCode is a success code.

FALSE: hStatusCode is not a success code.

ITC_ISWARNING

Returns TRUE if hStatusCode has warning severity.

BOOL ITC_ISWARNING (HRESULT hStatusCode);

Parameters

hStatusCode
[in] The 32-bit message identifier for the requested message.

Return Values

TRUE: hStatusCode has warning severity.

FALSE: hStatusCode does not have warning severity.

Header and Library File

Header File: ITC50.H

Library: ITC50.LIB

More Information

Device Resource Kit API Reference