The present invention in various embodiments provides a computerized
wagering game method and apparatus that features an operating system
kernel, a system handler application that loads and executes gaming
program shared objects and features nonvolatile storage that facilitates
sharing of information between gaming program objects. The system handler
of some embodiments further provides an API library of functions callable
from the gaming program objects, and facilitates the use of callback
functions on change of data stored in nonvolatile storage. The
nonvolatile storage also provides a nonvolatile record of the state of
the computerized wagering game, providing protection against loss of the
game state due to power loss. The system handler application in various
embodiments includes a plurality of device handlers, providing an
interface to selected hardware and the ability to monitor
hardware-related events.