in reply to Re: Running Win32 binary as arbitrary user -- in Perl
in thread Running Win32 binary as arbitrary user -- in Perl

Would Win32::Service help? There's a suite of service management functions including: StopService.

You might be able to get that to play nicely with Win32::AdminMisc CreateProcessAsUser.

If you have much Win32 stuff to play with Dave Roth's book "Win32 Perl Programming: The Standard Extensions, Second Edition" is well worth checking out.

  • Comment on Re: Re: Running Win32 binary as arbitrary user -- in Perl

Replies are listed 'Best First'.
Re: Re: Re: Running Win32 binary as arbitrary user -- in Perl
by flyingmoose (Priest) on Apr 29, 2004 at 16:06 UTC
    Yes, it will help the code (thanks!) -- just won't get me around the evil act-as-part-of-OS-permission problem!

    BTW, I didn't know David Lee Roth was into Perl. Awesome!