Modify Jenkins scripts to enable babysitter script on Cygwin
[mono.git] / mcs / class / referencesource / mscorlib / microsoft / win32 / safehandles / safefindhandle.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 /*============================================================
7 **
8 ** Class:  SafeFindHandle 
9 **
10 **
11 ** A wrapper for find handles
12 **
13 ** 
14 ===========================================================*/
15
16 using System;
17 using System.Security;
18 using System.Security.Permissions;
19 using System.Runtime.InteropServices;
20 using System.Runtime.CompilerServices;
21 using System.Runtime.ConstrainedExecution;
22 using Microsoft.Win32;
23
24 namespace Microsoft.Win32.SafeHandles {
25     [System.Security.SecurityCritical]  // auto-generated
26     internal sealed class SafeFindHandle : SafeHandleZeroOrMinusOneIsInvalid
27     {
28         [System.Security.SecurityCritical]  // auto-generated_required
29         internal SafeFindHandle() : base(true) {}
30
31         [System.Security.SecurityCritical]
32         override protected bool ReleaseHandle()
33         {
34             return Win32Native.FindClose(handle);
35         }
36     }
37 }