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.

108 lines
3.5 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. svcinfo.h
  5. Abstract:
  6. Author:
  7. Vlad Sadovsky (vlads) 22-Sep-1997
  8. Environment:
  9. User Mode - Win32
  10. Revision History:
  11. 22-Sep-1997 VladS created
  12. --*/
  13. # ifndef _STISVC_H_
  14. # define _STISVC_H_
  15. //
  16. // Service name. Note: Some strings are filename dependant, and must be
  17. // updated if the filenames change.
  18. //
  19. #define STI_SERVICE_NAME TEXT("StiSvc")
  20. #define STI_DISPLAY_NAME TEXT("Windows Image Acquisition (WIA)")
  21. #define STI_IMAGE_NAME TEXT("%systemroot%\\system32\\stisvc.exe")
  22. #define STI_IMAGE_NAME_SVCHOST TEXT("%SystemRoot%\\system32\\svchost.exe -k imgsvc")
  23. #define STI_IMGSVC TEXT("imgsvc")
  24. #define REGSTR_SERVICEDLL TEXT("ServiceDll")
  25. #define STI_SERVICE__DATA 0x19732305
  26. #define STI_SVC_HOST REGSTR_PATH_NT_CURRENTVERSION TEXT("\\svchost")
  27. #define STI_SERVICE_PARAMS REGSTR_PATH_SERVICES TEXT("\\") STI_SERVICE_NAME TEXT("\\Parameters")
  28. #define STI_SVC_DEPENDENCIES TEXT("RpcSs\0\0")
  29. #ifdef WINNT
  30. #define SYSTEM_PATH TEXT("%SystemRoot%\\system32\\")
  31. #define PATH_REG_TYPE REG_EXPAND_SZ
  32. #define SERVICE_FILE_NAME TEXT("svchost.exe")
  33. #else
  34. #define SYSTEM_PATH TEXT("\\system\\")
  35. #define PATH_REG_TYPE REG_SZ
  36. #define SERVICE_FILE_NAME TEXT("stimon.exe")
  37. #endif
  38. //
  39. // SCM parameters
  40. //
  41. #define START_HINT 4000
  42. #define PAUSE_HINT 2000
  43. #define STI_STOP_FOR_REMOVE_TIMEOUT 1000
  44. //
  45. // STI API specific access rights
  46. //
  47. //#define STI_SVC_SERVICE_TYPE (SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS)
  48. #define STI_SVC_SERVICE_TYPE (SERVICE_WIN32_SHARE_PROCESS | SERVICE_INTERACTIVE_PROCESS)
  49. #define STI_QUERY_SECURITY 0x0001
  50. #define STI_SET_SECURITY 0x0002
  51. #define STI_QUERY_STATISTICS 0x0004
  52. #define STI_CLEAR_STATISTICS 0x0008
  53. #define STI_QUERY_ADMIN_INFORMATION 0x0010
  54. #define STI_SET_ADMIN_INFORMATION 0x0020
  55. #define STI_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
  56. SYNCHRONIZE | \
  57. STI_QUERY_SECURITY | \
  58. STI_SET_SECURITY | \
  59. STI_QUERY_STATISTICS | \
  60. STI_CLEAR_STATISTICS | \
  61. STI_QUERY_ADMIN_INFORMATION | \
  62. STI_SET_ADMIN_INFORMATION \
  63. )
  64. #define STI_GENERIC_READ (STANDARD_RIGHTS_READ | \
  65. STI_QUERY_SECURITY | \
  66. STI_QUERY_ADMIN_INFORMATION | \
  67. STI_QUERY_STATISTICS)
  68. #define STI_GENERIC_WRITE (STANDARD_RIGHTS_WRITE | \
  69. STI_SET_SECURITY | \
  70. STI_SET_ADMIN_INFORMATION | \
  71. STI_CLEAR_STATISTICS)
  72. #define STI_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE)
  73. #define STI_SERVICE_CONTROL_BEGIN 128
  74. #define STI_SERVICE_CONTROL_REFRESH STI_SERVICE_CONTROL_BEGIN
  75. #define STI_SERVICE_CONTROL_LPTENUM STI_SERVICE_CONTROL_BEGIN+1
  76. #define STI_SERVICE_CONTROL_EVENT_REREAD STI_SERVICE_CONTROL_BEGIN+2
  77. #define STI_SERVICE_CONTROL_END STI_SERVICE_CONTROL_BEGIN+2
  78. #endif // _STISVC_H_