/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/System.Management.Automation/engine/Interop/Windows/NtQueryInformationProcess.cs
31 строка
932 B
Ilya
Replace `DllImport` with `LibraryImport` - 1 (#18603)
30 ноя 2022, 21:00
Не верифицирован
30 ноя 2022, 21:00
3dc95ce
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #nullable enable using System.Runtime.InteropServices; internal static partial class Interop { internal static unsafe partial class Windows { [StructLayout(LayoutKind.Sequential)] internal struct PROCESS_BASIC_INFORMATION { public nint ExitStatus; public nint PebBaseAddress; public nint AffinityMask; public nint BasePriority; public nint UniqueProcessId; public nint InheritedFromUniqueProcessId; } [LibraryImport("ntdll.dll")] internal static partial int NtQueryInformationProcess( nint processHandle, int processInformationClass, out PROCESS_BASIC_INFORMATION processInformation, int processInformationLength, out int returnLength); } }