 |
StrFormatByteSize ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Converts a numeric value into a string that represents the number expressed as a size value in bytes, kilobytes, megabytes, or gigabytes, depending on the size. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
PSTR StrFormatByteSizeA(
DWORD dw,
__out PSTR pszBuf,
UINT cchBuf
);
PWSTR StrFormatByteSizeW(
LONGLONG qdw,
__out PWSTR pszBuf,
UINT cchBuf
);
PTSTR StrFormatByteSize64(
LONGLONG qdw,
__out PTSTR pszBuf,
UINT cchBuf
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE STRING StrFormatByteSizeA IN Shlwapi;
INTEGER dw,;
STRING @pszBuf,;
INTEGER cchBuf
|
 |
 |
 |
| Parameters: |
 |
dw / qdw
[in] Numeric value to be converted.
pszBuf / pwszBuf
[out] Pointer to the converted string.
cchBuf
[in] Size of pszBuf, in characters.
|
 |
 |
| Return value: |
 |
| Returns the address of the converted string, or NULL if the conversion fails. |
 |
 |
| My comment: |
 |
| See also: StrFormatByteSize64, StrFormatByteSizeEx, StrFormatKBSize |
 |
 |
| Word Index links for the StrFormatByteSize : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-15 12:00:00 | | Modified: | 2011-01-24 12:31:48 | Visited in last 7 days: 16 |