IReplNotify::QueryDevice

This method is used to ask for information about a device.

At a Glance

Header file: Cesync.h
Windows CE versions: 2.0 and later

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.

ppvData

[out] Depending on uCode, this parameter is a pointer to a void pointer to either a DEVINFO structure or HKEY.

Return Values

None.