Skip to content

Commit 6e4bee9

Browse files
authored
Add files via upload
1 parent 8f1c4a5 commit 6e4bee9

File tree

1 file changed

+1
-6
lines changed
  • NoMoreCookiesInstaller/NoMoreCookiesInstaller

1 file changed

+1
-6
lines changed

NoMoreCookiesInstaller/NoMoreCookiesInstaller/Program.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
using System;
22
using System.IO;
3-
using System.Management;
4-
using System.ServiceProcess;
5-
using System.Collections;
63
using Microsoft.Win32;
74
using System.Runtime.InteropServices;
85

@@ -25,9 +22,6 @@ internal class Program
2522
[DllImport("advapi32.dll", SetLastError = true)]
2623
private static extern IntPtr OpenSCManagerA(string MachineName, string DatabaseName, uint DesiredAccess);
2724

28-
//[DllImport("advapi32.dll", SetLastError = true, CharSet = CharSet.Auto)]
29-
//private static extern IntPtr CreateService(IntPtr SCManager, string ServiceName, string DisplayName, uint ServiceType, uint StartType, uint ErrorControl, string BinaryPath, string LoadOrderGroup, string TagId, string Dependencies, string ServiceStartName, string lpPassword);
30-
3125
[DllImport("advapi32.dll", SetLastError = true, CharSet = CharSet.Auto)]
3226
private static extern IntPtr CreateService(IntPtr hSCManager, string lpServiceName, string lpDisplayName, uint dwDesiredAccess, uint dwServiceType, uint dwStartType, uint dwErrorControl, string lpBinaryPathName, string lpLoadOrderGroup, IntPtr lpdwTagId, string lpDependencies, string lpServiceStartName, string lpPassword);
3327

@@ -54,6 +48,7 @@ public static bool IsSecureBootEnabled()
5448

5549
static void Main(string[] args)
5650
{
51+
Console.Title = "NoMoreCookies Installer";
5752
Console.Write("Welcome to NoMoreCookies Installer!\n\n1. Install NoMoreCookies (Compatible with programs and games, only hooks Non-Signed Programs and Non-Services Processes)\n2. Install XNoMoreCookies (Hooks all programs except services, also compatible with most games and software but may cause some delays, recommended for maximum security)\n\n3. Uninstall NoMoreCookies\n\nOption: ");
5853
string Option = Console.ReadLine();
5954
try

0 commit comments

Comments
 (0)