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.

217 lines
4.8 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. HINSTANCE g_hInstSpgrmr = NULL;
  14. // used by COM server
  15. HINSTANCE GetServerHINSTANCE(void)
  16. {
  17. return g_hInst;
  18. }
  19. DWORD g_dwTlsIndex = -1;
  20. CCicCriticalSectionStatic g_cs;
  21. // for combase
  22. CRITICAL_SECTION *GetServerCritSec(void)
  23. {
  24. return g_cs;
  25. }
  26. //custom property:a414addd-3982-40d5-a664-d4f5de039305
  27. const GUID GUID_PROP_SAPIRESULTOBJECT = {
  28. 0xa414addd,
  29. 0x3982,
  30. 0x40d5,
  31. { 0xa6, 0x64, 0xd4, 0xf5, 0xde, 0x03, 0x93, 0x05}
  32. };
  33. /* 46b283a4-4a22-4ced-8ff4-7814cac68e3c */
  34. const GUID GUID_PROP_SAPI_DISPATTR = {
  35. 0x46b283a4,
  36. 0x4a22,
  37. 0x4ced,
  38. {0x8f, 0xf4, 0x78, 0x14, 0xca, 0xc6, 0x8e, 0x3c}
  39. };
  40. /* 48a9d381-06eb-4839-a50b-19703269587a */
  41. const GUID GUID_ATTR_SAPI_INPUT = {
  42. 0x48a9d381,
  43. 0x06eb,
  44. 0x4839,
  45. {0xa5, 0x0b, 0x19, 0x70, 0x32, 0x69, 0x58, 0x7a}
  46. };
  47. const GUID GUID_ATTR_SAPI_GREENBAR = {
  48. 0x82e6d2c0,
  49. 0x6028,
  50. 0x11d3,
  51. {0xb5, 0xd6, 0x00, 0xc0, 0x4f, 0xc3, 0x24, 0xa1}
  52. };
  53. const GUID GUID_ATTR_SAPI_GREENBAR2 = {
  54. 0xc3a9e2e8,
  55. 0x738c,
  56. 0x48e0,
  57. {0xac, 0xc8, 0x43, 0xee, 0xfa, 0xbf, 0x83, 0xc8}
  58. };
  59. const GUID GUID_ATTR_SAPI_REDBAR = {
  60. 0xb1ec93ca,
  61. 0x6028,
  62. 0x11d3,
  63. {0xb5, 0xd6, 0x00, 0xc0, 0x4f, 0xc3, 0x24, 0xa1}
  64. };
  65. const GUID GUID_ATTR_SAPI_SELECTION = {
  66. 0xb3c0ef25,
  67. 0xa12f,
  68. 0x4b0e,
  69. {0xa9, 0x8f, 0x11, 0x63, 0x11, 0xb3, 0xd6, 0x81}
  70. };
  71. /* A91DF761-C6F0-4E12-922A-7E24BFEBFF20 */
  72. const GUID GUID_IC_PRIVATE = {
  73. 0xA91DF761,
  74. 0xC6F0,
  75. 0x4E12,
  76. {0x92, 0x2A, 0x7E, 0x24, 0xBF, 0xEB, 0xFF, 0x20}
  77. };
  78. /* 536402D1-26EA-4024-B890-1004CAE3C1BE */
  79. const GUID GUID_COMPARTMENT_SPEECHPRIV_REFCNT = {
  80. 0x536402D1,
  81. 0x26EA,
  82. 0x4024,
  83. {0xB8, 0x90, 0x10, 0x04, 0xCA, 0xE3, 0xC1, 0xBE}
  84. };
  85. /* 2f1e5e65-67db-4dbd-b793-7d8d07df248c */
  86. const GUID GUID_COMPARTMENT_SPEECH_LEARNDOC = {
  87. 0x2f1e5e65,
  88. 0x67db,
  89. 0x4dbd,
  90. {0xb7, 0x93, 0x7d, 0x8d, 0x07, 0xdf, 0x24, 0x8c }
  91. };
  92. /* cd7e8074-9ef6-4298-b76e-bfa9aca40e3b */
  93. const GUID GUID_COMPARTMENT_TTS_STATUS = {
  94. 0xcd7e8074,
  95. 0x9ef6,
  96. 0x4298,
  97. {0xb7, 0x6e, 0xbf, 0xa9, 0xac, 0xa4, 0x0e, 0x3b}
  98. };
  99. /* e9cee003-2d38-42da-8cb5-e16c3483f8c4 */
  100. const GUID GUID_HOTKEY_TTS_PLAY_STOP = {
  101. 0xe9cee003,
  102. 0x2d38,
  103. 0x42da,
  104. {0x8c, 0xb5, 0xe1, 0x6c, 0x34, 0x83, 0xf8, 0xc4}
  105. };
  106. /* 1dcadf31-a8e7-49eb-a255-512c9fa9365b */
  107. const GUID GUID_HOTKEY_MODE_DICTATION = {
  108. 0x1dcadf31,
  109. 0xa8e7,
  110. 0x49eb,
  111. {0xa2, 0x55, 0x51, 0x2c, 0x9f, 0xa9, 0x36, 0x5b}
  112. };
  113. /* a41656ec-a369-4aec-a5bc-769c3d32ccaf */
  114. const GUID GUID_HOTKEY_MODE_COMMAND = {
  115. 0xa41656ec,
  116. 0xa369,
  117. 0x4aec,
  118. {0xa5, 0xbc, 0x76, 0x9c, 0x3d, 0x32, 0xcc, 0xaf}
  119. };
  120. /* c1a1554f-b715-48e1-921f-716fd7332ce9 */
  121. const GUID GUID_COMPARTMENT_SHARED_BLN_TEXT = {
  122. 0xc1a1554f,
  123. 0xb715,
  124. 0x48e1,
  125. {0x92, 0x1f, 0x71, 0x6f, 0xd7, 0x33, 0x2c, 0xe9}
  126. };
  127. /* 574e41bb-1bf4-4630-95dd-b143372ac8d0 */
  128. const GUID GUID_COMPARTMENT_SPEECHUISHOWN = {
  129. 0x574e41bb,
  130. 0x1bf4,
  131. 0x4630,
  132. {0x95, 0xdd, 0xb1, 0x43, 0x37, 0x2a, 0xc8, 0xd0}
  133. };
  134. // TABLETPC
  135. /* e7912cf8-5f71-4483-bcb8-fd87de9168e3 */
  136. const GUID GUID_COMPARTMENT_SPEECH_STAGE = {
  137. 0xe7912cf8,
  138. 0x5f71,
  139. 0x4483,
  140. {0xbc, 0xb8, 0xfd, 0x87, 0xde, 0x91, 0x68, 0xe3 }
  141. };
  142. /* 8d5ee345-e891-4184-8baf-e201c8c6903a */
  143. const GUID GUID_COMPARTMENT_SPEECH_STAGECHANGE = {
  144. 0x8d5ee345,
  145. 0xe891,
  146. 0x4184,
  147. {0x8b, 0xaf, 0xe2, 0x01, 0xc8, 0xc6, 0x90, 0x3a }
  148. };
  149. // {B2B398FC-35AC-4cec-9BE8-F4EFD1738CF3}
  150. const GUID GUID_COMPARTMENT_SPEECH_STAGEDICTATION = {
  151. 0xb2b398fc,
  152. 0x35ac,
  153. 0x4cec,
  154. {0x9b, 0xe8, 0xf4, 0xef, 0xd1, 0x73, 0x8c, 0xf3 }
  155. };
  156. // {054AAE20-4BEA-4347-8A35-64A533254A9D}
  157. const GUID CLSID_UIHost = {
  158. 0x054AAE20,
  159. 0x4BEA,
  160. 0x4347,
  161. { 0x8A,0x35,0x64,0xA5,0x33,0x25,0x4A,0x9D }
  162. };
  163. // END TABLETPC
  164. /* 772ce27f-8c06-4170-a75a-dd4c3103cce2 */
  165. const GUID GUID_COMPARTMENT_SPEECH_PROPERTY_CHANGE = {
  166. 0x772ce27f,
  167. 0x8c06,
  168. 0x4170,
  169. {0xa7, 0x5a, 0xdd, 0x4c, 0x31, 0x03, 0xcc, 0xe2}
  170. };
  171. /* E7BA80B1-71E6-4EF0-A429-2599A25973FA */
  172. const GUID CLSID_SpPropertyPage = {
  173. 0xE7BA80B1,
  174. 0x71E6,
  175. 0x4EF0,
  176. {0xA4, 0x29, 0x25, 0x99, 0xA2, 0x59, 0x73, 0xFA}
  177. };
  178. // widget stuff
  179. // {8613E14C-D0C0-4161-AC0F-1DD2563286BC}
  180. const CLSID CLSID_CorrectionIMX =
  181. { 0x8613e14c, 0xd0c0, 0x4161, { 0xac, 0xf, 0x1d, 0xd2, 0x56, 0x32, 0x86, 0xbc } };
  182. // miscs
  183. const LARGE_INTEGER c_li0 = { 0, 0 };