ShlwApiStrFormatKBSize Method

Converts a numeric value into a string that represents the number expressed as a size value in kilobytes.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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
)

Parameters

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.

Return Value

IntPtr
Returns a pointer to the converted string, or NULL if the conversion fails.

Remarks

See Also