术语 | queryfullprocessimagename |
释义 | QueryFullProcessImageName 语法: C++ BOOL WINAPI QueryFullProcessImageName( __in HANDLE hProcess, __in DWORD dwFlags, __out LPTSTR lpExeName, __inout PDWORD lpdwSize ); QueryFullProcessImageName功能 检索可执行图像指定的进程的全名。 参数 hProcess [in] 句柄的进程。这种处理必须与PROCESS_QUERY_INFORMATION或PROCESS_QUERY_LIMITED_INFORMATION访问权限创建。有关更多信息,请参见过程的安全性和访问权限。 dwFlags [in] 此参数可以是下列值之一。 ValueMeaning 0The名称应使用Win32路径格式。 PROCESS_NAME_NATIVE 0x00000001The名称应使用本地系统路径格式。 lpExeName [out] 到可执行映像路径。如果函数成功,这个字符串是空终止。 lpdwSize [ in , out ] 在输入,指定lpExeName以字符缓冲区的大小。在取得成功,收到了写入缓冲区的字符数不包括空终止字符。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0600或更高版本。 要求: client最低支持Vista server最低支持 Windows Server 2008 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll Unicode和ANSI namesQueryFullProcessImageNameW(Unicode)和QueryFullProcessImageNameA(ANSI)的 参见 GetModuleFileNameEx GetProcessImageFileName 进程和线程函数 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==QueryFullProcessImageName Function Retrieves the full name of the executable image for the specified process. Syntax C++ BOOL WINAPI QueryFullProcessImageName( __in HANDLE hProcess, __in DWORD dwFlags, __out LPTSTR lpExeName, __inout PDWORD lpdwSize ); Parameters hProcess [in] A handle to the process. This handle must be created with the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see Process Security and Access Rights . dwFlags [in] This parameter can be one of the following values. ValueMeaning 0The name should use the Win32 path format. PROCESS_NAME_NATIVE 0x00000001The name should use the native system path format. lpExeName [out] The path to the executable image. If the function succeeds, this string is null-terminated. lpdwSize [in, out] On input, specifies the size of the lpExeName buffer, in characters. On success, receives the number of characters written to the buffer, not including the null-terminating character. 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. Requirements Minimum supported clientWindows Vista Minimum supported serverWindows Server 2008 HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll Unicode and ANSI namesQueryFullProcessImageNameW (Unicode) and QueryFullProcessImageNameA (ANSI) See Also GetModuleFileNameEx GetProcessImageFileName Process and Thread Functions Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms684919(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。