CeGetFileSize (RAPI) (Windows CE 5.0)

Send Feedback

This function retrieves the size, in bytes, of the specified file.

CeGetFileSize 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.

DWORDCeGetFileSize( HANDLEhFile, LPDWORDlpFileSizeHigh);

Parameters

  • hFile
    [in] Open handle of the file whose size is being returned. The handle must have been created with either GENERIC_READ or GENERIC_WRITE access to the file.
  • lpFileSizeHigh
    [out] Pointer to the variable where the high-order word of the file size is returned. This parameter can be NULL if the application does not require the high-order word.

Return Values

The low-order DWORD of the file size indicates success. If lpFileSizeHigh is non-NULL, the function puts the high-order DWORD of the file size into the variable pointed to by that parameter. If lpFileSizeHigh is NULL, 0xFFFFFFFF indicates failure. To get extended error information, call CeGetLastError.

If lpFileSizeHigh is non-NULL, 0xFFFFFFFF indicates failure and CeGetLastError returns a value other than NO_ERROR.

Remarks

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

Requirements

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

See Also

RAPI Functions | CeGetLastError | GetFileSize

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.