TimeProvClose function (timeprov.h)

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


HRESULT TimeProvClose(
  [in] TimeProvHandle hTimeProv


[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.


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.


For an example, see Sample Time Provider.


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