ShlwApiStrFromTimeInterval Method
Converts a time interval, specified in milliseconds, to a string.
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 int StrFromTimeInterval(
StringBuilder buffer,
uint bufferMax,
uint ms,
int digits
)
<DllImportAttribute("ShlwApi.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function StrFromTimeInterval (
buffer As StringBuilder,
bufferMax As UInteger,
ms As UInteger,
digits As Integer
) As Integer
Dim buffer As StringBuilder
Dim bufferMax As UInteger
Dim ms As UInteger
Dim digits As Integer
Dim returnValue As Integer
returnValue = ShlwApi.StrFromTimeInterval(buffer,
bufferMax, ms, digits)
public:
[DllImportAttribute(L"ShlwApi.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static int StrFromTimeInterval(
StringBuilder^ buffer,
unsigned int bufferMax,
unsigned int ms,
int digits
)
[<DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member StrFromTimeInterval :
buffer : StringBuilder *
bufferMax : uint32 *
ms : uint32 *
digits : int -> int
No code example is currently available or this language may not be supported.
- 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.
Int32
Returns the number of characters in
buffer, excluding the terminating NULL character.