Re: Determining display device for a process
- From: "Richard B. Gilbert" <rgilbert88@xxxxxxxxxxx>
- Date: Mon, 16 Jun 2008 11:27:01 -0400
Bobby wrote:
I have a need to determine the device that an x-application is
"displaying" to. The reason is that an x-application will be
automatically loaded at user login, but should only be started once
per display (i.e., once per x-server display). The logical decw
$display points to the device, but how (can?) this value be retrieved
for a specific process? I didn't see anything in the f$getjpi()
function, but maybe I missed something. The same user account is used
for multiple stations, so looking at the UIC for the owner of a
process won't work. Any ideas would be appreciated.
Where do you want to retrieve it FROM?? If you are talking about your own process, the $ SHOW LOGICAL should to it. There's also a LIB$ function that will return the translation, if there is one.
By default, logical names are process private. You can have "job" logical names that are accessible from a process tree. There are "group" and "system" tables as well. If you want to translate a logical name that does not belong to your process tree you may find it difficult or impossible.
If your security permits it, ANY process can pop a window on your display!
.
- Follow-Ups:
- Re: Determining display device for a process
- From: Jan-Erik Söderholm
- Re: Determining display device for a process
- References:
- Determining display device for a process
- From: Bobby
- Determining display device for a process
- Prev by Date: Re: Determining display device for a process
- Next by Date: Re: Determining display device for a process
- Previous by thread: Re: Determining display device for a process
- Next by thread: Re: Determining display device for a process
- Index(es):
Relevant Pages
|