Group: String - Library: shlwapi
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.
String representation for disk or memory capacity
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
);
DECLARE STRING StrFormatByteSizeA IN Shlwapi;
INTEGER dw,;
STRING @pszBuf,;
INTEGER cchBuf
dw / qdw [in] Numeric value to be converted.
pszBuf / pwszBuf [out] Pointer to the converted string.
cchBuf [in] Size of pszBuf, in characters.
Returns the address of the converted string, or NULL if the conversion fails.
See also: StrFormatByteSize64, StrFormatByteSizeEx, StrFormatKBSize