Windows-powershell / PowerShell-master /src /System.Management.Automation /engine /Interop /Windows /NtQueryInformationProcess.cs
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System.Runtime.InteropServices; | |
| internal static partial class Interop | |
| { | |
| internal static unsafe partial class Windows | |
| { | |
| [] | |
| internal struct PROCESS_BASIC_INFORMATION | |
| { | |
| public nint ExitStatus; | |
| public nint PebBaseAddress; | |
| public nint AffinityMask; | |
| public nint BasePriority; | |
| public nint UniqueProcessId; | |
| public nint InheritedFromUniqueProcessId; | |
| } | |
| [] | |
| internal static partial int NtQueryInformationProcess( | |
| nint processHandle, | |
| int processInformationClass, | |
| out PROCESS_BASIC_INFORMATION processInformation, | |
| int processInformationLength, | |
| out int returnLength); | |
| } | |
| } | |