Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
String representation for disk or memory capacity
..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:
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
FoxPro declaration:
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.

[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:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-08-15 12:00:00
Modified: 2011-01-24 12:31:48
Visited in last 7 days: 38
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
17 sec.Function: 'DrawDibDraw'
Function group: 'Windows Multimedia'
35 sec.Function: 'AVIStreamStart'
Function group: 'Windows Multimedia'
51 sec.Function: 'GetTempPath'
Function group: 'File Management'
1.18 min.Function: 'InternetConnect'
1.47 min.Function: 'CryptGetProvParam'
Function group: 'Cryptography Reference'
1.78 min.Function: 'PathGetShortPath'
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
2.05 min.Function: 'waveInStop'
Function group: 'Windows Multimedia'
2.35 min.Example: 'Writing entries to custom Event Log'
2.65 min.Function: 'CeDeleteFile'
Function group: 'Remote Application Programming (RAPI)'
2.97 min.Function: 'GetCurrentProcess'
Function group: 'Process and Thread'
Advertise here!