StrFormatByteSize
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.
显示数据大小
LPTSTR StrFormatByteSizeA( DWORD dw, LPSTR pszBuf, UINT cchBuf);
LPTSTR StrFormatByteSizeW( LONGLONG qdw, LPWSTR pwszBuf, UINT 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 Values
Returns the address of the converted string, or NULL if the conversion fails.