FindFirstFlashCard

This function returns the handle to the first mountable file system, such as a flash card.

At a Glance

Header file: Projects.h
Windows CE Versions: 2.01 and later

Syntax

HANDLE FindFirstFlashCard(LPWIN32_FIND_DATA lpFindFlashData);

Parameter

lpFindFlashData
Long pointer to the WIN32_FIND_DATA structure that represents the mountable file system.

Return Values

A handle to the first flash card indicates success. If the function fails, the return value is INVALID_HANDLE_VALUE.

Remarks

The handle returned by this function is used as the hFlashCard parameter of the FindNextFlashCard function. Use FindNextFlashCard if more than one mountable file system possibly exists on the target device. Once you locate a flash card, use the returned handle in EnumProjects, EnumProjectsFiles, FindFirstProjectFile, and FindNextProjectFile. When you are finished using the handle, close it by calling the FindClose function.

See Also

EnumProjects, EnumProjectsFiles, FindClose, FindFirstProjectFile, FindNextFlashCard, FindNextProjectFile, WIN32_FIND_DATA