CF_PROCESS_INFO structure (cfapi.h)

Contains information about a user process that triggers a callback.

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 CF_PROCESS_INFO 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.

The string that is 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.

Requirements

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

See also

CF_CALLBACK_INFO