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.

56 lines
1.1 KiB

  1. // AlgSetup.h : Declaration of the CAlgSetup
  2. #pragma once
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CAlgSetup
  5. //
  6. class ATL_NO_VTABLE CAlgSetup :
  7. public CComObjectRootEx<CComSingleThreadModel>,
  8. public CComCoClass<CAlgSetup, &CLSID_AlgSetup>,
  9. public IDispatchImpl<IAlgSetup, &IID_IAlgSetup, &LIBID_NETCONLib>
  10. {
  11. public:
  12. DECLARE_REGISTRY(CAlgSetup, TEXT("Alg.AlgSetup.1"), TEXT("Alg.AlgSetup"), -1, THREADFLAGS_BOTH)
  13. DECLARE_NOT_AGGREGATABLE(CAlgSetup)
  14. DECLARE_PROTECT_FINAL_CONSTRUCT()
  15. BEGIN_COM_MAP(CAlgSetup)
  16. COM_INTERFACE_ENTRY(IAlgSetup)
  17. COM_INTERFACE_ENTRY(IDispatch)
  18. END_COM_MAP()
  19. //
  20. // IAlgSetup
  21. //
  22. public:
  23. STDMETHODIMP Add(
  24. IN BSTR pszProgID,
  25. IN BSTR pszPublisher,
  26. IN BSTR pszProduct,
  27. IN BSTR pszVersion,
  28. IN short nProtocol,
  29. IN BSTR pszPorts
  30. );
  31. STDMETHODIMP Remove(
  32. IN BSTR pszProgID
  33. );
  34. private:
  35. bool
  36. ArePortsAlreadyAssign(
  37. IN LPCTSTR pszPort,
  38. OUT BSTR* pszOverlapping
  39. );
  40. };