InstrSession.GetCOMDriver

Syntax

InstrSession.GetCOMDriver( level)

Return Value

IUnknown

Returns a pointer to the driver API object.

Purpose

Returns a COM pointer to the driver API object for the interface level you specify. The driver initializes, if necessary.

Note Session Manager does not support IVI-COM drivers. This function is reserved for future use.

Remarks

If the session does not support the interface level you specify, this method returns an error. Call QueryInterface on the driver to obtain a particular interface. You must release the driver interface when you are done with it. The session stores a reference to the driver object so the object does not destroy itself until the session closes.

Parameters

level As InterfaceLevel

[In] Specifies the type of API reference to return.