Getting property value:
Automation:
IDevice
value = obj.
ConnectedDevice;
Native (C++):
HRESULT
get_
ConnectedDevice
(
[out, retval]
IDevice**
pVal)
;
Parameters
pVal
Reference to the created Device object. Don't forget to call Release to free the object. Use ATL::CComPtr class to automate this task.
Return Value
Automation:
Reference to new Device object.
Native:
S_OK or standard OLE error code.