网站首页  词典首页

请输入您要查询的函数:

 

术语 initonceinitialize
释义 InitOnceInitialize
语法:
C++
VOID WINAPI InitOnceInitialize(
__out PINIT_ONCE InitOnce
);
InitOnceInitialize功能
初始化一次性初始化结构。
参数
InitOnce [out]
对一个时初始化结构的指针。
返回值
这个函数没有返回值。
备注
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0600或更高版本。有关详细信息,请参阅使用Windows头。
实例
下面的示例调用InitOnceInitialize初始化一次性初始化结构命名InitOnce。另外,该结构可以声明为一个全局变量在使用一次性初始化所示。
#define _WIN32_WINNT 0x0600
#include
BOOL StartInitialization()
{
INIT_ONCE InitOnce;
InitOnceInitialize(&InitOnce);
//...
 return TRUE;
}

要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
InitOnceExecuteOnce
一次性初始化
同步功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==InitOnceInitialize Function
Initializes a one-time initialization structure.
Syntax
C++
VOID WINAPI InitOnceInitialize(
__out PINIT_ONCE InitOnce
);
Parameters
InitOnce [out]
A pointer to the one-time initialization structure.
Return Value
This function does not return a value.
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
The following example calls InitOnceInitialize to initialize the one-time initialization structure named InitOnce. Alternatively, the structure can be declared as a global variable as shown in Using One-Time Initialization .
#define _WIN32_WINNT 0x0600
#include
BOOL StartInitialization()
{
INIT_ONCE InitOnce;
InitOnceInitialize(&InitOnce);
//...
 return TRUE;
}
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
InitOnceExecuteOnce
One-Time Initialization
Synchronization Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683495(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:22:51