Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More shutdown
Message
From
26/03/1998 11:57:02
 
 
To
26/03/1998 03:12:30
Emmanuel Huybrechts
Technimeca International Corp.
Montréal, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00087155
Message ID:
00087330
Views:
30
>>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".
>
>I think it is not "Exit Process" but "ExitProcess" without blank. That's why you get "Cannot find entry point Process in the dll"
>
>>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.

My thanks to Emmanuel Huybrechts, George Tasker and especialy
nigel Coates and Ed Rauh whose detailed instructions only I
could have messed up on the first try. Here is an exact cut
and paste of what I used. The answer to the question of why
I was doing this is that I want this program to do this long
update at the end of the day and then turn itself off so that
the clients can go home without waiting for it to finish. Now
that update is running from the start folder but ties up the
the beginning of the morning.

DECLARE SHORT ExitWindowsEx IN Win32API;
INTEGER nShutDownMode,;
INTEGER nReserved
Declare Integer ExitProcess IN Win32API;
Integer ExitCode
#DEFINE ShutdownFlagValue0
#DEFINE ShutdownFlagValue1
#Define ShutdownFlagValue2
ON SHUTDOWN nResult=ExitProcess(0)

nMyReturnValue=ExitWindowsEX(1,0)
Previous
Reply
Map
View

Click here to load this message in the networking platform