Airkiller1
January 22nd, 2006, 03:18 AM
Hello,Everyone:
I want to write a program to shut down my computer through Windows API,but met several questions.
Of course I know it's important to get the privilege for the current process before using the'ExitWindows' function .So I wrote some lines according to guides on Internet.
My question is Why 'OpenThreadToken' function can't be achieved?I doubt if the codes I wrote are correct.Would you offer some advice?Your answers are welcomed!!! (The attachment is resource file.)
thanks
Airkiller1
I want to write a program to shut down my computer through Windows API,but met several questions.
Of course I know it's important to get the privilege for the current process before using the'ExitWindows' function .So I wrote some lines according to guides on Internet.
My question is Why 'OpenThreadToken' function can't be achieved?I doubt if the codes I wrote are correct.Would you offer some advice?Your answers are welcomed!!! (The attachment is resource file.)
thanks
Airkiller1