ExitWindows Docklet by Yanko Yankov

Purpose
~~~~~~~

Each instance of this docklet serves as a button which
when pressed does one of the following actions:
 - Power Off - Shuts down the system and turns off the
   power. The system must support the power-off feature.
 - Shut Down - Shuts down the system to a point at
   which it is safe to turn off the power. All file
   buffers have been flushed to disk, and all running
   processes have stopped.
 - Restart - Shuts down the system and then restarts
   the system.
 - Log Off - Shuts down all processes running in the
   current logon session. Then it logs the user off.
 - Lock/Switch user - This function has the same result
   as pressing Ctrl+Alt+Del and clicking Lock Workstation.
   To unlock the workstation, the user must log in.
 - Stand By - Switches the system in stand-by mode.
 - Hibernate - hibernates the machine.
 
Installation
~~~~~~~~~~~~

To install the docklet copy the ExitWindows.dll file
in the Docklets directory or subdirectory.
Usually the Docklets directory is
C:\Program Files\Stardock\ObjectDock\Docklets
You can either copy ExitWindows.dll there or you can
make a subdirectory like this:
C:\Program Files\Stardock\ObjectDock\Docklets\ExitWindows
and put it there.

To create an instance of the ExitWindows docklet,
right-click on the desired dock and select
ExitWindows v1.2 (or some such)

To configure the docklet, right-click on it and
choose Dock Entry Properties.

To set an image for the docklet instance either
click the Change Image button, or drag and drop
the desired picture over the picture box in the
ExitWindows configuration dialog.

Usage
~~~~~

Push the button! :)


Version history
~~~~~~~~~~~~~~~


Version 1.1: Updated the name from LogOffWindows Docklet 
to ExitWindows Docklet. Also replaced strcpy and strcat with 
their ^safe^ counterparts - StringCbCat and StringCbCopy.

Version 1.2:
- Added OnExportFiles handler
- Rewritten the configuration dialog, so now the picture
  is scaled properly and displayed nicely. Also now files
  can only be dropped in the picture box, not just anywhere
  on the dialog. This minor feat required some really funky
  window(HWND) acrobatics, because OD does not relay
  WM_DROPFILES properly for non-tabbed docks. This is the
  cause for the flicker when moving the config dialog around.
- Added simple "glow" effect. Yes, it is just eye-candy and
  does not serve any practical purpose except being a CPU hog.
  Those routines haven't been optimized for performance
  because I'm not sure if the thing's worth is enough to
  justify the effort. But hey, try it and decide for yourself.
  


  
Please send questions and/or comments at yyankov@gmail.com or
even better in the wincustomize page for the ExitWindows docklet
which currently resides at:

http://wincustomize.com/ViewSkin.aspx?SkinID=8403&LibID=29&comments=1