| Title: | -={ H A C K E R S }=- | 
| Notice: | Write locked - see NOTED::HACKERS | 
| Moderator: | DIEHRD::MORRIS | 
| Created: | Thu Feb 20 1986 | 
| Last Modified: | Mon Aug 03 1992 | 
| Last Successful Update: | Fri Jun 06 1997 | 
| Number of topics: | 680 | 
| Total number of notes: | 5456 | 
    I am writing a program that, in effect, keeps track of which users
    are using certain TT: devices.
    
    When I issue $GETDVI with DVI$_PID I always get a pid of 00000042
    regardless of which TT: I inquire about.  Since the call always
    successfully completes I suspect the problem may be linked to the fact 
    that we are running virtual terminals (we are also running VMS 4.3
    if it matters).
    
    Can anyone tell me whether I am right about virtual terminals and,
    if so, how I can get the info I'm looking for.
    
    Thanks in advance.
    
    							-Sal
| T.R | Title | User | Personal Name | Date | Lines | 
|---|---|---|---|---|---|
| 276.1 | Check the Manual | TUNDRA::HARRIMAN | Tue Jul 29 1986 15:23 | 15 | |
|     
    Are you using $GETDVI or $GETDVIW? the difference is in the
    synchronicity of the call. Also are you ALWAYS getting a PID
    of 00000042? like, if you log off, log in again and try again are
    you still getting a PID of 00000042? Are you checking the IOSB (IO
    status block) that is specified in the call? it always returns the
    actual status of the call in it's low-order word. If you use $GETDVI
    on version 4.x systems you have to check the IOSB to see if the
    call completed, otherwise you have to use $GETDVIW.
    
    Virtual terminals are devices just like anything else is a device
    in VMS, so that should not be your problem. However, to me it sounds
    like you may be pointing to the wrong device, or you are always
    getting your own PID, or you are not checking the IOSB for the *real*
    return status...
 | |||||
| 276.2 | NY1MM::CANZONERI | Sal Canzoneri | Wed Jul 30 1986 10:22 | 5 | |
|     re: -1
    
    Thanks for the hints and advice.  Found the problem.
    
    							-Sal
 | |||||