Process

From Pointui

This is a Global object. You must not create an instance of it as one is always available for your use.

Functionality related to launching and interrogating running applications.

Contents

Methods

void Start(String filename)

void Start(String filename, String args)

Starts an application. The filename can be a full path to a file on the device, or a URL starting with “http://”.

void StartControlPanelApplet(String cplFilename, int appletID)

void StartControlPanelApplet(String cplFilename, int appletID, int tabNumber)

Displays a control panel applet from the cplFilename provided. Each cpl file often contains a number of applets, so the appletID must be specified as well. Optionally, if the applet has multiple tabs, then for the applets that support it, a tab number can be specified where 0 is the first tab, 1 is the second etc.

void GetRunningApplications(DataTable result)

Gets the list of currently running applications and provides them in the result DataTable.

The DataTable supports the following columns:

columnName Expected Data Type
Title String
HWND int

void SwitchToApplication(int hwnd)

Focuses the window hwnd provided.

void CloseApplication(int hwnd)

Attempts to close an application safely. If the application does not respond to the safe shutdown request it will not be forcibly terminated.