Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
Windows Mobile Supported Windows Embedded CE Supported
4/14/2010

This function searches for devices using the handle returned from FindFirstDevice.

Syntax

BOOL FindNextDevice(
  HANDLE 
h,
  PDEVMGR_DEVICE_INFORMATION 
pdi
);

Parameters

h

[in] Handle returned from FindFirstDevice.

pdi

[out] Pointer to a DEVMGR_DEVICE_INFORMATIONstructure to store the device's information.

Return Value

Returns TRUE if a device is found and the DEVMGR_DEVICE_INFORMATIONis successfully populated. Otherwise, returns FALSE.

Remarks

Wildcards are supported in name-based searches. Unnamed devices can be found using a zero-length search string.

Close the handle with FindClosewhen searching is complete.

Requirements

Header winbase.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also