Does anybody know of a VB translation of Mark Russinovich's PSSHUTDOWN.EXE program?
I want to incorporate this program's functionality into my own VB application. I've found the VB translation of his another utility program PSLOGGEDON.EXE at http://www.mvps.org/access/api/api0062.htm
, in which the original source code (in C/C++) was available for download from www.sysinternals.com
. So, I'm wondering if the aforementioned program (written in C/C++) has been translated into VB.
In short, I want my VB app to do exactly the same thing. That is, be able to support all following 4 types of operation on a remote machine:
I already knew and have tried both following Win32 APIs:
1. ExitWindowsEx - this supports all 4 above types of operation, except that it ONLY apples to the LOCAL machine.
2. InitiateSystemShutdownEx - this seems to be the one I wanted, except that it DOES NOT have or support the "logoff" method.
I could include the PSSHUTDOWN.EXE and create a MSI installation package to be distributed along with my compiled app so that I can use the "shell" function, but I just want my app to be a pure, stand-alone application.
Any help would be greatly appreciated.