PA_GetFrontWindowProcess


version 2003


PA_GetFrontWindowProcess (withPalette) → long

Parameter Type Description
withPalette char 1 = Consider floating windows
Function result long Number of the process that owns the
front window

Description

The routine PA_GetFrontWindowProcess returns the process number that owns the front most window. If withPalette is 0, the routine ignores floating windows, otherwise it take them into account and returns the number of the process that owns the front most floating window.

To retrieve the process that owns an other window, use PA_GetWindowProcess .

Example

Bring to front if not already there.

   long   myProcess;
   myProcess = PA_GetCurrentProcessNumber();
   if( PA_GetFrontWindowProcess(0) != myProcess )
      PA_BringProcessToFront(myProcess);

See Also

No reference.

Error Handling

PA_GetLastError

always returns eER_NoErr