Chapter 15 talks about a variety of miscellaneous topics:

  o The registry
  o The event log
  o Memory management
  o Time
  o The Error handler
  o Structured Exception handling

The code in this directory demonstrates these different facilities.

addkey.cpp
  This code shows how to add a key to the registry.

addvalue.cpp
  This code adds a value to a registry key.

catch.cpp
  This code catches an invalid pointer reference exception.

instsrc.cpp
  This code sets up the proper registry values for an 
  application that wants to write to the event viewer. 
  Typically this functionality goes in an installation 
  program. See the LOGEVENT directory for an example 
  application that uses this program.

logevent directory
  Contains a program that adds events to the event log.

makefile
  Change the APP variable in the makefile to compile the
  different examples in this directory.

settime.cpp
  This code shows how to set the system time. You must have
  the set-time privilege for this code to work.

showgrps.cpp
  This code shows how to traverse the registry tree.

term.cpp
  This code demonstrates a try-finally pair.

timeshow.cpp
  This code demonstrates the different time retrieval functions.

zero.cpp
  This code allocates and deallocates 200 1 MB blocks. Try
  changing the GPTR flag to GMEM_FIXED and time the 2 different
  programs to see the difference between zeroing and not
  zeroing memory initially.

