Re: Determining display device for a process



Fred Bach wrote:
Jan-Erik Söderholm wrote:
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.

All logical name tables (incl the LNM$JOBxxxx tables) are
available to F$TRNLNM, if you have read access to them.
So one should be able to scan through the LNM$JOBxxx
tables for a specific "display".

See :
SHOW LOG /STRU
SHOW LOG /TABLE=LNM$SYSTEM_DIRECTORY
SHOW LOG /TABLE=LNM$SYSTEM_DIRECTORY/DESCENDANTS

Ex:
SHOW LOG /DESCENDANTS/TABLE=LNM$SYSTEM_DIRECTORY DECW$DISPLAY
will show all currently defined DEC-Windows displays
for all processes on the system.

Output to a file and search for your actual device, or
make something up with PIPE or whatever...

Regards,
Jan-Erik.

Jan-Erik,

This looks pretty interesting! Could you expand on this
> technique a little, please?

No I leave it here. I've done no work at all during my
15 yaers with VMS with DEC-Windows... :-) :-)

But it seemed as the link that Peter Weaver posted
had som information about this.

Jan-Erik.
.



Relevant Pages

  • Determining display device for a process
    ... I have a need to determine the device that an x-application is ... The reason is that an x-application will be ... automatically loaded at user login, but should only be started once ... per display. ...
    (comp.os.vms)
  • Re: Determining display device for a process
    ... The reason is that an x-application will be ... automatically loaded at user login, but should only be started once ... per display. ...
    (comp.os.vms)
  • exchange showing old mailbox name
    ... users send her an email, autosuggest in outlook displays her new name, ... i have checked and updated all references that i could ... user login name and user login name ... simple display name ...
    (microsoft.public.exchange.admin)
  • Re: Determining display device for a process
    ... The reason is that an x-application will be ... automatically loaded at user login, but should only be started once ... per display. ... when we do a SET HOST from an X-window Decterm. ...
    (comp.os.vms)
  • Re: why a session-based program behaves different on different computers
    ... now, pray-tell, HOW IS THE DATA LOST? ... session is lost and there is no user login, there is no way to reference ... His solution to that is to display 500 credit card numbers and names ...
    (comp.lang.php)