Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More shutdown
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00087155
Message ID:
00087220
Views:
29
>Dear Nigel,
>Thank you for your help. Due to my inabilty to follow
>instructions despite the completeness of Mr.Rauh's
>directions I have had the following problems iln
>implimenting them. I'm sure you were more
>sucessful as I simply do not have the requisite
>experience with API and made some stupid error.
>1) On the Declare Integer ExitProcess IN Win32API;
> Integer Exitcode I get an error "Cannot find entry
> point Process in the dll.
>2) ON SHUTDOWN Exit Process(0)
> I get "unrecognized command verb".
>3) nMyReturnValue=ExitWindowsEx(nChosenShutdownMode,(0)
> Returns "variable'NCHOSENSHUTDOWNMODE' is not found"
>
>I am hoping you will shed some light on what I am doing
>wrong. Thanks Derek Linebarger.

Derek,
I think I can see the problems here. First, DECLARE INTEGER ExitProcess; have you got a space between Exit and Process? Second, ON SHUTDOWN nResult=ExitProcess(0) - I had to change this myself. Third, nChosenShutdownMode should be replaced by the chosen shutdown mode (login,shutdown,restart). This is a standard method of instruction which shouldn't be taken literally. Another point - I had to remove the second parameter ,0 from the ExitWindowsEx call to get it working. This should get you working.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform