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.

53 lines
1.5 KiB

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently,
  3. // but are changed infrequently
  4. #if !defined(AFX_STDAFX_H__3055FA29_74C3_4E43_A83A_2054CA60B628__INCLUDED_)
  5. #define AFX_STDAFX_H__3055FA29_74C3_4E43_A83A_2054CA60B628__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define STRICT
  10. #ifndef _WIN32_WINNT
  11. #define _WIN32_WINNT 0x0400
  12. #endif
  13. #define _ATL_APARTMENT_THREADED
  14. #include <atlbase.h>
  15. //You may derive a class from CComModule and use it if you want to override
  16. //something, but do not change the name of _Module
  17. extern CComModule _Module;
  18. #include <atlcom.h>
  19. //{{AFX_INSERT_LOCATION}}
  20. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  21. #include <netcon.h>
  22. #include <upnp.h>
  23. #include <NATUPnP.h>
  24. #include <netconp.h>
  25. #include "natupnpp.h"
  26. #include "NATUtils.h"
  27. #define NAT_API_ENTER try {
  28. #define NAT_API_LEAVE } catch (...) { return DISP_E_EXCEPTION; }
  29. #include <eh.h>
  30. class NAT_SEH_Exception
  31. {
  32. private:
  33. unsigned int m_uSECode;
  34. public:
  35. NAT_SEH_Exception(unsigned int uSECode) : m_uSECode(uSECode) {}
  36. NAT_SEH_Exception() {}
  37. ~NAT_SEH_Exception() {}
  38. unsigned int getSeHNumber() { return m_uSECode; }
  39. };
  40. void __cdecl nat_trans_func( unsigned int uSECode, EXCEPTION_POINTERS* pExp );
  41. void EnableNATExceptionHandling();
  42. void DisableNATExceptionHandling();
  43. #endif // !defined(AFX_STDAFX_H__3055FA29_74C3_4E43_A83A_2054CA60B628__INCLUDED)