All Manuals > COM/Automation User Guide and Reference Manual > 2 COM Reference Entries

succeeded Macro

Summary

Checks an hresult for success.

Package

com

Signature

succeeded hresult => flag

Arguments
hresult
An integer hresult.
Values
flag
A boolean.
Description

The macro succeeded checks hresult and returns true if the it is one of the 'succeeded' values, for instance S_OK or S_FALSE. Otherwise, it returns false.

Examples
(succeeded S_OK) => t
(succeeded E_NOINTERFACE) => nil
See also

check-hresult
hresult
hresult-equal
s_ok


COM/Automation User Guide and Reference Manual - 01 Dec 2021 19:38:38