/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Servers/IIS/IISIntegration/src/NativeMethods.cs
15 строк
487 B
Aaron Robinson
Convert all possible `DllImport`s to `LibraryImport` for .NET 7+ (#41573)
01 июн 2022, 02:19
Не верифицирован
01 июн 2022, 02:19
332a6f9
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.InteropServices; namespace Microsoft.AspNetCore.Server.IISIntegration; internal static partial class NativeMethods { private const string KERNEL32 = "kernel32.dll"; [LibraryImport(KERNEL32, SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] public static partial bool CloseHandle(IntPtr handle); }