If i have a windows handle, how do i get its instance?
Printable View
If i have a windows handle, how do i get its instance?
I'm guessing you mean the hInstance of the process which created it. :rolleyes:
Code:HINSTANCE hInst = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE);