直接上代码
private void SetForceSetCopyCount(string key, object value)
{
RegistryKey office = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Office\11.0\Word\Options", true);
if (office != null && office.GetValue("ForceSetCopyCount") == null)
{
office.SetValue(key, value);
}
string[] keyValues = office.GetValueNames();
Console.WriteLine(keyValues);
}