a
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
/// <summary>Wraps a managed object holding a handle to a resource that is passed to unmanaged code using platform invoke.</summary>
|
||||
// Token: 0x0200057F RID: 1407
|
||||
[Token(Token = "0x200057F")]
|
||||
[ComVisible(true)]
|
||||
public struct HandleRef
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.HandleRef" /> class with the object to wrap and a handle to the resource used by unmanaged code.</summary>
|
||||
/// <param name="wrapper">A managed object that should not be finalized until the platform invoke call returns.</param>
|
||||
/// <param name="handle">An <see cref="T:System.IntPtr" /> that indicates a handle to a resource.</param>
|
||||
// Token: 0x06002AB5 RID: 10933 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002AB5")]
|
||||
[Address(RVA = "0x479F00", Offset = "0x478D00", VA = "0x180479F00")]
|
||||
public HandleRef(object wrapper, IntPtr handle)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the handle to a resource.</summary>
|
||||
/// <returns>The handle to a resource.</returns>
|
||||
// Token: 0x17000652 RID: 1618
|
||||
// (get) Token: 0x06002AB6 RID: 10934 RVA: 0x00016A40 File Offset: 0x00014C40
|
||||
[Token(Token = "0x17000652")]
|
||||
public IntPtr Handle
|
||||
{
|
||||
[Token(Token = "0x6002AB6")]
|
||||
[Address(RVA = "0x57C630", Offset = "0x57B430", VA = "0x18057C630")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04001933 RID: 6451
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4001933")]
|
||||
internal object m_wrapper;
|
||||
|
||||
// Token: 0x04001934 RID: 6452
|
||||
[FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x4001934")]
|
||||
internal IntPtr m_handle;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user