Getting HWND of current Process

2020-02-10 12:35发布

I have a process in c++ in which I am using window API. I want to get the HWND of own process. Kindly guide me how can I make it possible.

7条回答
Rolldiameter
2楼-- · 2020-02-10 13:35

The GetCurrentProcess() function returns a pseudo-handle which refers to the current process. This handle can be used in most Win32 API functions that take a process handle parameter.

The documentation contains more information about this pseudo-handle, including how to convert it to a real handle if you need to.

查看更多
登录 后发表回答