Skip to content

Latest commit

 

History

History
103 lines (70 loc) · 2.88 KB

nf-timeprov-timeprovopen.md

File metadata and controls

103 lines (70 loc) · 2.88 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:timeprov.TimeProvOpen
TimeProvOpen function (timeprov.h)
A callback function that is called by the time provider manager when the time provider DLL is loaded.
TimeProvOpen
TimeProvOpen callback
TimeProvOpen callback function
_win32_timeprovopen
base.timeprovopen
timeprov/TimeProvOpen
base\timeprovopen.htm
winprog
cf4f8d00-4c6f-4036-a179-444ff7505ab4
12/05/2018
TimeProvOpen, TimeProvOpen callback, TimeProvOpen callback function, _win32_timeprovopen, base.timeprovopen, timeprov/TimeProvOpen
timeprov.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
19H1
TimeProvOpen
timeprov/TimeProvOpen
c++
APIRef
kbSyntax
UserDefined
Timeprov.h
TimeProvOpen

TimeProvOpen function

-description

A callback function that is called by the time provider manager when the time provider DLL is loaded.

-parameters

-param wszName [in]

The provider name.

-param pSysCallbacks [in]

A pointer to a TimeProvSysCallbacks structure that specifies pointers to the functions provided by the time service to the time provider. The system allocates this structure, and it is destroyed when the function returns. Therefore, you must copy the information to another buffer.

-param phTimeProv [out]

A pointer to a buffer that contains a handle to the provider. The time provider manager uses this handle to communicate with the time provider.

-returns

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

You should return from this callback function as quickly as possible. Perform any initialization in another thread.

Examples

For an example, see Sample Time Provider.

-see-also

AlertSamplesAvailFunc

GetTimeSysInfoFunc

LogTimeProvEventFunc

SetProviderStatusFunc

TimeProvSysCallbacks