Getting property value:
Automation:
bool
value = obj.
Present;
Native (C++):
HRESULT
get_
Present
(
[out, retval]
BOOL *
pVal)
;
Parameters
pVal
Set to TRUE if device is ready and running and to FALSE otherwise. Note that USBMC enumerates all devices - either connected or currently disconnected. For example - if you will remove Flash Drive - it will still be enumerated, but Present property will be set to FALSE.
Return Value
Automation:
Set to true if device is ready and running and to false otherwise. Note that USBMC enumerates all devices - either connected or currently disconnected. For example - if you will remove Flash Drive - it will still be enumerated, but Present property will be set to false.
Native:
S_OK or standard OLE error code.