in reply to Regarding Win32::API for CreateProcessAsUser

Skip it and use psexec
  • Comment on Re: Regarding Win32::API for CreateProcessAsUser

Replies are listed 'Best First'.
Re^2: Regarding Win32::API for CreateProcessAsUser
by Yathin123 (Initiate) on Sep 19, 2016 at 06:49 UTC
    Thank for the suggestion I got to know about this but when I use this exe in perl tk module under a button a dos window poops up and stays on the screen until the complete set of process Is not completed so that's the reason I was looking for some better programmatic option.

      Hello Yathin123, and welcome to the Monastery!

      Maybe you need to use wperl? From perlwin32#Miscellaneous-Things:

      One common mistake when using this port with a GUI library like Tk is assuming that Perl's normal behavior of opening a command-line window will go away. This isn't the case. If you want to start a copy of perl without opening a command-line window, use the wperl executable built during the installation process. Usage is exactly the same as normal perl on Windows, except that options like -h don't work (since they need a command-line window to print to).

      Hope that helps,

      Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

        Thanks, my console is already hidden when I double click on the script it appears without any dos window in the backend, it only pops up when I hit the trigger button which has the psexe in the function.can you please help with CreateProcessAsUser I would wish to learn how to quarry dll functions and under stand it's usage.