>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?
>
Did you #DEFINE TOKEN_ADJUST_PRIVILEGES? It's a constant whose value is not known to VFP without dfinition.
>
>>>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