ZenWINX Logo ZenWINX

Architecture - Reference Manual - Guides

Disks

Functions

BOOLEAN internal_open_rootdir (unsigned char letter, HANDLE *phFile)
 Opens a root directory of the volume.
int __stdcall winx_fbsize (ULONGLONG number, int digits, char *buffer, int length)
 Converts the 64-bit number of bytes to a human readable format.
int __stdcall winx_dfbsize (char *string, ULONGLONG *pnumber)
 Decodes a formatted string produced by winx_fbsize().
int __stdcall winx_get_drive_type (char letter)
 Win32 GetDriveType() native equivalent.
int __stdcall winx_get_volume_size (char letter, LARGE_INTEGER *ptotal, LARGE_INTEGER *pfree)
 Retrieves a size and a free space amount of the volume.
int __stdcall winx_get_filesystem_name (char letter, char *buffer, int length)
 Retrieves a name of filesystem containing on the volume.

Function Documentation

BOOLEAN internal_open_rootdir ( unsigned char  letter,
HANDLE *  phFile 
)

Opens a root directory of the volume.

Parameters:
[in] letter the volume letter.
[out] phFile pointer to the file handle.
Returns:
TRUE for success, FALSE indicates failure.
Note:
Internal use only.

Definition at line 419 of file volume.c.

Referenced by winx_get_drive_type(), winx_get_filesystem_name(), and winx_get_volume_size().

int __stdcall winx_fbsize ( ULONGLONG  number,
int  digits,
char *  buffer,
int  length 
)

Converts the 64-bit number of bytes to a human readable format.

This function supports the following suffixes: Kb, Mb, Gb, Tb, Pb, Eb.

Parameters:
[in] number a number to be converted.
[in] digits a number of digits after a dot.
[out] buffer pointer to the buffer for a resulting string.
[in] length the length of the buffer, in characters.
Returns:
A number of characters stored, not counting the terminating null character. If the number of characters required to store the data exceeds length, then length characters are stored in buffer and a negative value is returned.
Note:
The prototype of this function was StrFormatByteSize() from shlwapi.dll implementation included in ReactOS.

Definition at line 49 of file volume.c.

int __stdcall winx_dfbsize ( char *  string,
ULONGLONG *  pnumber 
)

Decodes a formatted string produced by winx_fbsize().

Parameters:
[in] string the string to be converted.
[out] pnumber pointer to the variable receiving the result.
Returns:
Zero for success, negative value otherwise.
Bug:
All digits after a dot are ignored.

Definition at line 112 of file volume.c.

int __stdcall winx_get_drive_type ( char  letter  ) 

Win32 GetDriveType() native equivalent.

Parameters:
[in] letter the volume letter
Returns:
A drive type, negative value indicates failure.

Definition at line 136 of file volume.c.

References internal_open_rootdir(), winx_heap_alloc(), winx_heap_free(), and winx_query_symbolic_link().

int __stdcall winx_get_volume_size ( char  letter,
LARGE_INTEGER *  ptotal,
LARGE_INTEGER *  pfree 
)

Retrieves a size and a free space amount of the volume.

Parameters:
[in] letter the volume letter.
[out] ptotal pointer to a variable receiving a size of the volume.
[out] pfree pointer to a variable receiving the amount of free space.
Returns:
Zero for success, negative value otherwise.

Definition at line 288 of file volume.c.

References internal_open_rootdir(), winx_heap_alloc(), and winx_heap_free().

int __stdcall winx_get_filesystem_name ( char  letter,
char *  buffer,
int  length 
)

Retrieves a name of filesystem containing on the volume.

Parameters:
[in] letter the volume letter.
[out] buffer pointer to the buffer receiving the result.
[in] length the length of the buffer, in characters.
Returns:
Zero for success, negative value otherwise.

Definition at line 345 of file volume.c.

References internal_open_rootdir(), winx_heap_alloc(), and winx_heap_free().


Generated on Sat May 29 23:06:45 2010 for ZenWINX by doxygen 1.6.2