TimeProvClose function (timeprov.h)

A callback function that is called by the time provider manager to shut down the time provider.

Syntax

HRESULT TimeProvClose(
  [in] TimeProvHandle hTimeProv
);

Parameters

[in] hTimeProv

A handle to the time provider. The TimeProvOpen function receives this handle.

Return value

If the function succeeds, the return value is S_OK. Otherwise, the return value is one of the error codes defined in WinError.h.

Remarks

The provider should clean up its resources and terminate its operation. When the function returns, the time provider manager can unload the DLL. Therefore, the handle to the time provider is no longer valid and should not be used again.

Examples

For an example, see Sample Time Provider.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header timeprov.h

See also

TimeProvOpen