CF_PROCESS_INFO structure (cfapi.h)

Contains information about a user process.

Syntax

typedef struct CF_PROCESS_INFO {
  DWORD  StructSize;
  DWORD  ProcessId;
  PCWSTR ImagePath;
  PCWSTR PackageName;
  PCWSTR ApplicationId;
  PCWSTR CommandLine;
  DWORD  SessionId;
} CF_PROCESS_INFO;

Members

StructSize

The size of the structure.

ProcessId

The 32 bit ID of the user process.

ImagePath

The absolute path of the main executable file including the volume name in the format of NT file path. If the platform failed to retrieve the image path, “UNKNOWN” will be returned.

PackageName

Used for modern applications. The app package name.

ApplicationId

Used for modern applications. The application ID.

CommandLine

Note  This member was added in Windows 10, version 1803.

Used to start the process. If the platform failed to retrieve the command line, “UNKNOWN” will be returned.

SessionId

Note  This member was added in Windows 10, version 1803.

The 32bit ID of the session wherein the user process that triggers the callback resides.

SessionId

Requirements

   
Minimum supported client Windows 10, version 1709 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Header cfapi.h