コード例 #1
0
 private static RegistryKey getSegmentKey(BootSegment segment)
 {
     return segment == BootSegment.global ? lmRunKey : cuRunKey;
 }
コード例 #2
0
 public static void RemoveFromBoot(BootSegment segment, string valueName)
 {
     getSegmentKey(segment).DeleteValue(valueName);
 }
コード例 #3
0
 public static bool StartsOnBoot(BootSegment segment, string valueName)
 {
     return getSegmentKey(segment).GetValue(valueName) != null;
 }
コード例 #4
0
 public static void AddToBoot(BootSegment segment, string valueName)
 {
     AddToBoot(segment, valueName, System.Reflection.Assembly.GetEntryAssembly().GetName().CodeBase);
 }
コード例 #5
0
 public static void AddToBoot(BootSegment segment, string valueName, string exePath)
 {
     getSegmentKey(segment).SetValue(valueName, exePath);
 }
コード例 #6
0
 public static bool StartsOnBoot(BootSegment segment, string valueName)
 {
     return(getSegmentKey(segment).GetValue(valueName) != null);
 }
コード例 #7
0
 public static void RemoveFromBoot(BootSegment segment, string valueName)
 {
     getSegmentKey(segment).DeleteValue(valueName);
 }
コード例 #8
0
 public static void AddToBoot(BootSegment segment, string valueName, string exePath)
 {
     getSegmentKey(segment).SetValue(valueName, exePath);
 }
コード例 #9
0
 public static void AddToBoot(BootSegment segment, string valueName)
 {
     AddToBoot(segment, valueName, System.Reflection.Assembly.GetEntryAssembly().GetName().CodeBase);
 }
コード例 #10
0
 private static RegistryKey getSegmentKey(BootSegment segment)
 {
     return(segment == BootSegment.global ? lmRunKey : cuRunKey);
 }