Using System;
Using Microsoft. Win32;
Namespace Win7 game full-screen patch
{
Class Program
{
Static void Main (string [] args)
{
RegistryKey system_key = Registry. LocalMachine. OpenSubKey ("SYSTEM ");
If (system_key! = Null)
{
RegistryKey ControlSet001_key = system_key.OpenSubKey ("ControlSet001 ");
If (controlset000000key! = Null)
{
RegistryKey Control_key = controlset0020.key.opensubkey ("Control ");
If (Control_key! = Null)
{
RegistryKey GraphicsDrivers_key = Control_key.OpenSubKey ("GraphicsDrivers ");
If (GraphicsDrivers_key! = Null)
{
RegistryKey Configuration_key = GraphicsDrivers_key.OpenSubKey ("Configuration ");
If (Configuration_key! = Null)
{
String [] keynames = Configuration_key.GetSubKeyNames ();
Foreach (string name in keynames)
{
If (name. StartsWith ("INL "))
{
RegistryKey Inl_key = Configuration_key.OpenSubKey (name );
If (Inl_key! = Null)
{
RegistryKey oo_key = Inl_key.OpenSubKey ("00 ");
If (oo_key! = Null)
{
RegistryKey ooo_key = oo_key.OpenSubKey ("00", true );
If (ooo_key! = Null)
{
If (int) ooo_key.GetValue ("Scaling ")! = 3)
{
Ooo_key.SetValue ("Scaling", 3 );
}
Console. WriteLine ("patch successfully marked .");
}
}
}
}
}
}
}
}
}
}
Console. ReadKey ();
}
}
}