Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

application to get remote users information

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I want to create a java program, which does following thing.

1) I want to check the user logged in to the remote windows-system in the network.

windows allows only two users at time to use the remote system.

1)manually i use remote system desktop to login to remote windows system.
2) if there are already two users logged in. i get msg. "there is already one user logged in. do you want to end his session."

So my program should find out, who are the users logged into the remote system?

Thanks In advance
Shailesh
[ September 15, 2008: Message edited by: shailesh jamloki ]
 
Sheriff
Posts: 21999
107
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Use A Meaningful Subject Line. About 99.9% of all posts here in the Saloon are created by people who require help. If everybody would use "help required" it would be a mess!

As for your problem, I doubt that Java has any support for this by default. I fear you may have to use JNI instead.
 
shailesh jamloki
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx Rob Prime

For your reply. I have updated the subject line. and I agree with you.

Can you please elaborate your solution a little bit more.

Thanks
Shailesh
 
shailesh jamloki
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If any one has any idea?
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this.
 
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about SNMP?

I havne't the faintest idea whether this will work, but I think worth a look to find out whether it will help..

Also Does Windows have a similar software/mechanism to achieve this? Might be worth a look at that too. It could be that windows may have a service that you could talk to get this information.

Another approach to look at would be to use a JNI layer and access a relevant windows API and use a java server application which a java client can use remotely..

Hope this helps..
 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is not a good choice,though you can do it......

you can use windows WMI to get the details, but WMI programming in c++ is very complex.If you stuck, I can give my previous WMI project.

you need JNI to communication between C/C++ DLL and Java.
As for developing in java, may be you can atmost develop GUI in java.

I would suggest to write as win32 application.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic