Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Who is using terminal server from Perl?

by mdupont (Scribe)
on Aug 15, 2002 at 13:58 UTC ( #190400=perlquestion: print w/replies, xml ) Need Help??
mdupont has asked for the wisdom of the Perl Monks concerning the following question:

Dear Perl Monks,

I am looking for someone who has some experience with calling Win32 Api calls from Perl.

Specifically I would like to get a list of all my sessions that are connected to some win2000 terminal services servers.

I figured to ask here first before doing any work on it.

Microsoft Terminal Server Article

Nice API docs from Microsoft

Roth's article with a perl script

This last link has a script, but it is not free. Anyone has built somethink similar?


  • Comment on Who is using terminal server from Perl?

Replies are listed 'Best First'.
Re: Who is using terminal server from Perl?
by dimmesdale (Friar) on Aug 15, 2002 at 14:09 UTC
    Have you looked at Win32::API?

    With this module you can import and call arbitrary functions from Win32's Dynamic Link Libraries (DLL), without having to write an XS extension. Note, however, that this module can't do anything (parameters input and output is limited to simpler cases), and anyway a regular XS extension is always safer and faster.


      I know how I can do it.

      Even Inline::C comes to mind :)

      What i want to really know is has anyone done this API?

      Has someone a similar problem?

      Well, when I find some free time, I will start looking into it.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://190400]
Approved by talexb
[1nickt]: Interesting article on the Coming Software Apocaplyse that I found while following one of eyepopslikeamosqui to's posts. Posits that no one can guarantee the quality of, or even understand, the 100 million lines of code in a mo
[holli]: you know, monk days are fun and all. but too many of them are bad for your health
[1nickt]: ...modern car. Suggests using TLA+ or other software modeling language to autogenerate code.
1nickt is not sure more and more layers separating the programmer from the program is the right way to go...
[holli]: happy one, shmem ;)
[1nickt]: I had an interview couople of weeks ago, heard from a principal engineer that a friend of his who works at The Google told him that the self-teaching software that determines the dynamic pricing for their adverts...
[1nickt]: ... has become so complex that there is no one at the Goole who knows what it does.
[marto]: William Gibson was right
[moritz]: a classical problem with machine learning
[1nickt]: moritz isn;t the difference today that the machine learning algos are in charge of most stuffs?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-11-21 13:00 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (301 votes). Check out past polls.