|
// <auto-generated/>
namespace Microsoft.AspNetCore.Server.IISIntegration
{
internal static unsafe partial class NativeMethods
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.27601")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
public static partial bool CloseHandle(nint handle)
{
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);
}
}
}
|