CA_VariantHasObjHandle
HRESULT CA_VariantHasObjHandle (const VARIANT *variant);
Purpose
Determines whether a variant contains a value that you can convert to a CAObjHandle using CA_VariantGetObjHandle. This is true if the variant type is CAVT_DISPATCH and the IDispatch pointer the variant contains is not NULL.
Parameters
| Input | ||
| Name | Type | Description |
| variant | const VARIANT * | Pointer to the variant variable to inspect. |
Return Value
| Name | Type | Description |
| result | HRESULT | 1 if variant contains a non-null IDispatch interface. 0 if variant does not contain a non-null IDispatch interface. < 0 if variant is invalid. Negative error codes indicate function failure. Refer to <Program Files>\National Instruments\Shared\MSDTRedistributables\SDKHeaderFiles\8.1\winerror.h for Windows SDK error codes. |
Additional Information
Library: ActiveX Library
Include file: cviauto.h
LabWindows/CVI compatibility: LabWindows/CVI 5.0 and later