#ifndef _NTPSAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
typedef enum _SUBSYSTEM_INFORMATION_TYPE
{
SubsystemInformationTypeWin32,
SubsystemInformationTypeWSL,
MaxSubsystemInformationType
} SUBSYSTEM_INFORMATION_TYPE;
View code on GitHub
// ntddk.h
typedef enum _SUBSYSTEM_INFORMATION_TYPE {
SubsystemInformationTypeWin32,
SubsystemInformationTypeWSL,
MaxSubsystemInformationType
} SUBSYSTEM_INFORMATION_TYPE, *PSUBSYSTEM_INFORMATION_TYPE;
View the official Windows Driver Kit DDI reference
This enumeration is documented in Windows Driver Kit.
Indicates the type of subsystem for a process or thread. This enumeration is used in NtQueryInformationProcess and NtQueryInformationThread calls.
SubsystemInformationTypeWin32
The subsystem type for the process or thread is Win32.
SubsystemInformationTypeWSL
The subsystem type for the process or thread is Windows Subsystem for Linux (WSL). For this process, these members of the PS_CREATE_NOTIFY_INFO structure are set as follows:
The preceding member values may be NULL.
MaxSubsystemInformationType
Reserved.