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 method retrieves the amount of space on a disk volume on a remote Windows Embedded CE–based device.

Copy Code
int CeGetDiskFreeSpaceEx( 
  LPCTSTR _
lpDirectoryName,, 
  PULARGE_INTEGER 
lpFreeBytesAvailable,, 
  PULARGE_INTEGER 
lpTotalNumberOfBytes,, 
  PULARGE_INTEGER 
lpTotalNumberOfFreeBytes
);

Parameters

lpDirectoryName

[in] A pointer to a null-terminated string that specifies a directory on a disk.

lpFreeBytesAvailable

[out] A pointer to a variable that receives the total number of free bytes on a disk that are available to the user who is associated with the calling thread.

lpTotalNumberOfBytes

[in] A pointer to a variable that receives the total number of bytes on a disk that are available to the user who is associated with the calling thread.

lpTotalNumberOfFreeBytes

[in] A pointer to a variable that receives the total number of free bytes on a disk.

Return Values

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

Requirements

Header rapi2.h
Library ole32.lib, rapiuuid.lib
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IRAPISession