` Printed Icetips Article

Icetips Article



Par2: Exit windows API call
2001-12-04 -- Josh Landin
 
Inside your Global Map embed put:

    MODULE('kernel32.dll')
        ExitWindowsEx(ULONG,ULONG),LONG,PASCAL,RAW
    END

Then in your code where you want to shutdown, put:

    IF ExitWindowsEx(BOR(1,4),0) THEN
        ! Unable to Shutdown, use GetLastError() to determine why.
    END



Printed May 6, 2024, 2:46 am
This article has been viewed/printed 35121 times.