ShlwApiStrFormatByteSize64A Method
Converts a numeric value into a string that represents the number expressed as a size value in bytes,
kilobytes, megabytes, gigabytes, petabytes or exabytes, depending on the size.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Ansi, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
public static IntPtr StrFormatByteSize64A(
ulong number,
StringBuilder buffer,
uint bufferSize
)
<DllImportAttribute("ShlwApi.dll", CharSet := CharSet.Ansi, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function StrFormatByteSize64A (
number As ULong,
buffer As StringBuilder,
bufferSize As UInteger
) As IntPtr
Dim number As ULong
Dim buffer As StringBuilder
Dim bufferSize As UInteger
Dim returnValue As IntPtr
returnValue = ShlwApi.StrFormatByteSize64A(number,
buffer, bufferSize)
public:
[DllImportAttribute(L"ShlwApi.dll", CharSet = CharSet::Ansi, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
static IntPtr StrFormatByteSize64A(
unsigned long long number,
StringBuilder^ buffer,
unsigned int bufferSize
)
[<DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Ansi, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)>]
static member StrFormatByteSize64A :
number : uint64 *
buffer : StringBuilder *
bufferSize : uint32 -> IntPtr
No code example is currently available or this language may not be supported.
- number UInt64
-
The numeric value to be converted.
- buffer StringBuilder
-
A pointer to a buffer that, when this function returns successfully, receives the converted number.
- bufferSize UInt32
-
The size of buffer, in characters.
IntPtr
Returns a pointer to the converted string, or NULL if the conversion fails.