术语 | timeprovopen |
释义 | TimeProvOpen 语法: C++ HRESULT __stdcall TimeProvOpen( __in WCHAR *wszName, __in TimeProvSysCallbacks *pSysCallbacks, __out TimeProvHandle *phTimeProv ); TimeProvOpen回调函数 回调函数的时候,是到时候供应商提供DLL被加载经理叫。 参数 wszName [in] 提供者的名称。 pSysCallbacks [in] 一个 TimeProvSysCallbacks结构指针指定的时间服务提供者的时间提供的功能指针。该系统分配这个结构,它被销毁时,函数返回。因此,您必须复制信息到另一个缓冲区。 phTimeProv [out] 一个缓冲区,其中包含的句柄提供指针。时间提供管理使用此句柄沟通时间提供。 返回值 如果函数成功,返回值为S_OK。否则,返回值是在Winerror.h中定义的错误代码之一。 备注 您应该回到这个回调函数尽快。执行任何在另一个线程初始化。 实例 有关示例,请参见采样时间提供程序。 要求: 最低支持client-Windows XP 最低支持serverWindows服务器2003 HeaderTimeprov.h 参见 AlertSamplesAvailFunc GetTimeSysInfoFunc LogTimeProvEventFunc SetProviderStatusFunc TimeProvSysCallbacks 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==TimeProvOpen Callback Function A callback function that is called by the time provider manager when the time provider DLL is loaded. Syntax C++ HRESULT __stdcall TimeProvOpen( __in WCHAR *wszName, __in TimeProvSysCallbacks *pSysCallbacks, __out TimeProvHandle *phTimeProv ); Parameters wszName [in] The provider name. 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. 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. 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 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 . Requirements Minimum supported clientWindows XP Minimum supported serverWindows Server 2003 HeaderTimeprov.h See Also AlertSamplesAvailFunc GetTimeSysInfoFunc LogTimeProvEventFunc SetProviderStatusFunc TimeProvSysCallbacks Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms725470(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。