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

hresult-equal Function

Summary

Compares one hresult to another.

Package

com

Signature

hresult-equal hres1 hres2 => flag

Arguments
hres1
An integer hresult.
hres2
An integer hresult.
Values
flag
A boolean, true if hres1 and hres2 are equal.
Description

The function hresult-equal compares hres1 and hres2 and returns true if they represent the same hresult. This function differs from the Common Lisp function eql because it handles signed and unsigned versions of each hresult.

Examples

E_NOTIMPL is negative, so:

(eql E_NOTIMPL 2147500033)
=> nil
(hresult-equal E_NOTIMPL 2147500033)
=> t
See also

hresult
check-hresult
com-error


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