|
![]() |
![]() |
version 2003
PA_GetWindowProcess (wRef) → long
Parameter | Type | Description | |
wRef | PA_WindowRef | → | Window reference |
Function result | long | ← | Number 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
Error Handling
always returns
eER_NoErr