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.

52 lines
1.5 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // PreCreateServices.h
  7. //
  8. // Description:
  9. // PreCreateServices implementation.
  10. //
  11. // Maintained By:
  12. // David Potter (DavidP) 19-JUN-2001
  13. // Geoffrey Pease (GPease) 15-JUN-2000
  14. //
  15. //////////////////////////////////////////////////////////////////////////////
  16. #pragma once
  17. class CPreCreateServices
  18. : public IClusCfgResourcePreCreate
  19. , public IPrivatePostCfgResource
  20. {
  21. private: // data
  22. // IUnknown
  23. LONG m_cRef; // Reference counter
  24. // IPrivatePostCfgResource
  25. CResourceEntry * m_presentry; // List entry that the service is to modify.
  26. private: // methods
  27. CPreCreateServices( void );
  28. ~CPreCreateServices( void );
  29. HRESULT HrInit( void );
  30. public: // methods
  31. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  32. // IUnknown
  33. STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
  34. STDMETHOD_( ULONG, AddRef )( void );
  35. STDMETHOD_( ULONG, Release )( void );
  36. // IClusCfgResourcePreCreate
  37. STDMETHOD( SetDependency )( LPCLSID pclsidDepResTypeIn, DWORD dfIn );
  38. STDMETHOD( SetType )( LPCLSID pclsidIn );
  39. STDMETHOD( SetClassType )( LPCLSID pclsidIn );
  40. // IPrivatePostCfgResource
  41. STDMETHOD( SetEntry )( CResourceEntry * presentryIn );
  42. }; //*** class CPreCreateServices