English 中文(简体)
我想获取流程名称、流程id、流程路径、产品名称窗口标题
原标题:I would like to get process name,process id ,Process Path,Product Name Window Title
  • 时间:2011-02-09 01:47:47
  •  标签:
  • visual-c++
  • how to get process information like this format my develop tools is visual c++ 2008 I would like to get process name,process id ,Process Path,Product Name Window Title
    but i don t know how to connect those information toghter

问题回答

我假设你想要这些关于你自己(运行过程)的信息。

要获取进程名称和路径,请使用GetModuleFileName函数获取完整路径,并使用路径中的最后一个元素作为进程名称。

要获取进程id,请使用GetCurrentProcessId函数。

要获取窗口标题,请使用GetWindowText函数。





相关问题
how to reliable capture display setting changed

static void Main() { // Set the SystemEvents class to receive event notification when a user // when display settings change. SystemEvents.DisplaySettingsChanged += new ...

Why use CComBSTR instead of just passing a WCHAR*?

I m new to COM. What exactly is the advantage of replacing: L"String" with CComBSTR(L"String") I can see a changelist in the COM part of my .NET application where all strings are replaced in this ...

COM Basic links

folks can you provide me the tutorial link or .pdf for learning basic COM?. i do google it.. still i recommend answers of stackoverflow so please pass me.. Thanks

Statically linking Winsock?

I m using Winsock 1.1 in my project. I include wsock32.lib in "Additional Dependencies". I m looking at the DLL project using depends.exe and notice that the DLL depends on wsock32.dll. How can I ...

热门标签