ShlwApiStrFromTimeInterval Method

Converts a time interval, specified in milliseconds, to a string.

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 int StrFromTimeInterval(
	StringBuilder buffer,
	uint bufferMax,
	uint ms,
	int digits
)

Parameters

buffer  StringBuilder
A pointer to a buffer that, when this function returns successfully, receives the converted number.
bufferMax  UInt32
The size of buffer, in characters.

If bufferMax is set to zero, StrFromTimeInterval(StringBuilder, UInt32, UInt32, Int32) will return the minimum size of the character buffer needed to hold the converted string. In this case, buffer will not contain the converted string.

ms  UInt32
The time interval, in milliseconds.
digits  Int32
The maximum number of significant digits to be represented in buffer.

Return Value

Int32
Returns the number of characters in buffer, excluding the terminating NULL character.

Remarks

See Also