Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.2 KiB

  1. //
  2. // GLOBALS.H
  3. // Global Variable Declaration
  4. //
  5. // NOTE:
  6. // Variables in .sdata, shared segment, MUST HAVE INITIALIZED VALUES.
  7. // Otherwise, the linker will just stick them silently into .data.
  8. //
  9. #include <host.h>
  10. #include <usr.h>
  11. #include <im.h>
  12. //
  13. // Per process data
  14. //
  15. // These are meaningful in all processes
  16. DC_DATA(HINSTANCE, g_hookInstance);
  17. DC_DATA(NTQIP, g_hetNtQIP);
  18. DC_DATA(UINT, g_appType);
  19. DC_DATA(BOOL, g_fLeftDownOnShared);
  20. // These are meaningful only in WOW apps
  21. DC_DATA(DWORD, g_idWOWApp);
  22. DC_DATA(BOOL, g_fShareWOWApp);
  23. // These are set in CONF's process and NULL in others
  24. DC_DATA(SETWINEVENTHOOK, g_hetSetWinEventHook);
  25. DC_DATA(UNHOOKWINEVENT, g_hetUnhookWinEvent);
  26. DC_DATA(HWINEVENTHOOK, g_hetTrackHook);
  27. //
  28. // Shared data, accessible in all processes
  29. //
  30. #ifdef DC_DEFINE_DATA
  31. #pragma data_seg("SHARED")
  32. #endif
  33. DC_DATA_VAL(HWND, g_asMainWindow, NULL);
  34. DC_DATA_VAL(ATOM, g_asHostProp, 0);
  35. DC_DATA_VAL(HHOOK, g_imMouseHook, NULL);
  36. DC_DATA_VAL(char, g_osiDriverName[CCHDEVICENAME], "");
  37. DC_DATA_VAL(char, s_osiDisplayName[8], "DISPLAY");
  38. #ifdef DC_DEFINE_DATA
  39. #pragma data_seg()
  40. #endif