网站首页  词典首页

请输入您要查询的函数:

 

术语 initoncecomplete
释义 InitOnceComplete
语法:
C++
BOOL WINAPI InitOnceComplete(
__inout LPINIT_ONCE lpInitOnce,
__in DWORD dwFlags,
__in LPVOID lpContext
);
InitOnceComplete功能
完成一次性初始化开始与InitOnceBeginInitialize功能。
参数
lpInitOnce [ in , out ]
对一个时初始化结构的指针。
dwFlags [in]
此参数可以是一个或多个以下标志。
ValueMeaning
INIT_ONCE_ASYNC
0x00000002ULOperate在异步模式。这使多个完成企图并行执行。如果使用此标志,这一职能后续调用将失败,除非这个标志也指定。
INIT_ONCE_INIT_FAILED
0x00000004ULThe初始化尝试失败。
lpContext [in]
一个可选参数,用于设置数据存储与一次性初始化结构。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0600或更高版本。有关详细信息,请参阅使用Windows头。
实例
举例说,使用此功能,请参阅使用一次性初始化。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
InitOnceBeginInitialize
一次性初始化
同步功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==InitOnceComplete Function
Completes one-time initialization started with the InitOnceBeginInitialize function.
Syntax
C++
BOOL WINAPI InitOnceComplete(
__inout LPINIT_ONCE lpInitOnce,
__in DWORD dwFlags,
__in LPVOID lpContext
);
Parameters
lpInitOnce [in, out]
A pointer to the one-time initialization structure.
dwFlags [in]
This parameter can be one or more of the following flags.
ValueMeaning
INIT_ONCE_ASYNC
0x00000002ULOperate in asynchronous mode. This enables multiple completion attempts to execute in parallel. If this flag is used, subsequent calls to this function will fail unless this flag is also specified.
INIT_ONCE_INIT_FAILED
0x00000004ULThe initialization attempt failed.

lpContext [in]
An optional parameter that is used to set the data stored with the one-time initialization structure.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or later. For more information, see Using the Windows Headers .
Examples
For an example that uses this function, see Using One-Time Initialization .
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
InitOnceBeginInitialize
One-Time Initialization
Synchronization Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683491(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:20:22