Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NET FILES and NET SESSIONS for Delphi 1

Status
Not open for further replies.

stefets

Programmer
Sep 23, 2010
2
CA
Hi all!
All of you know the DOS command NET

Is it possible to do this with Delphi ?

What I need is NET FILES and NET SESSIONS encapsulate in Delphi.

What API should I use ? Does a component exists ?

I want to know who is connected on my pc and what files are open.


Thanks !
 
You can always run those commands and then pick up text from them and pull them into your program.

Or querying Win32_ServerConnection or Win32_ServerSession looks like it might bring some fruit.

Don't even know where to begin with the Win32 APIs.

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
here are the concerned win32 API's:

Looks like my WMI suggestions are hand-grenade close enough then.

To me in a way, WMI is easier for system information anymore...

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
Yes ! yes ! yes !

It's exactly what I am look for.

Thanks guys for taking time to answer me!

Good day!
 
Don't even know where to begin with the Win32 APIs.

I just wanted to answer that part :).
WMI does the trick anyway.

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
WMI does the trick anyway.

Indeed. I haven't figured out events or how to do things asynchronously. But hopefully I can soon when I get the time, since my code isn't handling the bigger WMI objects too well.

Got the WMI catalog figured out recently, though. That's an interesting thing, especially how much of it is really documented there.

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top