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.
相关问题
- Sorting 3 numbers without branching [closed]
- Multiple sockets for clients to connect to
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
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.