mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 14:11:15 +02:00
- changed registry branch to hkey local machine for packet throttle
This commit is contained in:
@@ -94,7 +94,7 @@ void DisablePacketThrottling() {
|
|||||||
wstring subKey = L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile";
|
wstring subKey = L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile";
|
||||||
HKEY keyHandle;
|
HKEY keyHandle;
|
||||||
DWORD dwDisposition;
|
DWORD dwDisposition;
|
||||||
RegCreateKeyEx(HKEY_CURRENT_USER,subKey.c_str(),0, NULL, 0, KEY_ALL_ACCESS, NULL, &keyHandle, &dwDisposition);
|
RegCreateKeyEx(HKEY_LOCAL_MACHINE,subKey.c_str(),0, NULL, 0, KEY_ALL_ACCESS, NULL, &keyHandle, &dwDisposition);
|
||||||
//Set the value.
|
//Set the value.
|
||||||
|
|
||||||
DWORD disableThrottle = 0xffffffff;
|
DWORD disableThrottle = 0xffffffff;
|
||||||
|
Reference in New Issue
Block a user