- changed registry branch to hkey local machine for packet throttle

This commit is contained in:
SoftCoder 2014-01-01 11:23:51 -08:00
parent 02cb5c235d
commit 7643c2b591
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ void DisablePacketThrottling() {
wstring subKey = L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile";
HKEY keyHandle;
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.
DWORD disableThrottle = 0xffffffff;