InstrSession.GetCOMDriver
- Updated2025-07-21
- 1 minute(s) read
InstrSession.GetCOMDriver
Syntax
InstrSession.GetCOMDriver( level)
Return Value
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.
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.