Share via


CeFindClose (RAPI)

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 remote application interface (RAPI), which enables an application running on a desktop computer to make function calls on a Windows CE–based device.

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 if a function failed because of RAPI errors, call CeRapiGetError. To determine if 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.

When working with RAPI for Windows CE versions 1.0 and 1.01, use the PegFindClose function.

For more information about using RAPI functions, see Invoking Functions from a Desktop Computer.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 2.0 and later Rapi.h    

See Also

CeFindFirstFile, CeFindNextFile, CeGetLastError, CeRapiGetError

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.