winframe class : ProcessName getter

Description

Gets a process name of a window.

Syntax

winframeInstance.ProcessName

Arguments

None

Return value

ClassDescription
stringA process name.

Sample code

1:

wfpool wfp;

2:

winframe winframeIns = wfp.GetActive(); // Gets a window that has focus.

3:

string pname = winframeIns.ProcessName;

Notes

A process name for the UWP (Universal Windows Platform) applications like the Edge, Calculator, or windows store application is the "ApplicationFrameHost".

Links for reference

None.

Copyright © Cooker All rights reserved.