Mouse Shadow Come Back!

shdw.exe is a light-weight (18 kB) utility that enables the drop shadow beneath the mouse cursor. It is a common annoyance that many full-screen 3D applications disable the shadow and either 'forget' to reenable it when they exit, or they are terminated abnormally. In either case, it is cumbersome to have to open the mouse properties in the control panel in order to restore the shadow. However, if you copy shdw.exe to your WINDOWS folder (typically C:\WINDOWS\), you just have to run shdw in order to get the shadow back.

Source code

program shdw;

uses
  Windows;

begin
  SystemParametersInfo(SPI_SETCURSORSHADOW,
    0,
    pointer(integer(true)),
    SPIF_UPDATEINIFILE or SPIF_SENDWININICHANGE);
end.