PA_GetWindowProcess

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetWindowProcess (wRef) long

ParameterTypeDescription
wRefPA_WindowRefWindow reference
Function resultlongNumber of the process that owns the window

Description

The routine PA_GetWindowProcess returns the process number that runs the window whose

reference is passed in wRef. If the wRef is incorrect, does not exist or refers to a window that does not belong to any process, the routine returns 0 (zero).

If a 4D plug-in is coded to browse all the windows of a 4D working session,PA_GetWindowProcess can be used to determine which windows belong to which processes.

To retrieve the process that owns the front window, including floating windows, use PA_GetFrontWindowProcess.

See Also

PA_GetFrontWindowProcess.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next