CeDeleteFile (RAPI)
This function deletes an existing file from the object store. CeDeleteFile 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 CeDeleteFile(
LPCWSTR lpFileName);
Parameters
- lpFileName
[in] Long pointer to a null-terminated string that specifies the file to be deleted.
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
The CeDeleteFile function fails if an application attempts to delete a file that is open for normal I/O or as a memory-mapped file.
When writing applications for Windows CE versions 1.0 and 1.01, use the PegDeleteFile function.
Requirements
Runs On | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.0 and later | Rapi.h |
See Also
CeGetLastError, CeRapiGetError, DeleteFile
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.