This commit is contained in:
Mino 2020-02-29 18:40:53 +09:00
parent d9a698fe19
commit d663252ed1
2 changed files with 79 additions and 2 deletions

View file

@ -1,10 +1,33 @@
using System;
using Microsoft.Win32.SafeHandles;
using System;
using System.Collections.Generic;
using System.Text;
namespace Dalamud.Injector.OS
{
internal sealed class Process
internal sealed partial class Process : IDisposable
{
private SafeProcessHandle m_handle;
}
internal sealed partial class Process {
internal Process(SafeProcessHandle handle)
{
m_handle = handle;
}
public static Process Open(uint pid/* and perms? maybe? */)
{
//
throw new NotImplementedException("TODO");
}
public void Dispose()
{
m_handle?.Dispose();
m_handle = null!;
}
}
}