Share via


IRAPISession::CeFindClose

Send Feedback

This method closes the specified search handle on a remote Microsoft® Windows® CE–based device. The IRAPISession::CeFindFirstFile and IRAPISession::CeFindNextFile methods use a search handle to locate files.

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 Values

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

OS Versions: Windows CE 5.01 and later.
Header: Rapi2.h.
Link Library: Ole32.lib, Rapiuuid.lib.

See Also

IRAPISession::IUnknown | IRAPISession::CeFindFirstFile | IRAPISession::CeFindNextFile | IRAPISession::CeRapiFreeBuffer

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.