Desktop Functions: Smart Device Functions:
|
StrFormatByteSize (shlwapi)
C# Signature:[DllImport("shlwapi.dll", CharSet = CharSet.Auto)] static extern string StrFormatByteSize( long fileSize, [MarshalAs(UnmanagedType.LPTStr)] StringBuilder buffer, int bufferSize ); 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(20); string formattedLength = StrFormatByteSize(fileLength, sb, 20); Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|