using Microsoft.Win32;

RegistryKey regkey;
string keyValueInt = "0";
string subKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System";

try...