LabWindows/CVI

CDotNetGetCOMObjectHandle

int CDotNetGetCOMObjectHandle (CDotNetAssemblyHandle COMInteropAssembly, const char *typeName, IUnknown *interfacePointer, void *handle);

Purpose

Returns the handle of the .NET wrapper object for the specified COM interface pointer.

Parameters

Input
Name Type Description
COMInteropAssembly CDotNetAssemblyHandle The handle of the COM interop assembly that defines the .NET wrapper object for the specified COM interface.
typeName const char * The type name of the .NET wrapper object for the specified COM interface.
interfacePointer IUnknown * The COM interface pointer whose wrapper object you want to retrieve.
Output
Name Type Description
handle void * The handle of the .NET wrapper object for the specified COM interface.

Return Value

Name Type Description
status int A value indicating whether an error occurred. Negative error codes indicate function failure.

Error codes are defined in cvi\include\cvidotnet.h.

You can use CDotNetGetErrorDescription to get the description of an error code.

Additional Information

Library: .NET Library

Include file: cvidotnet.h

LabWindows/CVI compatibility: LabWindows/CVI 8.0 and later