Hi all,
I made a prog that reboot or shutdown the system a few year(s) ago, but I would like to know how I can do under NT (WIN2K and WINXP) because I know that I can logoff the current user, but rebooting and shutdowning don't work. I know I must use permissions functions but I don't understand how it works ! (I've read win32hlp)
So thanks in advance for the help.
:I also wanted to say that this forum is great:alright: , it helps people a lot, and asm is great too.:alright: THANKS A LOT TO ALL PROGRAMMERS
I made a prog that reboot or shutdown the system a few year(s) ago, but I would like to know how I can do under NT (WIN2K and WINXP) because I know that I can logoff the current user, but rebooting and shutdowning don't work. I know I must use permissions functions but I don't understand how it works ! (I've read win32hlp)
So thanks in advance for the help.
:I also wanted to say that this forum is great:alright: , it helps people a lot, and asm is great too.:alright: THANKS A LOT TO ALL PROGRAMMERS
Salut Vom ! :alright:
What is described on this page may do the trick... (easy C code, and good comments).
I hope this helps. ;)
What is described on this page may do the trick... (easy C code, and good comments).
I hope this helps. ;)
Yeah!, thanks Readiosys, that was what I needed. I do not practise C but it doesn't look so hard, great thanks.
PS to Readiosys only: Au fait,demain et jeudi c'est les journ?es lyc?ens, je vais aller voir l'INSA, j'aimerais vraiment entrer en ?cole d'ing?. Je te dis ?a juste parce qu'on en avait parl?, mais c'est pas important.
PS to Readiosys only: Au fait,demain et jeudi c'est les journ?es lyc?ens, je vais aller voir l'INSA, j'aimerais vraiment entrer en ?cole d'ing?. Je te dis ?a juste parce qu'on en avait parl?, mais c'est pas important.
I do not practise C but it doesn't look so hard, great thanks.
It is a somewhat weird code because it is C++ Builder style (Application->... typical !)... but all the needed APIs are here. ;)
Anyway, if you have problems while converting the C code, just ask. ;)
Sinon, ? propos de l'?cole d'ing?, j'esp?re que ?a te plaira ! :p
Ils vont te faire faire du CAML l? bas, mais c'est un langage sympathique pour les "matheux", parait-il... ;)
"exitwindowsex"
I knew there was a reason for Microsoft using mixed case with their API names, my first impression with this question was,
exit_window_sex
Instead of,
ExitWindowsEx
Ah M$, youv'e done it again. :tongue:
Regards,
hutch@movsd.com
I knew there was a reason for Microsoft using mixed case with their API names, my first impression with this question was,
exit_window_sex
Instead of,
ExitWindowsEx
Ah M$, youv'e done it again. :tongue:
Regards,
hutch@movsd.com
hehe :rolleyes:
I presume that Microsoft programmers don't have much fun... sometimes they can be a bit libidinous. ;)
I presume that Microsoft programmers don't have much fun... sometimes they can be a bit libidinous. ;)
"exit_window_sex" - heh. I suspected I wasn't the only one who read it like that :rolleyes:
exit_window_sex
But do not forget first to find_window_sex. :grin: