Share via


ICcSvcHost::GetDeviceState (Windows Embedded CE 6.0)

1/5/2010

This method determines if a target device is in use.

Syntax

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 Value

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

Header ccsvchost.h
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

ICcSvcHost
Core Connectivity Interfaces