网站首页  词典首页

请输入您要查询的函数:

 

术语 process32first
释义 Process32First
语法:
C++
BOOL WINAPI Process32First(
__in HANDLE hSnapshot,
__inout LPPROCESSENTRY32 lppe
);
Process32First函数
检索有关信息的第一个进程中遇到的一个系统快照。
参数
hSnapshot [in]
一个句柄,从先前调用CreateToolhelp32Snapshot函数返回的快照。
lppe [ in , out ]
一个 PROCESSENTRY32结构的指针。它包含了可执行文件的名称进程信息,进程标识符,和父进程的进程标识符。
返回值
返回TRUE,如果这一进程列表的第一个项目已被复制到缓冲区或否则返回FALSE。在ERROR_NO_MORE_FILES错误值由GetLastError函数,如果没有进程存在或快照不包含进程的信息。
备注
调用应用程序必须设置PROCESSENTRY32 dwSize成员的大小,以字节为单位的结构。
检索有关在同一快照记录的其他进程信息,请使用Process32Next功能。
实例
有关示例,请参阅以快照和浏览过程。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderTlhelp32.h
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesProcess32FirstW(Unicode)和Process32First(ANSI)的
参见
CreateToolhelp32Snapshot
工艺散步
Process32Next
PROCESSENTRY32
工具帮助函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==Process32First Function
Retrieves information about the first process encountered in a system snapshot.
Syntax
C++
BOOL WINAPI Process32First(
__in HANDLE hSnapshot,
__inout LPPROCESSENTRY32 lppe
);
Parameters
hSnapshot [in]
A handle to the snapshot returned from a previous call to the CreateToolhelp32Snapshot function.
lppe [in, out]
A pointer to a PROCESSENTRY32 structure. It contains process information such as the name of the executable file, the process identifier, and the process identifier of the parent process.
Return Value
Returns TRUE if the first entry of the process list has been copied to the buffer or FALSE otherwise. The ERROR_NO_MORE_FILES error value is returned by the GetLastError function if no processes exist or the snapshot does not contain process information.
Remarks
The calling application must set the dwSize member of PROCESSENTRY32 to the size, in bytes, of the structure.
To retrieve information about other processes recorded in the same snapshot, use the Process32Next function.
Examples
For an example, see Taking a Snapshot and Viewing Processes .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderTlhelp32.h
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesProcess32FirstW (Unicode) and Process32First (ANSI)
See Also
CreateToolhelp32Snapshot
Process Walking
Process32Next
PROCESSENTRY32
Tool Help Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms684834(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:15:47