CeFindClose

This function closes the specified search handle. The CeFindFirstFile and CeFindNextFile functions use the search handle to locate files with names that match a specified name.

CeFindClose is a RAPI that enables an application that is running on a desktop computer to make function calls on a Microsoft® Windows® CE–based device.

STDAPI_(BOOL) CeFindClose( 
  HANDLE hFindFile 
);

Parameters

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

Return Values

Nonzero indicates success. Zero indicates failure. To determine whether a function failed because of RAPI errors, call CeRapiGetError. To determine whether a function failed because of non-RAPI errors, call CeGetLastError.

Remarks

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.

Requirements

Smartphone Platforms: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: rapi.h
Library: rapi.lib

See Also

CeFindFirstFile, CeFindNextFile

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.