CeSetEndOfFile (RAPI) (Windows CE 5.0)

Send Feedback

This function moves the end-of-file position for the specified file to the current position of the file pointer.

CeSetEndOfFile is a remote application programming interface (RAPI), which enables an application running on a desktop computer to make function calls on a Windows CE–based device.

BOOLCeSetEndOfFile( HANDLEhFile);

Parameters

  • hFile
    [in] Handle to the file to have its EOF position moved. The file handle must have been created with GENERIC_WRITE access to the file.

Return Values

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

Remarks

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.

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

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Rapi.h.
Link Library: Rapi.lib.

See Also

RAPI Functions | CeCreateFile (RAPI) | CeGetLastError

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.