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

s_ok Macro

Summary

Compares a result code to the value of S_OK.

Package

com

Signature

s_ok hresult => flag

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

The macro s_ok checks hresult and returns true if its value is that of the constant S_OK. Otherwise it returns false.

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

succeeded
hresult
hresult-equal
check-hresult


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