![]() |
| ||
| remote system is it possible to write a program which will shutdown the remote systme in c? |
| ||
| Re: remote system Quote:
|
| ||
| Re: remote system Quote:
BOOL RemoteShutdown(LPSTR szMachine,LPSTR szMessage,DWORD dwTimeout,BOOL bForce,BOOL bReboot) {Tested locally. I Don't have a network to try a working case. szMachine: either name or IP should work. szMessage*: some blah's for remote user to be aware of your action. dwTimeout*: how many seconds to show your blah's. bForce: close all applications with no confirmation. bReboot: follow shutdown with a restart. *(NULL,0): inmediate shutdown. RemoteShutdown() returns TRUE on success. |
| All times are GMT -4. The time now is 1:58 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC