Share via


IRAPISession::CeFindClose

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

BOOL CeFindClose( 
  HANDLE hFindFile 
);

Parameters

  • hFindFile
    [in] The search handle to close. This handle must have been previously opened by the IRAPISession::CeFindFirstFile method.

Return Value

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

Remarks

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

Requirements

Header rapi2.h
Library ole32.lib, rapiuuid.lib
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IRAPISession
IRAPISession::CeFindFirstFile
IRAPISession::CeFindNextFile
IRAPISession::CeRapiFreeBuffer