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.

134 lines
4.0 KiB

  1. /**************************************************************************\
  2. * Module Name: globals.cpp
  3. *
  4. * Copyright (c) 1985 - 2000, Microsoft Corporation
  5. *
  6. * Global Definition for Soft Keyboard Component.
  7. *
  8. * History:
  9. * 28-March-2000 weibz Created
  10. \**************************************************************************/
  11. #include "private.h"
  12. #include "globals.h"
  13. #define CPP_FUNCTIONS
  14. #include "icrtfree.h"
  15. CCicCriticalSectionStatic g_cs;
  16. // for combase
  17. CRITICAL_SECTION *GetServerCritSec(void)
  18. {
  19. return g_cs;
  20. }
  21. /* ca01de3f-1433-4d60-9324-14307fd943df */
  22. /*extern const GUID GUID_ATTR_SOFTKBDIMX_INPUT = {
  23. 0xca01de3f,
  24. 0x1433,
  25. 0x4d60,
  26. {0x93, 0x24, 0x14, 0x30, 0x7f, 0xd9, 0x43, 0xdf}
  27. };
  28. */
  29. /* 31f4d5e3-c2da-41bc-902c-d62648447daa */
  30. extern const GUID GUID_IC_PRIVATE = {
  31. 0x31f4d5e3,
  32. 0xc2da,
  33. 0x41bc,
  34. {0x90, 0x2c, 0xd6, 0x26, 0x48, 0x44, 0x7d, 0xaa}
  35. };
  36. extern const GUID GUID_LBI_SOFTKBDIMX_MODE = {/*7883eed0-e859-4357-a348-006e73ea680f */
  37. 0x7883eed0,
  38. 0xe859,
  39. 0x4357,
  40. {0xa3, 0x48, 0x00, 0x6e, 0x73, 0xea, 0x68, 0x0f}
  41. };
  42. /* def9364c-ce29-447f-ae02-076714aeaf6f */
  43. extern const GUID GUID_COMPARTMENT_SOFTKBD_KBDLAYOUT = {
  44. 0xdef9364c,
  45. 0xce29,
  46. 0x447f,
  47. {0xae, 0x02, 0x07, 0x67, 0x14, 0xae, 0xaf, 0x6f}
  48. };
  49. /* e9221414-d6c8-4885-834e-b11ba641c4f2 */
  50. extern const GUID GUID_COMPARTMENT_SOFTKBD_WNDPOSITION = {
  51. 0xe9221414,
  52. 0xd6c8,
  53. 0x4885,
  54. {0x83, 0x4e, 0xb1, 0x1b, 0xa6, 0x41, 0xc4, 0xf2}
  55. };
  56. extern PICTUREKEY gPictureKeys[NUM_PICTURE_KEYS]= {
  57. // uScanCode, uVKey, PictBitmap
  58. { KID_LWINLOGO, VK_LWIN, L"IDB_WINLOGO" },
  59. { KID_RWINLOGO, VK_RWIN, L"IDB_WINLOGO" },
  60. { KID_APPS, VK_APPS, L"IDB_APPS" },
  61. { KID_LEFT, VK_LEFT, L"IDB_LEFT" },
  62. { KID_RIGHT, VK_RIGHT, L"IDB_RIGHT" },
  63. { KID_UP, VK_UP, L"IDB_UP" },
  64. { KID_DOWN, VK_DOWN, L"IDB_DOWN" },
  65. { KID_ESC, VK_ESCAPE, L"IDB_ESC" },
  66. { KID_BACK, VK_BACK, L"IDB_BACK" },
  67. { KID_TAB, VK_TAB, L"IDB_TAB" },
  68. { KID_CAPS, VK_CAPITAL,L"IDB_CAPITAL" },
  69. { KID_ENTER, VK_RETURN, L"IDB_RETURN" },
  70. { KID_LSHFT, VK_SHIFT, L"IDB_SHIFT" },
  71. { KID_RSHFT, VK_SHIFT, L"IDB_SHIFT" },
  72. { KID_CTRL, VK_CONTROL,L"IDB_CONTROL" },
  73. { KID_RCTRL, VK_CONTROL,L"IDB_CONTROL" },
  74. { KID_ALT, VK_MENU, L"IDB_ALT" },
  75. { KID_RALT, VK_RMENU, L"IDB_ALTGR" },
  76. { KID_DELETE, VK_DELETE, L"IDB_DELETE" },
  77. { 0,0,NULL}
  78. };
  79. extern PICTUREKEY gJpnPictureKeys[NUM_PICTURE_KEYS] = {
  80. // uScanCode, uVKey, PictBitmap
  81. { KID_LWINLOGO, VK_LWIN, L"IDB_WINLOGO" },
  82. { KID_RWINLOGO, VK_RWIN, L"IDB_WINLOGO" },
  83. { KID_APPS, VK_APPS, L"IDB_APPS" },
  84. { KID_LEFT, VK_LEFT, L"IDB_LEFT" },
  85. { KID_RIGHT, VK_RIGHT, L"IDB_RIGHT" },
  86. { KID_UP, VK_UP, L"IDB_UP" },
  87. { KID_DOWN, VK_DOWN, L"IDB_DOWN" },
  88. { KID_ESC, VK_ESCAPE, L"IDB_ESC" },
  89. { KID_BACK, VK_BACK, L"IDB_JPNBACK" },
  90. { KID_TAB, VK_TAB, L"IDB_TAB" },
  91. { KID_CAPS, VK_CAPITAL,L"IDB_JPNCAPITAL" },
  92. { KID_ENTER, VK_RETURN, L"IDB_JPNRETURN" },
  93. { KID_LSHFT, VK_SHIFT, L"IDB_SHIFT" },
  94. { KID_RSHFT, VK_SHIFT, L"IDB_SHIFT" },
  95. { KID_CTRL, VK_CONTROL,L"IDB_CONTROL" },
  96. { KID_RCTRL, VK_CONTROL,L"IDB_CONTROL" },
  97. { KID_ALT, VK_MENU, L"IDB_ALT" },
  98. { KID_RALT, VK_MENU, L"IDB_ALT" },
  99. { KID_DELETE, VK_DELETE, L"IDB_DELETE" },
  100. { KID_CONVERT, VK_CONVERT,L"IDB_CONVERT" },
  101. { KID_NONCONVERT,VK_NONCONVERT, L"IDB_NONCONVERT" },
  102. { KID_KANA, 0, L"IDB_KANA" },
  103. { KID_FULLHALF, 0, L"IDB_FULLHALF" },
  104. { 0,0,NULL}
  105. };