First test build
This commit is contained in:
18
Torch.Server/NativeMethods.cs
Normal file
18
Torch.Server/NativeMethods.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Torch.Server
|
||||
{
|
||||
public class NativeMethods
|
||||
{
|
||||
[DllImport("kernel32")]
|
||||
public static extern bool AllocConsole();
|
||||
|
||||
[DllImport("kernel32")]
|
||||
public static extern bool FreeConsole();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user