Hi!, how can I call the StrFormatByteSize64 function from the Win API from within C#? I'm trying the following code, but without success:
[DllImport("shlwapi.dll")]
static extern void StrFormatByteSize64(ulong qdw, char[] pszBuf, uint cchBuf);
char[] temp = new char[128];
ulong size = 2000;
StrFormatByteSize64(size, temp, 128);
Console.WriteLine(temp);
The function's documentation can be found here: http://msdn.microsoft.com/en-us/library/bb759971%28VS.85%29.aspx
Thank you!