Getting HWND of current Process

后端 未结 7 879
攒了一身酷
攒了一身酷 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:02

    You can use HANDLE WINAPI GetCurrentProcess(void); from Kernel32.dll.

    See MSDN entry here.

提交回复
热议问题