Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restart NT and GetCurrentProcess
Message
From
08/07/1999 16:19:27
 
 
To
08/07/1999 16:06:25
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00238770
Message ID:
00239079
Views:
9
Mark,

Try this:

ftp://www.easdg.com/pub/vfpexamples/KillNTServer.prg

I 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
Previous
Reply
Map
View

Click here to load this message in the networking platform