File: _generated\0\LibraryImports.g.cs
Web Access
Project: src\aspnetcore\src\Servers\IIS\IISIntegration\src\Microsoft.AspNetCore.Server.IISIntegration.csproj (Microsoft.AspNetCore.Server.IISIntegration)
// <auto-generated/>
namespace Microsoft.AspNetCore.Server.IISIntegration
{
    internal static partial class NativeMethods
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.41513")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool CloseHandle(nint handle)
        {
            unsafe
            {
                int __lastError;
                bool __retVal;
                int __retVal_native;
                {
                    global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                    __retVal_native = __PInvoke(handle);
                    __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
                }
 
                // Unmarshal - Convert native data to managed data.
                __retVal = __retVal_native != 0;
                global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
                return __retVal;
                // Local P/Invoke
                [global::System.Runtime.InteropServices.DllImportAttribute("kernel32.dll", EntryPoint = "CloseHandle", ExactSpelling = true)]
                static extern unsafe int __PInvoke(nint __handle_native);
            }
        }
    }
}