feat: -console argument

This commit is contained in:
ChsBuffer
2020-10-10 22:37:23 +08:00
parent 406fbd8b7e
commit 45b6352553
2 changed files with 13 additions and 0 deletions

View File

@@ -66,5 +66,11 @@ namespace Netch
[DllImport("dnsapi", EntryPoint = "DnsFlushResolverCache")]
public static extern uint FlushDNSResolverCache();
[DllImport("kernel32.dll")]
public static extern bool AllocConsole();
[DllImport("kernel32.dll")]
public static extern bool AttachConsole(int dwProcessId);
}
}