Forgot to close process handle
Add IsWow64(HWND hwnd) function
Fix memory leak