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.

189 lines
7.5 KiB

  1. /*++
  2. Copyright (c) 1986-1997 Microsoft Corporation
  3. Module Name:
  4. stiregi.h
  5. Abstract:
  6. This module contains internal only STI registry entries
  7. Author:
  8. Revision History:
  9. --*/
  10. #ifndef _STIREGI_
  11. #define _STIREGI_
  12. #include <stireg.h>
  13. //
  14. //
  15. // Private flags to communicate with class installer
  16. #define SCIW_PRIV_SHOW_FIRST 0x00000001
  17. #define SCIW_PRIV_CALLED_FROMCPL 0x00000002
  18. //
  19. //
  20. // Registry names
  21. //
  22. #define REGSTR_PATH_STICONTROL_W L"System\\CurrentControlSet\\Control\\StillImage"
  23. #define REGSTR_PATH_STIDEVICES_W L"System\\CurrentControlSet\\Services\\Class"
  24. #define REGSTR_PATH_STIDEVICES_NT_W L"System\\CurrentControlSet\\Control\\Class"
  25. #define REGSTR_PATH_REG_APPS_W L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StillImage\\Registered Applications"
  26. #define REGSTR_PATH_ENUM_W L"Enum"
  27. #define REGSTR_PATH_EVENTS_W L"\\Events"
  28. #define REGSTR_PATH_LOGGING_W L"\\Logging"
  29. #define REGSTR_VAL_STIWIASVCDLL_W L"WiaServiceDll"
  30. #define REGSTR_VAL_LOCK_MGR_COOKIE_W L"StiLockMgr"
  31. #define REGSTR_PATH_STICONTROL_DEVLIST_W L"System\\CurrentControlSet\\Control\\StillImage\\DevList"
  32. #define REGSTR_PATH_WIA_MSCDEVICES_W L"System\\CurrentControlSet\\Control\\StillImage\\MSCDeviceList"
  33. #define REGSTR_PATH_STICONTROL_A "System\\CurrentControlSet\\Control\\StillImage"
  34. #define REGSTR_PATH_STIDEVICES_A "System\\CurrentControlSet\\Services\\Class"
  35. #define REGSTR_PATH_STIDEVICES_NT_A "System\\CurrentControlSet\\Control\\Class"
  36. #define REGSTR_PATH_REG_APPS_A "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StillImage\\Registered Applications"
  37. #define REGSTR_PATH_NT_ENUM_A "System\\CurrentControlSet\\Enum"
  38. #define REGSTR_PATH_EVENTS_A "\\Events"
  39. #define REGSTR_PATH_LOGGING_A "\\Logging"
  40. #define REGSTR_VAL_STIWIASVCDLL_A "WiaServiceDll"
  41. #define REGSTR_VAL_LOCK_MGR_COOKIE_A "StiLockMgr"
  42. #define REGSTR_PATH_SHAREDDLL TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\SharedDlls")
  43. #define REGSTR_PATH_SOFT_STI TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StillImage")
  44. // FIX: This should be moved to stireg.h
  45. #define STI_DEVICE_VALUE_HOLDINGTIME_A "LockHoldingTime"
  46. #define STI_DEVICE_VALUE_HOLDINGTIME_W L"LockHoldingTime"
  47. #if defined(UNICODE)
  48. #define REGSTR_PATH_EVENTS REGSTR_PATH_EVENTS_W
  49. #define REGSTR_PATH_STIDEVICES_NT REGSTR_PATH_STIDEVICES_NT_W
  50. #define REGSTR_PATH_STIDEVICES REGSTR_PATH_STIDEVICES_W
  51. #define REGSTR_PATH_STICONTROL REGSTR_PATH_STICONTROL_W
  52. #define REGSTR_PATH_LOGGING REGSTR_PATH_LOGGING_W
  53. #define REGSTR_VAL_STIWIASVCDLL REGSTR_VAL_STIWIASVCDLL_W
  54. #define REGSTR_PATH_REG_APPS REGSTR_PATH_REG_APPS_W
  55. #define REGSTR_VAL_LOCK_MGR_COOKIE REGSTR_VAL_LOCK_MGR_COOKIE_W
  56. #define STI_DEVICE_VALUE_HOLDINGTIME STI_DEVICE_VALUE_HOLDINGTIME_W
  57. #else
  58. #define REGSTR_PATH_EVENTS REGSTR_PATH_EVENTS_A
  59. #define REGSTR_PATH_STIDEVICES_NT REGSTR_PATH_STIDEVICES_NT_A
  60. #define REGSTR_PATH_STIDEVICES REGSTR_PATH_STIDEVICES_A
  61. #define REGSTR_PATH_STICONTROL REGSTR_PATH_STICONTROL_A
  62. #define REGSTR_PATH_LOGGING REGSTR_PATH_LOGGING_A
  63. #define REGSTR_VAL_STIWIASVCDLL REGSTR_VAL_STIWIASVCDLL_A
  64. #define REGSTR_PATH_REG_APPS REGSTR_PATH_REG_APPS_A
  65. #define REGSTR_VAL_LOCK_MGR_COOKIE REGSTR_VAL_LOCK_MGR_COOKIE_A
  66. #define STI_DEVICE_VALUE_HOLDINGTIME STI_DEVICE_VALUE_HOLDINGTIME_A
  67. #endif
  68. //
  69. // Registry keys and values
  70. //
  71. #define REGSTR_VAL_DEVICEPORT_W L"CreateFileName"
  72. #define REGSTR_VAL_USD_CLASS_W L"USDClass"
  73. #define REGSTR_VAL_USD_CLASS_A "USDClass"
  74. #define REGSTR_VAL_DEV_NAME_W L"DeviceName"
  75. #define REGSTR_VAL_DRIVER_DESC_W L"DriverDesc"
  76. #define REGSTR_VAL_FRIENDLY_NAME_W L"FriendlyName"
  77. #define REGSTR_VAL_FRIENDLY_NAME TEXT("FriendlyName")
  78. #define REGSTR_VAL_GENERIC_CAPS_W L"Capabilities"
  79. #define REGSTR_VAL_HARDWARE_W L"HardwareConfig"
  80. #define REGSTR_VAL_DEVICE_NAME_W L"DriverDesc"
  81. #define REGSTR_VAL_PROP_PROVIDER_W L"PropertyPages"
  82. #define REGSTR_VAL_DATA_W L"DeviceData"
  83. #define REGSTR_VAL_SUBCLASS_W L"SubClass"
  84. #define REGSTR_VAL_SUBCLASS TEXT("SubClass")
  85. #define REGSTR_VAL_LAUNCH_APPS_W L"LaunchApplications"
  86. #define REGSTR_VAL_LAUNCH_APPS TEXT("LaunchApplications")
  87. #define REGSTR_VAL_LAUNCHABLE_W L"Launchable"
  88. #define REGSTR_VAL_LAUNCHABLE TEXT("Launchable")
  89. #define REGSTR_VAL_LOG_LEVEL TEXT("Level")
  90. #define REGSTR_VAL_LOG_MODE TEXT("Mode")
  91. #define REGSTR_VAL_LOG_MAXSIZE TEXT("MaxSize")
  92. #define REGSTR_VAL_LOG_TRUNCATE_ON_BOOT TEXT("TruncateOnBoot")
  93. #define REGSTR_VAL_LOG_DETAIL TEXT("Detail")
  94. #define REGSTR_VAL_LOG_CLEARLOG_ON_BOOT TEXT("ClearLogOnBoot")
  95. #define REGSTR_VAL_LOG_TO_DEBUGGER TEXT("LogToDebugger")
  96. #define REGSTR_VAL_INFPATH TEXT("InfPath")
  97. #define REGSTR_VAL_INFSECTION TEXT("InfSection")
  98. #define REGSTR_VAL_ISPNP TEXT("IsPnP")
  99. #define REGSTR_VAL_MONITOR TEXT("StillImageMonitor")
  100. #define REGSTR_VAL_WIA_PRESENT TEXT("WIADevicePresent")
  101. #define REGSTR_VAL_MAX_LOCK_WAIT_TIME TEXT("MaxLockWaitTime")
  102. #define REGSTR_VAL_ENABLE_VOLUMES_W L"EnableVolumeDevices"
  103. #define REGSTR_VAL_MAKE_VOLUMES_VISIBLE_W L"MakeVolumeDevicesVisible"
  104. #define REGSTR_VAL_WIA_EVENT_DEVICE_CONNECTED L"{a28bbade-64b6-11d2-a231-00c04fa31809}";
  105. #define REGSTR_VAL_QUERYDEVICEFORNAME TEXT("QueryDeviceForName") // used by PTP driver to determine if it should ask the device for its model name
  106. //
  107. // Still Image Class Name defines
  108. //
  109. #define CLASSNAME TEXT("Image")
  110. #define STILLIMAGE TEXT("StillImage")
  111. // #define CLASSNAME "Image" <- Original
  112. #define CLASSNAME_W L"Image"
  113. //#define STILLIMAGE "StillImage" <- Original
  114. #define STILLIMAGE_W L"StillImage"
  115. //
  116. // Event logging
  117. //
  118. #define REGSTR_VAL_EVENT_LOG_DIRECTORY_A "EventLogDirectory"
  119. #define REGSTR_VAL_DEBUG_FLAGS_W L"DebugFlags"
  120. #define REGSTR_VAL_DEBUG_FILE_W L"DebugLogFile"
  121. #define REGSTR_VAL_DEBUG_STIMONUI_W L"DebugStiMonUI"
  122. #define REGSTR_VAL_DEBUG_STIMONUIWIN_W L"StiMonUIWin"
  123. #define REGVAL_STR_STIMON_DEBUGMASK_W L"StiMonDebugMask"
  124. #define REGSTR_VAL_MIGRATE_STI_W L"MigrateSTIApps"
  125. #define REGSTR_VAL_DEBUG_FLAGS_A "DebugFlags"
  126. #define REGSTR_VAL_DEBUG_FILE_A "DebugLogFile"
  127. #define REGSTR_VAL_DEBUG_STIMONUI_A "DebugStiMonUI"
  128. #define REGSTR_VAL_DEBUG_STIMONUIWIN_A "StiMonUIWin"
  129. #define REGVAL_STR_STIMON_DEBUGMASK_A "StiMonDebugMask"
  130. #define REGSTR_VAL_MIGRATE_STI_A "MigrateSTIApps"
  131. #if defined(UNICODE)
  132. #define REGSTR_VAL_USD_CLASS REGSTR_VAL_USD_CLASS_W
  133. #define REGSTR_VAL_DEBUG_FLAGS REGSTR_VAL_DEBUG_FLAGS_W
  134. #define REGSTR_VAL_DEBUG_FILE REGSTR_VAL_DEBUG_FILE_W
  135. #define REGSTR_VAL_DEBUG_STIMONUI REGSTR_VAL_DEBUG_STIMONUI_W
  136. #define REGSTR_VAL_DEBUG_STIMONUIWIN REGSTR_VAL_DEBUG_STIMONUIWIN_W
  137. #define REGVAL_STR_STIMON_DEBUGMASK REGVAL_STR_STIMON_DEBUGMASK_W
  138. #define REGSTR_VAL_MIGRATE_STI REGSTR_VAL_MIGRATE_STI_W
  139. #else
  140. #define REGSTR_VAL_USD_CLASS REGSTR_VAL_USD_CLASS_A
  141. #define REGSTR_VAL_DEBUG_FLAGS REGSTR_VAL_DEBUG_FLAGS_A
  142. #define REGSTR_VAL_DEBUG_FILE REGSTR_VAL_DEBUG_FILE_A
  143. #define REGSTR_VAL_DEBUG_STIMONUI REGSTR_VAL_DEBUG_STIMONUI_A
  144. #define REGSTR_VAL_DEBUG_STIMONUIWIN REGSTR_VAL_DEBUG_STIMONUIWIN_A
  145. #define REGVAL_STR_STIMON_DEBUGMASK REGVAL_STR_STIMON_DEBUGMASK_A
  146. #define REGSTR_VAL_MIGRATE_STI REGSTR_VAL_MIGRATE_STI_A
  147. #endif
  148. #endif // _STIREGI_