i m trying to remotely shutdown the pc but the dll which i m using return false
Printable View
i m trying to remotely shutdown the pc but the dll which i m using return false
I've no idea what dll you are talking about, but check out this http://vbworld.com/articles/winsock/index8.html
I assume you use InitiateSystemShutdown for this. This function will fail if you don't have admin rigths, or if you forgot to enable the SE_REMOTE_SHUTDOWN_NAME privilege.
check out http://www.sysinternals.com
they have a utility to remotely shutdown a pc provided you have
admin rights. i think source code is included.
:)
This is a little different from the above suggestions:
If you run a "server" app on the other computer, and connect to it with a client (in Winsock), you can send it a data bit which will trigger the shutdown function, described here:
http://www.vbforums.com/showthread.php?threadid=88483