NextPrevUpTopContentsIndex

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 .

Example

E_NOTIMPL is negative, so

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

hresult
check-hresult
com-error


LispWorks COM/Automation User Guide and Reference Manual - 21 Feb 2008

NextPrevUpTopContentsIndex