dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 4 of 4 FirstFirst ... 234
Results 46 to 51 of 51

Thread: How to Detect if a Remote Computer is logged on?

  1. #46
    Tor Arne Nilsen Guest

    Re: How to Detect if a Remote Computer is logged on?

    Ben,

    That is a solution i didn't think about. Most be the solution that is the
    easiest to work with, but as you say not allways to acurate.

    I have tested the registry checking a bit both with local and remote
    checking, and it gives 100% results. I'm not shure why J.L. had problems
    with this, but I have implemented it on several computers now and it is
    working as it should.

    Thanks for all the help...

    Rgds,
    Tor Arne Nilsen

    "Ben Neville" <bneville@programmer.net> wrote in message
    news:3b71ed0e$1@news.devx.com...
    > Tor,
    >
    > If this ever gives inaccurate results you could potentially also go to an
    > approach of just seeing if there is an explorer.exe in the process list.
    > There obviously could be times when this would give false positives but it
    > is one other possible approach.
    >
    > Rgds
    > Ben
    >
    > "Tor Arne Nilsen" <tor.arne.nilsen@vbsoftdev.net> wrote in message
    > news:3b719eaf@news.devx.com...
    > > I want to thank you all for the help with this problem.
    > >
    > > It looks like the solution will be as follows.
    > > Enum the registry on all computers from one computer using the
    > > RegConnectRegistry API. on the HKEY_USERS, looking through every subkey

    > for
    > > Volatile Environment after what I can see this solution works fine, and

    > the
    > > network load and the load on the server is kept on a minimum.
    > >
    > > So thanks to you all..
    > >
    > > Rgds,
    > > Tor Arne Nilsen
    > >
    > > "Tor Arne Nilsen" <tor.arne.nilsen@vbsoftdev.net> wrote in message
    > > news:3b67ef4b@news.devx.com...
    > > > Is there a way to check if a remote Win2K computer is logged on?
    > > > The purpose is to see if computers are ocupied or if they are "free"

    for
    > > > access...
    > > >
    > > >
    > > >
    > > >

    > >
    > >

    >
    >




  2. #47
    Tor Arne Nilsen Guest

    Re: How to Detect if a Remote Computer is logged on?

    Ben,

    That is a solution i didn't think about. Most be the solution that is the
    easiest to work with, but as you say not allways to acurate.

    I have tested the registry checking a bit both with local and remote
    checking, and it gives 100% results. I'm not shure why J.L. had problems
    with this, but I have implemented it on several computers now and it is
    working as it should.

    Thanks for all the help...

    Rgds,
    Tor Arne Nilsen

    "Ben Neville" <bneville@programmer.net> wrote in message
    news:3b71ed0e$1@news.devx.com...
    > Tor,
    >
    > If this ever gives inaccurate results you could potentially also go to an
    > approach of just seeing if there is an explorer.exe in the process list.
    > There obviously could be times when this would give false positives but it
    > is one other possible approach.
    >
    > Rgds
    > Ben
    >
    > "Tor Arne Nilsen" <tor.arne.nilsen@vbsoftdev.net> wrote in message
    > news:3b719eaf@news.devx.com...
    > > I want to thank you all for the help with this problem.
    > >
    > > It looks like the solution will be as follows.
    > > Enum the registry on all computers from one computer using the
    > > RegConnectRegistry API. on the HKEY_USERS, looking through every subkey

    > for
    > > Volatile Environment after what I can see this solution works fine, and

    > the
    > > network load and the load on the server is kept on a minimum.
    > >
    > > So thanks to you all..
    > >
    > > Rgds,
    > > Tor Arne Nilsen
    > >
    > > "Tor Arne Nilsen" <tor.arne.nilsen@vbsoftdev.net> wrote in message
    > > news:3b67ef4b@news.devx.com...
    > > > Is there a way to check if a remote Win2K computer is logged on?
    > > > The purpose is to see if computers are ocupied or if they are "free"

    for
    > > > access...
    > > >
    > > >
    > > >
    > > >

    > >
    > >

    >
    >




  3. #48
    L.J. Johnson Guest

    Re: How to Detect if a Remote Computer is logged on?

    Tor,

    >it gives 100% results. I'm not sure why J.L. had problems
    > with this, but I have implemented it on several computers now and it is
    > working as it should.


    Well, now I can't reproduce the problem. I was able to reproduce it 3 times
    on the day I checked, and now I just get the .Default user when I'm logged
    off of the remote machine. Obviously, there was something else going on
    (that day), but I don't have a clue as to what it was.

    --
    L.J. Johnson, Slightly Tilted Software
    Microsoft MVP (Visual Basic)
    LJJohnson@SlightlyTiltedSoftware.com or LJJohnson@mvps.org
    <http://www.SlightlyTiltedSoftware.com>
    Ask The NT Pro at <http://www.devx.com/gethelp>




  4. #49
    L.J. Johnson Guest

    Re: How to Detect if a Remote Computer is logged on?

    Tor,

    >it gives 100% results. I'm not sure why J.L. had problems
    > with this, but I have implemented it on several computers now and it is
    > working as it should.


    Well, now I can't reproduce the problem. I was able to reproduce it 3 times
    on the day I checked, and now I just get the .Default user when I'm logged
    off of the remote machine. Obviously, there was something else going on
    (that day), but I don't have a clue as to what it was.

    --
    L.J. Johnson, Slightly Tilted Software
    Microsoft MVP (Visual Basic)
    LJJohnson@SlightlyTiltedSoftware.com or LJJohnson@mvps.org
    <http://www.SlightlyTiltedSoftware.com>
    Ask The NT Pro at <http://www.devx.com/gethelp>




  5. #50
    Ben Neville Guest

    Re: How to Detect if a Remote Computer is logged on?

    If there are any handles to the loaded reg key in another logon session the
    key will not get unloaded.

    Hence if you have stuff which creates new logon sessions or runs as services
    using that account you will see that problem.

    Another possibility is a remote computer having an open handle ti that reg
    key.

    Tor if an open handle from another computer has this affect (which I do not
    know it does) you will need to be extremely careful that you close all your
    handles successfully in your procedure.

    Glad it worked out.

    Rgds
    Ben.

    "L.J. Johnson" <LJJohnson@SlightlyTiltedSoftware.com> wrote in message
    news:3b72a95a$1@news.devx.com...
    > Tor,
    >
    > >it gives 100% results. I'm not sure why J.L. had problems
    > > with this, but I have implemented it on several computers now and it is
    > > working as it should.

    >
    > Well, now I can't reproduce the problem. I was able to reproduce it 3

    times
    > on the day I checked, and now I just get the .Default user when I'm logged
    > off of the remote machine. Obviously, there was something else going on
    > (that day), but I don't have a clue as to what it was.
    >
    > --
    > L.J. Johnson, Slightly Tilted Software
    > Microsoft MVP (Visual Basic)
    > LJJohnson@SlightlyTiltedSoftware.com or LJJohnson@mvps.org
    > <http://www.SlightlyTiltedSoftware.com>
    > Ask The NT Pro at <http://www.devx.com/gethelp>
    >
    >
    >




  6. #51
    Ben Neville Guest

    Re: How to Detect if a Remote Computer is logged on?

    If there are any handles to the loaded reg key in another logon session the
    key will not get unloaded.

    Hence if you have stuff which creates new logon sessions or runs as services
    using that account you will see that problem.

    Another possibility is a remote computer having an open handle ti that reg
    key.

    Tor if an open handle from another computer has this affect (which I do not
    know it does) you will need to be extremely careful that you close all your
    handles successfully in your procedure.

    Glad it worked out.

    Rgds
    Ben.

    "L.J. Johnson" <LJJohnson@SlightlyTiltedSoftware.com> wrote in message
    news:3b72a95a$1@news.devx.com...
    > Tor,
    >
    > >it gives 100% results. I'm not sure why J.L. had problems
    > > with this, but I have implemented it on several computers now and it is
    > > working as it should.

    >
    > Well, now I can't reproduce the problem. I was able to reproduce it 3

    times
    > on the day I checked, and now I just get the .Default user when I'm logged
    > off of the remote machine. Obviously, there was something else going on
    > (that day), but I don't have a clue as to what it was.
    >
    > --
    > L.J. Johnson, Slightly Tilted Software
    > Microsoft MVP (Visual Basic)
    > LJJohnson@SlightlyTiltedSoftware.com or LJJohnson@mvps.org
    > <http://www.SlightlyTiltedSoftware.com>
    > Ask The NT Pro at <http://www.devx.com/gethelp>
    >
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center