Mark,
Try this:
ftp://www.easdg.com/pub/vfpexamples/KillNTServer.prgI use it and it works very well. Make sure you thank Cliff!
/Chris
>That helped but now
>DECLARE INTEGER GetCurrentProcess IN Win32API
>lnTokenOpen = OpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES,GetCurrentProcess()) doesn't recognize TOKEN_ADJUST_PRIVILEGES in or out of quotes. Now what?
>
>
>>>NT requires much more elaborate coding for a reboot than 95/98. I have found that the first call that must return a value is not responding. If I DECLARE INTEGER GetCurrentProcess IN Win32API
>>>and then MessageBox(GetCurrentProcess()) I get an error. What am I missing?
>>>
>>
>>MessageBox() takes a string. Try MessageBox(STR(GetCurrentProcess())).
>>
>>>TIA