ICcSvcHost::GetDeviceState (Windows CE 5.0)
This method determines if a target device is in use.
HRESULT GetDeviceState( LPCOLESTR pwszDeviceId, DWORD* pdwDeviceState);
Parameters
- pwszDeviceId
[in] Identifier for the active logical connection. - pdwDeviceState
[out, retval] Out parameter that receives the device state.
Return Values
This method determines whether the device is in use.
Possible values returned in pdwDeviceState are 0x0, indicating the device is not in use, or 0x1, indicating the device is in use.
The following table shows the returns for this method.
Value | Description |
---|---|
S_OK | This API call was successful. |
E_INVALIDARG | One or both input arguments are invalid identifiers. |
Requirements
OS Version: Windows CE 5.0 and later.
Header: CcSvcHost.h.
Link Library: none.
See Also
Send Feedback on this topic to the authors