mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-10 10:04:37 +01:00
Change SafeProcessHandle to IntPtr again, ugh
This commit is contained in:
parent
4042d138b2
commit
32af098159
13 changed files with 363 additions and 229 deletions
36
Dalamud.Bootstrap/OS/Windows/RelaxedProcessHandle.cs
Normal file
36
Dalamud.Bootstrap/OS/Windows/RelaxedProcessHandle.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using Dalamud.Bootstrap.OS.Windows.Raw;
|
||||
using Microsoft.Win32.SafeHandles;
|
||||
|
||||
namespace Dalamud.Bootstrap.Windows
|
||||
{
|
||||
internal sealed class RelaxedProcessHandle : IDisposable
|
||||
{
|
||||
private SafeProcessHandle m_handle;
|
||||
|
||||
private RelaxedProcessHandle(SafeProcessHandle handle)
|
||||
{
|
||||
m_handle = handle;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="handle"></param>
|
||||
/// <returns></returns>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
public static RelaxedProcessHandle Create(SafeProcessHandle handle, PROCESS_ACCESS_RIGHTS access)
|
||||
{
|
||||
|
||||
|
||||
return new RelaxedProcessHandle(handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue