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.

64 lines
1.5 KiB

  1. // SPortMap.cpp : Implementation of CStaticPortMapping
  2. #include "stdafx.h"
  3. #pragma hdrstop
  4. #include "NATUPnP.h"
  5. #include "SPortMap.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CStaticPortMapping
  8. STDMETHODIMP CStaticPortMapping::get_ExternalIPAddress (BSTR *pVal)
  9. {
  10. return m_spDPM->get_ExternalIPAddress (pVal);
  11. }
  12. STDMETHODIMP CStaticPortMapping::get_Description(BSTR *pVal)
  13. {
  14. return m_spDPM->get_Description (pVal);
  15. }
  16. STDMETHODIMP CStaticPortMapping::get_ExternalPort(long *pVal)
  17. {
  18. return m_spDPM->get_ExternalPort (pVal);
  19. }
  20. STDMETHODIMP CStaticPortMapping::get_Protocol(BSTR *pVal)
  21. {
  22. return m_spDPM->get_Protocol (pVal);
  23. }
  24. STDMETHODIMP CStaticPortMapping::get_InternalPort(long *pVal)
  25. {
  26. return m_spDPM->get_InternalPort (pVal);
  27. }
  28. STDMETHODIMP CStaticPortMapping::get_InternalClient(BSTR *pVal)
  29. {
  30. return m_spDPM->get_InternalClient (pVal);
  31. }
  32. STDMETHODIMP CStaticPortMapping::get_Enabled(VARIANT_BOOL *pVal)
  33. {
  34. return m_spDPM->get_Enabled (pVal);
  35. }
  36. STDMETHODIMP CStaticPortMapping::EditInternalClient (BSTR bstrInternalClient)
  37. {
  38. return m_spDPM->EditInternalClient (bstrInternalClient);
  39. }
  40. STDMETHODIMP CStaticPortMapping::Enable (VARIANT_BOOL vb)
  41. {
  42. return m_spDPM->Enable (vb);
  43. }
  44. STDMETHODIMP CStaticPortMapping::EditDescription (BSTR bstrDescription)
  45. {
  46. return m_spDPM->EditDescription (bstrDescription);
  47. }
  48. STDMETHODIMP CStaticPortMapping::EditInternalPort (long lInternalPort)
  49. {
  50. return m_spDPM->EditInternalPort (lInternalPort);
  51. }