Getting HWND of current Process

后端 未结 7 859
攒了一身酷
攒了一身酷 2020-12-17 10:33

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条回答
  • 2020-12-17 11:13

    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.

    0 讨论(0)
提交回复
热议问题