Windows-powershell / PowerShell-master /src /System.Management.Automation /engine /Interop /Windows /NtQueryInformationProcess.cs
Download PowerShell-master/src/System.Management.Automation/engine/Interop/Windows/NtQueryInformationProcess.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 932 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/Interop/Windows/NtQueryInformationProcess.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/System.Management.Automation/engine/Interop/Windows/NtQueryInformationProcess.cs
-
curl -L -o NtQueryInformationProcess.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/Interop/Windows/NtQueryInformationProcess.cs
932 Bytes
| // 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); | |
| } | |
| } | |