41 lines
1.7 KiB
C#
41 lines
1.7 KiB
C#
using System;
|
|
using System.Runtime.ConstrainedExecution;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace Microsoft.Win32.SafeHandles
|
|
{
|
|
/// <summary>Provides a base class for Win32 safe handle implementations in which the value of either 0 or -1 indicates an invalid handle.</summary>
|
|
// Token: 0x02000074 RID: 116
|
|
[Token(Token = "0x2000074")]
|
|
public abstract class SafeHandleZeroOrMinusOneIsInvalid : SafeHandle
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid" /> class, specifying whether the handle is to be reliably released.</summary>
|
|
/// <param name="ownsHandle">
|
|
/// <see langword="true" /> to reliably release the handle during the finalization phase; <see langword="false" /> to prevent reliable release (not recommended).</param>
|
|
// Token: 0x0600030A RID: 778 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600030A")]
|
|
[Address(RVA = "0x2AB5490", Offset = "0x2AB4290", VA = "0x182AB5490")]
|
|
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
|
|
protected SafeHandleZeroOrMinusOneIsInvalid(bool ownsHandle)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets a value that indicates whether the handle is invalid.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the handle is not valid; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000067 RID: 103
|
|
// (get) Token: 0x0600030B RID: 779 RVA: 0x000033D8 File Offset: 0x000015D8
|
|
[Token(Token = "0x17000067")]
|
|
public override bool IsInvalid
|
|
{
|
|
[Token(Token = "0x600030B")]
|
|
[Address(RVA = "0x2AB54E0", Offset = "0x2AB42E0", VA = "0x182AB54E0", Slot = "5")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
}
|
|
}
|