HWND
An hWnd is a handle to a window in the Win32 API. In Windows programming, HWND is a typedef that represents a window object. An hWnd is an opaque, pointer-sized value that identifies a particular window within a thread's message queue. The handle is obtained when a window is created or found (for example, via CreateWindowEx, CreateWindow, or FindWindow). The operating system uses the hwnd to deliver events and messages to the window's window procedure (WndProc). The WndProc receives a parameter of type HWND, which identifies the window receiving the message.
A window's lifetime is managed by the system. It exists from creation until DestroyWindow or until its
Windows are associated with a thread; messages for a window are processed by that thread's message queue.
HWND is distinct from other Windows handles such as HINSTANCE, HMENU, or HBITMAP. It is not a