Game Development Reference
In-Depth Information
{
Console.WriteLine(“Invalid option: “ + args[0]);
Usage();
return 1;
}
}
else if (args.Length >= 2)
{
List<string> files = new List<string>(args);
string command = files[0];
files.RemoveAt(0);
SimpleTool.ProcessFiles(command, files.ToArray(), false);
}
else
{
Usage();
}
return 0;
}
private static void Usage()
{
Console.WriteLine(“/r - Register the shell extension “ +
“for this tool with Explorer”);
Console.WriteLine(“/u - Unregister the shell extension “ +
“for this tool from Explorer”);
}
}
The simple tool shell extension is now built, but it must be registered before it is
functional. The next section covers how to do this.
Component Registration
Before our extension will work, we need to register it with Windows. This involves
a few entries into the registry so the shell is aware of the new functionality, and it
requires installation of the component into the Global Assembly Cache (GAC).
Search Nedrilad ::




Custom Search