Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(wxIsPlatform64Bit())
- {
- HANDLE hModuleSnap = INVALID_HANDLE_VALUE;
- MODULEENTRY32 me64;
- hModuleSnap = CreateToolhelp32Snapshot( TH32CS_SNAPMODULE32 , gamePID );
- if( hModuleSnap == INVALID_HANDLE_VALUE )
- return 1;
- me64.dwSize = sizeof( MODULEENTRY32 );
- if( !Module32First( hModuleSnap, &me64 ) )
- {
- CloseHandle( hModuleSnap );
- return 2;
- }
- do
- {
- MyFile = new wxFileName(me64.szExePath);
- MyMD5->SetFile(*MyFile);
- MySHA1->SetFile(*MyFile);
- wxMessageBox(wxString::Format(wxT("%s"),me64.szModule) + wxT("|") + MyMD5->GetDigest() + wxT("|") + MySHA1->GetDigest() + wxT(";"));
- //HookGlob.ClientHooks.Append(wxString::Format(wxT("%s"),me32.szModule) + wxT("|") + MyMD5->GetDigest() + wxT(";"));
- delete(MyFile);
- }
- while( Module32Next( hModuleSnap, &me64 ) );
- delete(MyMD5);
- delete(MySHA1);
- CloseHandle( hModuleSnap );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement