http://www.perlmonks.org?node_id=190400

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?

Mike

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.

      Thanks,

      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.

      mike