网站首页  词典首页

请输入您要查询的函数:

 

术语 getprocessidofthread
释义 GetProcessIdOfThread
语法:
C++
DWORD WINAPI GetProcessIdOfThread(
__in HANDLE Thread
);
GetProcessIdOfThread功能
检索与指定的线程关联的进程的进程标识符。
参数
主题 [in]
句柄到线程。句柄必须有THREAD_QUERY_INFORMATION或THREAD_QUERY_LIMITED_INFORMATION访问权限。有关更多信息,请参见线程安全和访问权限。
Windows Server 2003中:在处理必须有THREAD_QUERY_INFORMATION访问权限。
返回值
如果函数成功,返回值是与指定的线程关联的进程的进程标识符。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
直到进程终止,它的进程标识符唯一标识的系统。如需有关访问权限的信息,请参见线程安全和访问权限。
要求:
client最低支持Vista
最低支持serverWindows服务器2003
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GetCurrentThreadId
GetProcessId
GetThreadId
过程
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetProcessIdOfThread Function
Retrieves the process identifier of the process associated with the specified thread.
Syntax
C++
DWORD WINAPI GetProcessIdOfThread(
__in HANDLE Thread
);
Parameters
Thread [in]
A handle to the thread. The handle must have the THREAD_QUERY_INFORMATION or THREAD_QUERY_LIMITED_INFORMATION access right. For more information, see Thread Security and Access Rights .
Windows Server 2003: The handle must have the THREAD_QUERY_INFORMATION access right.
Return Value
If the function succeeds, the return value is the process identifier of the process associated with the specified thread.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
Until a process terminates, its process identifier uniquely identifies it on the system. For more information about access rights, see Thread Security and Access Rights.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2003
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GetCurrentThreadId
GetProcessId
GetThreadId
Processes
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683216(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:25:51