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.

57 lines
1.8 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // PostCreateServices.h
  7. //
  8. // Description:
  9. // PostCreateServices 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 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 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. // IClusCfgResourcePostCreate
  37. STDMETHOD( ChangeName )( LPCWSTR pcszNameIn );
  38. STDMETHOD( SendResourceControl )( DWORD dwControlCode,
  39. LPVOID lpInBuffer,
  40. DWORD cbInBufferSize,
  41. LPVOID lpOutBuffer,
  42. DWORD cbOutBufferSize,
  43. LPDWORD lpcbBytesReturned
  44. );
  45. // IPrivatePostCfgResource
  46. STDMETHOD( SetEntry )( CResourceEntry * presentryIn );
  47. }; //*** class CPostCreateServices