コード例 #1
0
 protected override void InternalProcessRecord()
 {
     TaskLogger.LogEnter();
     try
     {
         ComRunAsPwdUtil.SetRunAsPassword(InstallTranscodingServiceEx.TranscodingServiceAppId, "");
     }
     catch (Win32Exception e)
     {
         base.WriteError(new TaskWin32Exception(e), ErrorCategory.WriteError, null);
     }
     TaskLogger.LogExit();
 }
コード例 #2
0
 public static void UnregisterOleConverter()
 {
     ComRunAsPwdUtil.SetRunAsPassword("{131473D0-EC52-4001-A295-E2DD73A7B115}", null);
     OleConverterRegistry.RemovePermissionsForAppId("{13147291-05DE-4577-B1AF-E0BB444B3B27}");
     OleConverterRegistry.RemovePermissionsForAppId("{131473D0-EC52-4001-A295-E2DD73A7B115}");
 }
コード例 #3
0
 public static void RegisterOleConverter()
 {
     OleConverterRegistry.SetPermissionsForAppId("{13147291-05DE-4577-B1AF-E0BB444B3B27}");
     OleConverterRegistry.SetPermissionsForAppId("{131473D0-EC52-4001-A295-E2DD73A7B115}");
     ComRunAsPwdUtil.SetRunAsPassword("{131473D0-EC52-4001-A295-E2DD73A7B115}", string.Empty);
 }