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.

CeGetFileSize (RAPI)

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

This function retrieves the date and time that a file was created, last accessed, and last modified for a file on a remote Windows Embedded CE–based device.


DWORD CeGetFileSize( 
  HANDLE hFile, 
  LPDWORD lpFileSizeHigh 
);

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.

If the function succeeds, the return value is the low-order DWORD of the file size, and, if lpFileSizeHigh is non-NULL, the function puts the high-order doubleword of the file size into the variable pointed to by that parameter.

If the function fails and lpFileSizeHigh is NULL, the return value is INVALID_FILE_SIZE. To get extended error information, call CeGetLastError and CeRapiGetError.

If the function fails and lpFileSizeHigh is non-NULL, the return value is INVALID_FILE_SIZE and CeGetLastError will return a value other than NO_ERROR.

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

Community Additions

Show:
© 2015 Microsoft