CeFindClose (RAPI)

A version of this page is also available for

Windows Embedded CE 6.0 R3


This function closes the specified search handle on a remote Windows Embedded CEā€“based device. The CeFindFirstFile and CeFindNextFile methods use a search handle to locate files.


BOOL CeFindClose( 
  HANDLE hFindFile 


  • hFindFile
    [in] Search handle. This handle must have been previously opened by the CeFindFirstFile function.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call CeGetLastError and CeRapiGetError.


After the CeFindClose function is called, the handle specified by the hFindFile parameter cannot be used in subsequent calls to either the CeFindNextFile or CeFindClose function.


Header rapi.h
Library rapi.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also


RAPI Functions
CeFindFirstFile (RAPI)
CeFindNextFile (RAPI)