Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CeSetEndOfFile (RAPI)

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function moves the end-of-file position to the current position of the file pointer for a file on a remote Windows Embedded CE–based device.


BOOL CeSetEndOfFile( 
  HANDLE hFile 
);

hFile

[in] Handle to the file to have its end-of-file (EOF) position moved. The file handle must have been created with GENERIC_WRITE access to the file.

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

This function can be used to truncate or extend a file. If the file is extended, the contents of the file between the old EOF position and the new position are not defined.

Headerrapi.h
Libraryrapi.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobilePocket PC 2002 and later, Smartphone 2002 and later

Community Additions

Show:
© 2015 Microsoft