ShlwApiStrFormatKBSize Method
Converts a numeric value into a string that represents the number expressed as a size value in kilobytes.
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.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static IntPtr StrFormatKBSize(
long number,
StringBuilder buffer,
uint bufferSize
)
<DllImportAttribute("ShlwApi.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function StrFormatKBSize (
number As Long,
buffer As StringBuilder,
bufferSize As UInteger
) As IntPtr
Dim number As Long
Dim buffer As StringBuilder
Dim bufferSize As UInteger
Dim returnValue As IntPtr
returnValue = ShlwApi.StrFormatKBSize(number,
buffer, bufferSize)
public:
[DllImportAttribute(L"ShlwApi.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static IntPtr StrFormatKBSize(
long long number,
StringBuilder^ buffer,
unsigned int bufferSize
)
[<DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member StrFormatKBSize :
number : int64 *
buffer : StringBuilder *
bufferSize : uint32 -> IntPtr
No code example is currently available or this language may not be supported.
- number Int64
-
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.