Leaked source code of windows server 2003
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.

61 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // File: globals.cpp
  4. //
  5. // Contents: Global variables.
  6. //
  7. //----------------------------------------------------------------------------
  8. #include "private.h"
  9. #include "initguid.h"
  10. #include "mscandui.h"
  11. #include "globals.h"
  12. HINSTANCE g_hInst = NULL;
  13. // used by COM server
  14. HINSTANCE GetServerHINSTANCE(void)
  15. {
  16. return g_hInst;
  17. }
  18. CCicCriticalSectionStatic g_cs;
  19. // for combase
  20. CRITICAL_SECTION *GetServerCritSec(void)
  21. {
  22. return g_cs;
  23. }
  24. CCandUIShareMem g_ShareMem;
  25. UINT g_msgHookedMouse = WM_NULL;
  26. UINT g_msgHookedKey = WM_NULL;
  27. PSECURITY_ATTRIBUTES g_psa = NULL;
  28. /* 94bed74a-5b62-4f0e-b2fa-9302d406369c */
  29. const GUID GUID_COMPARTMENT_CANDUI_KEYTABLE = {
  30. 0x94bed74a,
  31. 0x5b62,
  32. 0x4f0e,
  33. { 0xb2, 0xfa, 0x93, 0x02, 0xd4, 0x06, 0x36, 0x9c }
  34. };
  35. /* 66fe171c-5757-4bfe-a049-0da6c3cbe18f */
  36. const GUID GUID_COMPARTMENT_CANDUI_UISTYLE = {
  37. 0x66fe171c,
  38. 0x5757,
  39. 0x4bfe,
  40. { 0xa0, 0x49, 0x0d, 0xa6, 0xc3, 0xcb, 0xe1, 0x8f }
  41. };
  42. /* 8265d817-7982-42cc-bccc-91ad52f561bd */
  43. const GUID GUID_COMPARTMENT_CANDUI_UIOPTION = {
  44. 0x8265d817,
  45. 0x7982,
  46. 0x42cc,
  47. { 0xbc, 0xcc, 0x91, 0xad, 0x52, 0xf5, 0x61, 0xbd }
  48. };