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.
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.