IReplNotify::QueryDevice

The IReplNotify::QueryDevice method is used to ask for information about a device.

Syntax

void QueryDevice(
    UINT
uCode,
    LPVOID
*ppvData
);

At a Glance

Header file: Cesync.h
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

uCode
Input parameter. This can have the following values:
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
get 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
get 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.
ppvData
Output parameter. Depending on uCode (see above), this can point either to a DEVINFO structure or HKEY.