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.

53 lines
1.4 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // PreCreateServices.h
  7. //
  8. // Description:
  9. // PreCreateServices implementation.
  10. //
  11. // Maintained By:
  12. // Geoffrey Pease (GPease) 15-JUN-2000
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. class
  17. 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
  30. HrInit(void );
  31. public: // methods
  32. static HRESULT
  33. S_HrCreateInstance( IUnknown ** ppunkOut );
  34. // IUnknown
  35. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  36. STDMETHOD_( ULONG, AddRef )( void );
  37. STDMETHOD_( ULONG, Release )( void );
  38. // IClusCfgResourcePreCreate
  39. STDMETHOD( SetDependency )( LPCLSID pclsidDepResTypeIn, DWORD dfIn );
  40. STDMETHOD( SetType )( LPCLSID pclsidIn );
  41. STDMETHOD( SetClassType )( LPCLSID pclsidIn );
  42. // IPrivatePostCfgResource
  43. STDMETHOD( SetEntry )( CResourceEntry * presentryIn );
  44. }; // class CPreCreateServices