Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( RegOpenKey(HKEY_CURRENT_USER, L"Software\\SAMP", &keyHandler) == ERROR_SUCCESS )
- {
- dwType = REG_SZ;
- if ( RegQueryValueEx(keyHandler, L"gta_sa_exe", 0, &dwType, (BYTE*)buffer, &dwBufferSize) == ERROR_SUCCESS )
- {
- cout << "Your GTA San Andreas is located at:" << endl;
- cout << buffer << endl;
- system("pause");
- }
- else
- {
- cout << "Could not send a query to the registry!" << endl;
- system("pause");
- }
- }
- else
- {
- cout << "Unable to open the registry!" << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement