Code:HWND WINAPI FindProcessWindow(__in_z LPCSTR lpcszWindowClass, __in DWORD dwProcessId) { DWORD dwWindowId; CHAR pszClassName[200]; HWND hWnd; hWnd = GetTopWindow (NULL); while(hWnd != NULL) { if(GetClassName(hWnd, pszClassName, 200) > 0) if(lstrcmpiA(lpcszWindowClass, pszClassName) == 0) if(GetWindowThreadProcessId(hWnd, &dwWindowId)) if(dwWindowId == dwProcessId) return hWnd; hWnd = GetNextWindow(hWnd, GW_HWNDNEXT); } return NULL; }
#Recovery Mode

LinkBack URL
About LinkBacks
Reply With Quote

Ok time to make a VB trainer (10 years later) Yay got all the hooks and whatever crap u do to make the trainer doneXD




Bookmarks