Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function deletes an existing file from the object store on a remote Windows Embedded CE–based device.

Syntax

BOOL CeDeleteFile(
  LPCWSTR 
lpFileName 
);

Parameters

lpFileName

[in] Long pointer to a null-terminated string that specifies the file to be deleted.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call CeGetLastErrorand CeRapiGetError.

Remarks

If an application attempts to delete a file that does not exist, the CeDeleteFilefunction fails. The CeDeleteFilefunction fails if an application attempts to delete a file that is open for normal I/O or as a memory-mapped file.

Use the CeRemoveDirectoryfunction to delete a directory.

To close an open file handle, use the CeCloseHandlefunction.

To disconnect a database volume, use the CeUnmountDBVolfunction.

Requirements

Header rapi.h
Library rapi.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also