const

  CHILDID_SELF = 0;
  INDEXID_OBJECT = 0;
  INDEXID_CONTAINER = 0;
  WINEVENT_OUTOFCONTEXT  = $0000;
  WINEVENT_SKIPOWNTHREAD = $0001;
  WINEVENT_SKIPOWNPROCESS = $0002;
  EVENT_MIN = $00000001;
  EVENT_MAX = $7FFFFFFF;
  EVENT_SYSTEM_SOUND = $0001;
  EVENT_SYSTEM_ALERT = $0002;
  EVENT_SYSTEM_FOREGROUND = $0003;
  EVENT_SYSTEM_MENUSTART = $0004;
  EVENT_SYSTEM_MENUEND = $0005;
  EVENT_SYSTEM_MENUPOPUPSTART  = $0006;
  EVENT_SYSTEM_MENUPOPUPEND    = $0007;
  EVENT_SYSTEM_CAPTURESTART    = $0008;
  EVENT_SYSTEM_CAPTUREEND      = $0009;
  EVENT_SYSTEM_MOVESIZESTART   = $000A;
  EVENT_SYSTEM_MOVESIZEEND     = $000B;
  EVENT_SYSTEM_CONTEXTHELPSTART= $000C;
  EVENT_SYSTEM_CONTEXTHELPEND  = $000D;
  EVENT_SYSTEM_DRAGDROPSTART   = $000E;
  EVENT_SYSTEM_DRAGDROPEND     = $000F;
  EVENT_SYSTEM_DIALOGSTART     = $0010;
  EVENT_SYSTEM_DIALOGEND       = $0011;
  EVENT_SYSTEM_SCROLLINGSTART  = $0012;
  EVENT_SYSTEM_SCROLLINGEND    = $0013;
  EVENT_SYSTEM_SWITCHSTART     = $0014;
  EVENT_SYSTEM_SWITCHEND       = $0015;
  EVENT_SYSTEM_MINIMIZESTART   = $0016;
  EVENT_SYSTEM_MINIMIZEEND     = $0017;
  EVENT_OBJECT_CREATE              = $8000;
  EVENT_OBJECT_DESTROY             = $8001;
  EVENT_OBJECT_SHOW                = $8002;
  EVENT_OBJECT_HIDE                = $8003;
  EVENT_OBJECT_REORDER             = $8004;
  EVENT_OBJECT_FOCUS               = $8005;
  EVENT_OBJECT_SELECTION           = $8006;
  EVENT_OBJECT_SELECTIONADD        = $8007;
  EVENT_OBJECT_SELECTIONREMOVE     = $8008;
  EVENT_OBJECT_SELECTIONWITHIN     = $8009;
  EVENT_OBJECT_STATECHANGE         = $800A;
  EVENT_OBJECT_LOCATIONCHANGE      = $800B;
  EVENT_OBJECT_NAMECHANGE          = $800C;
  EVENT_OBJECT_DESCRIPTIONCHANGE   = $800D;
  EVENT_OBJECT_VALUECHANGE         = $800E;
  EVENT_OBJECT_PARENTCHANGE        = $800F;
  EVENT_OBJECT_HELPCHANGE          = $8010;
  EVENT_OBJECT_DEFACTIONCHANGE     = $8011;
  EVENT_OBJECT_ACCELERATORCHANGE   = $8012;
  OBJID_WINDOW = $00000000;
  OBJID_SYSMENU = $FFFFFFFF;
  OBJID_TITLEBAR = $FFFFFFFE;
  OBJID_MENU = $FFFFFFFD;
  OBJID_CLIENT = $FFFFFFFC;
  OBJID_VSCROLL = $FFFFFFFB;
  OBJID_HSCROLL = $FFFFFFFA;
  OBJID_SIZEGRIP = $FFFFFFF9;
  OBJID_CARET = $FFFFFFF8;
  OBJID_CURSOR = $FFFFFFF7;
  OBJID_ALERT = $FFFFFFF6;
  OBJID_SOUND = $FFFFFFF5;
  SOUND_SYSTEM_STARTUP           = 1;
  SOUND_SYSTEM_SHUTDOWN          = 2;
  SOUND_SYSTEM_BEEP              = 3;
  SOUND_SYSTEM_ERROR             = 4;
  SOUND_SYSTEM_QUESTION          = 5;
  SOUND_SYSTEM_WARNING           = 6;
  SOUND_SYSTEM_INFORMATION       = 7;
  SOUND_SYSTEM_MAXIMIZE          = 8;
  SOUND_SYSTEM_MINIMIZE          = 9;
  SOUND_SYSTEM_RESTOREUP         = 10;
  SOUND_SYSTEM_RESTOREDOWN       = 11;
  SOUND_SYSTEM_APPSTART          = 12;
  SOUND_SYSTEM_FAULT             = 13;
  SOUND_SYSTEM_APPEND            = 14;
  SOUND_SYSTEM_MENUCOMMAND       = 15;
  SOUND_SYSTEM_MENUPOPUP         = 16;
  CSOUND_SYSTEM                  = 16;
  ALERT_SYSTEM_INFORMATIONAL     = 1;
  ALERT_SYSTEM_WARNING           = 2;
  ALERT_SYSTEM_ERROR             = 3;
  ALERT_SYSTEM_QUERY             = 4;
  ALERT_SYSTEM_CRITICAL          = 5;
  CALERT_SYSTEM                  = 6;
