术语 | getprocessversion |
释义 | GetProcessVersion 语法: C++ DWORD WINAPI GetProcessVersion( __in DWORD ProcessId ); GetProcessVersion功能 检索主要和次要的系统上指定的进程预计运行的版本号。 参数 的processID [in] 对感兴趣的进程的进程标识符。值为零指定调用进程。 返回值 如果函数成功,返回值是系统上的运行过程预计版本。在返回值的高位字包含主版本号。在返回值的低位字包含次要版本号。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。函数失败如果ProcessID是一个无效的值。 备注 该GetProcessVersion函数执行较慢,当ProcessID是非零值,指定一个过程调用进程比其他。 版本号此函数返回的版本号的。exe文件的进程映像头加盖正在运行。连接器程序设置此值。 如果这个功能是从32位应用程序在WOW64下运行要求,指定的进程必须是一个32位进程或函数失败。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 进程和线程函数 过程 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==GetProcessVersion Function Retrieves the major and minor version numbers of the system on which the specified process expects to run. Syntax C++ DWORD WINAPI GetProcessVersion( __in DWORD ProcessId ); Parameters ProcessId [in] The process identifier of the process of interest. A value of zero specifies the calling process. Return Value If the function succeeds, the return value is the version of the system on which the process expects to run. The high word of the return value contains the major version number. The low word of the return value contains the minor version number. If the function fails, the return value is zero. To get extended error information, call GetLastError . The function fails if ProcessId is an invalid value. Remarks The GetProcessVersion function performs less quickly when ProcessId is nonzero, specifying a process other than the calling process. The version number returned by this function is the version number stamped in the image header of the .exe file the process is running. Linker programs set this value. If this function is called from a 32-bit application running on WOW64, the specified process must be a 32-bit process or the function fails. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also Process and Thread Functions Processes Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms683224(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。