![]() |
ZenWINX Architecture - Reference Manual - Guides |
|
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. |
BOOLEAN internal_open_rootdir | ( | unsigned char | letter, | |
HANDLE * | phFile | |||
) |
Opens a root directory of the volume.
[in] | letter | the volume letter. |
[out] | phFile | pointer to the file handle. |
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.
[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. |
int __stdcall winx_dfbsize | ( | char * | string, | |
ULONGLONG * | pnumber | |||
) |
Decodes a formatted string produced by winx_fbsize().
[in] | string | the string to be converted. |
[out] | pnumber | pointer to the variable receiving the result. |
int __stdcall winx_get_drive_type | ( | char | letter | ) |
Win32 GetDriveType() native equivalent.
[in] | letter | the volume letter |
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.
[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. |
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.
[in] | letter | the volume letter. |
[out] | buffer | pointer to the buffer receiving the result. |
[in] | length | the length of the buffer, in characters. |
Definition at line 345 of file volume.c.
References internal_open_rootdir(), winx_heap_alloc(), and winx_heap_free().