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.

36 lines
1.0 KiB

  1. #pragma once
  2. #include "stdafx.h"
  3. #include "netconp.h"
  4. class ATL_NO_VTABLE CInternetGateway :
  5. public CComObjectRootEx <CComMultiThreadModel>,
  6. public IInternetGateway
  7. {
  8. public:
  9. BEGIN_COM_MAP(CInternetGateway)
  10. COM_INTERFACE_ENTRY(IInternetGateway)
  11. END_COM_MAP()
  12. CInternetGateway();
  13. // IInternetGateway
  14. STDMETHODIMP GetMediaType(NETCON_MEDIATYPE* pMediaType);
  15. STDMETHODIMP GetLocalAdapterGUID(GUID* pGuid);
  16. STDMETHODIMP GetService(SAHOST_SERVICES ulService, IUPnPService**);
  17. STDMETHODIMP GetUniqueDeviceName(BSTR* pUniqueDeviceName);
  18. HRESULT SetMediaType(NETCON_MEDIATYPE MediaType);
  19. HRESULT SetLocalAdapterGUID(GUID* pGuid);
  20. HRESULT SetService(ULONG ulService, IUPnPService* pService);
  21. HRESULT SetUniqueDeviceName(BSTR UniqueDeviceName);
  22. HRESULT FinalRelease();
  23. private:
  24. NETCON_MEDIATYPE m_MediaType;
  25. GUID m_LocalAdapterGUID;
  26. IUPnPService* m_Services[SAHOST_SERVICE_MAX];
  27. BSTR m_UniqueDeviceName;
  28. };