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.

45 lines
1.1 KiB

  1. // UPnPNAT.h : Declaration of the CUPnPNAT
  2. #ifndef __UPNPNAT_H_
  3. #define __UPNPNAT_H_
  4. #include <upnp.h>
  5. #include <netcon.h>
  6. #include "hncres.h"
  7. extern void EnableNATExceptionHandling();
  8. extern void DisableNATExceptionHandling();
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CUPnPNAT
  11. class ATL_NO_VTABLE CUPnPNAT :
  12. public CComObjectRootEx<CComSingleThreadModel>,
  13. public CComCoClass<CUPnPNAT, &CLSID_UPnPNAT>,
  14. public IDispatchImpl<IUPnPNAT, &IID_IUPnPNAT, &LIBID_NATUPNPLib>
  15. {
  16. public:
  17. CUPnPNAT()
  18. {
  19. }
  20. DECLARE_REGISTRY_RESOURCEID(IDR_UPNPNAT)
  21. DECLARE_PROTECT_FINAL_CONSTRUCT()
  22. BEGIN_COM_MAP(CUPnPNAT)
  23. COM_INTERFACE_ENTRY(IUPnPNAT)
  24. COM_INTERFACE_ENTRY(IDispatch)
  25. END_COM_MAP()
  26. // IUPnPNAT
  27. public:
  28. STDMETHOD(get_StaticPortMappingCollection) (/*[out, retval]*/ IStaticPortMappingCollection ** ppSPMC);
  29. STDMETHOD(get_DynamicPortMappingCollection)(/*[out, retval]*/ IDynamicPortMappingCollection ** ppDPMC);
  30. STDMETHOD(get_NATEventManager) (/*[out, retval]*/ INATEventManager ** ppNEM);
  31. // CUPnPNAT
  32. public:
  33. };
  34. #endif //__UPNPNAT_H_