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.

65 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: S A P O B J . H
  7. //
  8. // Contents: Declaration of SAP Agent configuration object.
  9. //
  10. // Notes:
  11. //
  12. // Author: jeffspr 31 May 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include <ncxbase.h>
  17. #include <nceh.h>
  18. #include <notifval.h>
  19. #include "resource.h"
  20. class ATL_NO_VTABLE CSAPCfg :
  21. public CComObjectRoot,
  22. public CComCoClass<CSAPCfg, &CLSID_CSAPCfg>,
  23. public INetCfgComponentControl,
  24. public INetCfgComponentSetup
  25. {
  26. public:
  27. CSAPCfg();
  28. ~CSAPCfg();
  29. BEGIN_COM_MAP(CSAPCfg)
  30. COM_INTERFACE_ENTRY(INetCfgComponentControl)
  31. COM_INTERFACE_ENTRY(INetCfgComponentSetup)
  32. END_COM_MAP()
  33. // DECLARE_NOT_AGGREGATABLE(CSAPCfg)
  34. // Remove the comment from the line above if you don't want your object to
  35. // support aggregation. The default is to support it
  36. DECLARE_REGISTRY_RESOURCEID(IDR_REG_SAPCFG)
  37. // INetCfgComponentControl
  38. STDMETHOD (Initialize) (
  39. IN INetCfgComponent* pIComp,
  40. IN INetCfg* pINetCfg,
  41. IN BOOL fInstalling);
  42. STDMETHOD (ApplyRegistryChanges) ();
  43. STDMETHOD (ApplyPnpChanges) (
  44. IN INetCfgPnpReconfigCallback* pICallback) { return S_OK; }
  45. STDMETHOD (CancelChanges) ();
  46. STDMETHOD (Validate) ();
  47. // INetCfgComponentSetup
  48. STDMETHOD (ReadAnswerFile) (PCWSTR pszAnswerFile,
  49. PCWSTR pszAnswerSection);
  50. STDMETHOD (Upgrade) (DWORD,DWORD);
  51. STDMETHOD (Install) (DWORD);
  52. STDMETHOD (Removing) ();
  53. // Private state info
  54. private:
  55. INetCfgComponent * m_pncc; // Place to keep my component
  56. INetCfg * m_pnc; // Place to keep my component
  57. };