IReplNotify::QueryDevice (Windows CE 5.0)
This method requests information about a device.
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 Values
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
OS Versions: Windows CE 2.0 and later.
Header: Cesync.h.
Link Library: Coredll.lib.
See Also
Send Feedback on this topic to the authors