Share via


ICcSvcHost::GetDeviceState (Windows CE 5.0)

Send Feedback

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

Core Connectivity Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.