|
Posted by winder on July 25, 2006, 10:58 pm
Please log in for more thread options riki
Thanks very much. It is solved.
Thanks again.
winder
> winder wrote:
>
>> Is it need the privilege?
> yes it does.
>
>
>> The follow is the code I written.
>> HANDLE hProcess = OpenProcess(NULL, FALSE, peProcess.th32ProcessID);
>> if (hProcess != NULL)
>> {
>> TerminateProcess(hProcess, 1);
>> CloseHandle(hProcess);
>> }
> you should check the return value of TerminateProcess(), if it returns 0
> then check GetLastError()
>
> riki
>
> --
> ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
> AbstractStart for Smartphone :
> http://homepages.inspire.net.nz/~gambit/AbstractStart/
>
> What happens if a big asteroid hits Earth? Judging from realistic
> simulations involving a sledge hammer and a common laboratory frog, we can
> assume it will be pretty bad.-- Dave Barry
|