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.

58 lines
1.7 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // PostCreateServices.h
  7. //
  8. // Description:
  9. // PostCreateServices implementation.
  10. //
  11. // Maintained By:
  12. // Geoffrey Pease (GPease) 15-JUN-2000
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. class
  17. CPostCreateServices
  18. : public IClusCfgResourcePostCreate
  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. CPostCreateServices( void );
  28. ~CPostCreateServices( 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. // IClusCfgResourcePostCreate
  39. STDMETHOD( ChangeName )( LPCWSTR pcszNameIn );
  40. STDMETHOD( SendResourceControl )( DWORD dwControlCode,
  41. LPVOID lpInBuffer,
  42. DWORD cbInBufferSize,
  43. LPVOID lpOutBuffer,
  44. DWORD cbOutBufferSize,
  45. LPDWORD lpcbBytesReturned
  46. );
  47. // IPrivatePostCfgResource
  48. STDMETHOD( SetEntry )( CResourceEntry * presentryIn );
  49. }; // class CPostCreateServices