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.

98 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. splsvc.h
  6. Abstract:
  7. Private spooler service prototypes.
  8. Author:
  9. Albert Ting (AlbertT) 23-Sept-96
  10. Revision History:
  11. Khaled Sedky (KhaledS) 1998-2001
  12. --*/
  13. #ifndef _SPLSVC_H
  14. #define _SPLSVC_H
  15. typedef enum _SPOOLER_STATE {
  16. kUnused = 0,
  17. kOpen,
  18. kClose,
  19. kOnlinePending,
  20. kOnline,
  21. kOfflinePending,
  22. kOffline,
  23. kTerminate
  24. } SPOOLER_STATE;
  25. typedef enum EShutDownMethod
  26. {
  27. kOffLineShutDown = 0,
  28. kTerminateShutDown
  29. };
  30. typedef struct _SPOOLER_INFORMATION {
  31. UINT cRef;
  32. SPOOLER_STATE eState;
  33. RESID Resid;
  34. HRESOURCE hResource;
  35. RESOURCE_HANDLE ResourceHandle;
  36. HANDLE hSpooler;
  37. PLOG_EVENT_ROUTINE pfnLogEvent;
  38. PSET_RESOURCE_STATUS_ROUTINE pfnSetResourceStatus;
  39. LPCTSTR pszName;
  40. LPCTSTR pszAddress;
  41. LPCTSTR pszResource;
  42. HKEY ParametersKey;
  43. CLUSTER_RESOURCE_STATE ClusterResourceState;
  44. CLUS_WORKER OnlineThread;
  45. CLUS_WORKER OfflineThread;
  46. CLUS_WORKER OnLineStatusThread;
  47. CLUS_WORKER OffLineStatusThread;
  48. CLUS_WORKER TerminateStatusThread;
  49. } SPOOLER_INFORMATION, *PSPOOLER_INFORMATION;
  50. typedef struct _STATUSTHREAD_INFO{
  51. HANDLE hStatusEvent;
  52. RESOURCE_STATUS *pResourceStatus;
  53. PSPOOLER_INFORMATION pSpoolerInfo;
  54. }STATUSTHREAD_INFO, *PSTATUSTHREAD_INFO;
  55. //
  56. // Common utility routines.
  57. //
  58. VOID
  59. vEnterSem(
  60. VOID
  61. );
  62. VOID
  63. vLeaveSem(
  64. VOID
  65. );
  66. VOID
  67. vAddRef(
  68. PSPOOLER_INFORMATION pSpoolerInfo
  69. );
  70. VOID
  71. vDecRef(
  72. PSPOOLER_INFORMATION pSpoolerInfo
  73. );
  74. #endif // ifndef _SPLSVC_H