StrFormatByteSize (shlwapi)
Last changed: FallenGameR-75.165.13.109

.
Summary
TODO - a short description

C# Signature:

[DllImport( "shlwapi.dll", CharSet = CharSet.Unicode, SetLastError = true )]
        public static extern string StrFormatByteSizeW(
        [In]
        long qdw,

        [Out]
        [MarshalAs( UnmanagedType.LPTStr )]
        StringBuilder pwszBuf,

        [In]
        uint cchBuf );

VB Signature:

Declare Function StrFormatByteSize Lib "shlwapi.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

long fileLength = 7268;
StringBuilder sb = new StringBuilder();
string retval = NativeMethods.StrFormatByteSizeW( l, sb, (uint)sb.Capacity );
return retval;

Documentation