网站首页  词典首页

请输入您要查询的函数:

 

术语 initializeprocthreadattributelist
释义 InitializeProcThreadAttributeList
语法:
C++
BOOL WINAPI InitializeProcThreadAttributeList(
__out_opt LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList,
__in DWORD dwAttributeCount,
__reserved DWORD dwFlags,
__inout PSIZE_T lpSize
);
InitializeProcThreadAttributeList功能
初始化的进程和线程创建属性指定列表。
参数
lpAttributeList [指出,可选]
属性列表。此参数可以是NULL,以确定所需的缓冲区大小,以支持指定数目的属性。
dwAttributeCount [in]
The count of attributes to be added to the list.
dwFlags
这个参数是保留,必须为零。
lpSize [ in , out ]
如果lpAttributeList不是NULL,这个参数指定在输入lpAttributeList对缓冲区的字节大小。在输出,接收此参数在初始化属性列表的字节大小。
如果lpAttributeList为NULL,这个参数以字节为单位接收所需的缓冲区大小。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
首先,请设置为您的属性将使用和lpAttributeList为NULL最大数量dwAttributeCount参数此功能。该函数返回以字节为单位的lpSize参数所需的缓冲区大小。分配在lpAttributeList缓冲区中的数据足够的空间,并再次调用该函数初始化缓冲区。
要添加属性的列表,调用UpdateProcThreadAttribute功能。要指定这些属性在创建过程中,指定在dwCreationFlag参数EXTENDED_STARTUPINFO_PRESENT及在lpStartupInfo参数STARTUPINFOEX结构。请注意,您可以指定相同的STARTUPINFOEX结构,多子进程。
当您使用完的名单,调用DeleteProcThreadAttributeList功能。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
DeleteProcThreadAttributeList
进程和线程函数
UpdateProcThreadAttribute
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==InitializeProcThreadAttributeList Function
Initializes the specified list of attributes for process and thread creation.
Syntax
C++
BOOL WINAPI InitializeProcThreadAttributeList(
__out_opt LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList,
__in DWORD dwAttributeCount,
__reserved DWORD dwFlags,
__inout PSIZE_T lpSize
);
Parameters
lpAttributeList [out, optional]
The attribute list. This parameter can be NULL to determine the buffer size required to support the specified number of attributes.
dwAttributeCount [in]
The count of attributes to be added to the list.
dwFlags
This parameter is reserved and must be zero.
lpSize [in, out]
If lpAttributeList is not NULL, this parameter specifies the size in bytes of the lpAttributeList buffer on input. On output, this parameter receives the size in bytes of the initialized attribute list.
If lpAttributeList is NULL, this parameter receives the required buffer size in bytes.
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
First, call this function with the dwAttributeCount parameter set to the maximum number of attributes you will be using and the lpAttributeList to NULL. The function returns the required buffer size in bytes in the lpSize parameter. Allocate enough space for the data in the lpAttributeList buffer and call the function again to initialize the buffer.
To add attributes to the list, call the UpdateProcThreadAttribute function. To specify these attributes when creating a process, specify EXTENDED_STARTUPINFO_PRESENT in the dwCreationFlag parameter and a STARTUPINFOEX structure in the lpStartupInfo parameter. Note that you can specify the same STARTUPINFOEX structure to multiple child processes.
When you have finished using the list, call the DeleteProcThreadAttributeList function.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
DeleteProcThreadAttributeList
Process and Thread Functions
UpdateProcThreadAttribute
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683481(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:17:09