Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Proclip2 Library - <b> unreset() </b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 UNRESET() 

          Having frustrated users reset the computer in the middle of your
          application is not fun...neither is recovering corrupted data
          bases.  UNRESET is designed to intercept the CTRL ALT DEL keyboard
          sequence and, optionally, prevent the computer from resetting.

          UNRESET will, at the programmers option, either intercept and
          ignore CTRL ALT DEL keyboard sequences or intercept and display a
          warning message to the operator which requires a second CTRL ALT
          DEL to activate the reset.


      Format: 

               unreset('on' | 'off' | 'warn')


      Parameters: 

               'on'......Character string variable or constant, non case
                         sensitive, which instructs the function to become
                         active and intercept and ignore all CTRL ALT DEL
                         keyboard sequences.

               'off'.....Character string variable or constant, non case
                         sensitive, which instructs the function to disable
                         itself and allow CTRL ALT DEL keyboard sequences
                         through to the regular computer keyboard routines.

               'warn'....Character string variable or constant, non case
                         sensitive, which instructs the function to become
                         active and intercept all CTRL ALT DEL keyboard
                         sequences.  Once intercepted the function will warn
                         the user of their action by opening a window
                         centered on the screen which reads:

                                 CTRL + ALT + DEL

                              Press again to confirm

                         The user must then reissue the CTRL ALT DEL sequence
                         to force a reset or, by pressing any regular key,
                         close the window and resume execution of the
                         program.
      Examples: 

               1.   Completely disable CTRL ALT DEL during critical
                    processing.

                    .
                    .
                    .
                    unreset('on')
                    use dbffile index ntxfile
                    append blank
                    replace ...
                    close databases
                    unreset('off')
                    .
                    .
                    .

               2.   Issue a warning prior to allowing a reset to occur.
                    Disable the UNRESET function before exiting program.

                    .
                    .
                    .
                    unreset('warn')
                    .
                    .
                    .
                    unreset('off')
                    quit


      Returns: 

               Nothing.


      Cautions: 

               This function should not be placed into an overlay as it is
               interrupt driven.  Any error routines which determine an
               unrecoverable runtime error has occurred should disable this
               function prior to exiting the program.  Failure to follow this
               caution may result in the computer locking up.

See Also: RESET()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson