Share via


IReplNotify::QueryDevice (Windows Embedded CE 6.0)

1/6/2010

This method requests information about a device.

Syntax

void QueryDevice(
  UINT uCode,
  LPVOID* ppvData
);

Parameters

  • uCode
    [in] It is one of the following values.

    Value Description

    QDC_SEL_DEVICE

    Requests information for the selected device. In this case, *ppvData points to the DEVINFO structure containing the information for the device.

    QDC_CON_DEVICE

    Requests information for the connected device. In this case, *ppvData points to the DEVINFO structure containing the information for the device.

    QDC_SEL_DEVICE_KEY

    Gets a registry key that can be used to store selected device-specific settings. In this case, *ppvData points to HKEY. The caller must close the registry key when its usage is over.

    QDC_CON_DEVICE_KEY

    Gets a registry key that can be used to store connected device-specific settings. In this case, *ppvData points to HKEY. The caller must close the registry key when its usage is over.

    ODC_SYNC_DATA

    Gets or sets custom synchronization data from the device. ppvData is a pointer to a void pointer to SDREQUEST

  • ppvData
    [out] A pointer to a void pointer to either a DEVINFO structure, or an HKEY (which one depends on uCode).

Return Value

Returns RERR_NO_DEVICE if a selected or connected device does not exist.

If uCode specifies QDC_SYNC_DATA, the following are possible return values for this method.

Value Description

RERR_BIG_OBJ_TYPE

The object type from the device is unknown (out of range).

RERR_BIG_CODE

The code received from the device is more than 8.

RERR_UNMATCHED

The synchronization data doesn't map to a device.

Requirements

Header cesync.h
Library coredll.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

IReplNotify
DEVINFO