You've already forked linux-packaging-mono
Imported Upstream version 4.4.2.4
Former-commit-id: 92904c9c5915c37244316e42ba99e7b934ed7ee2
This commit is contained in:
parent
589d484eee
commit
0b4a830db1
25
mcs/class/corlib/System.Security/SafeAccessTokenHandle.cs
Normal file
25
mcs/class/corlib/System.Security/SafeAccessTokenHandle.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Microsoft.Win32.SafeHandles
|
||||
{
|
||||
public sealed class SafeAccessTokenHandle : SafeHandle
|
||||
{
|
||||
public override bool IsInvalid {
|
||||
get {
|
||||
return handle == IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
public SafeAccessTokenHandle ()
|
||||
: base (IntPtr.Zero, true)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected override bool ReleaseHandle()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user