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.

78 lines
2.2 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__B0EDF157_910A_11D2_B632_00C04F79498E__INCLUDED_)
  5. #define AFX_STDAFX_H__B0EDF157_910A_11D2_B632_00C04F79498E__INCLUDED_
  6. #pragma once
  7. #pragma warning(disable: 4786) // identifier truncated in debug info
  8. #define STRICT
  9. #ifndef _WIN32_WINNT
  10. #define _WIN32_WINNT 0x0500
  11. #endif
  12. //#define _ATL_APARTMENT_THREADED
  13. #define REGISTER_CANONICAL_TUNING_SPACES
  14. #define ENABLE_WINDOWLESS_SUPPORT
  15. #include <atlbase.h>
  16. //You may derive a class from CComModule and use it if you want to override
  17. //something, but do not change the name of _Module
  18. extern CComModule _Module;
  19. #include <atlcom.h>
  20. #include <atlctl.h>
  21. #include <atltmp.h>
  22. #include <winreg.h>
  23. #include <comcat.h>
  24. #include <objsafe.h>
  25. #ifndef TUNING_MODEL_ONLY
  26. #include <urlmon.h>
  27. #include <shlguid.h>
  28. #endif
  29. #include <algorithm>
  30. #include <functional>
  31. #include <utility>
  32. #include <vector>
  33. #include <list>
  34. #include <map>
  35. #include <comdef.h>
  36. #include <w32extend.h>
  37. #ifndef TUNING_MODEL_ONLY
  38. #include <dsextend.h>
  39. #endif
  40. #include <objreghelp.h>
  41. #include <regbag.h>
  42. #include <MSVidCtl.h>
  43. namespace MSVideoControl {
  44. typedef CComQIPtr<IMSVidCtl> PQVidCtl;
  45. };
  46. #ifndef TUNING_MODEL_ONLY
  47. using namespace MSVideoControl;
  48. #endif
  49. #include <Tuner.h>
  50. namespace BDATuningModel {
  51. typedef CComQIPtr<ITuningSpaces> PQTuningSpaces;
  52. typedef CComQIPtr<ITuningSpace> PQTuningSpace;
  53. typedef CComQIPtr<ITuneRequest> PQTuneRequest;
  54. typedef CComQIPtr<IBroadcastEvent> PQBroadcastEvent;
  55. };
  56. using namespace BDATuningModel;
  57. #define ENCRYPT_NEEDED 1
  58. #include "resource.h"
  59. // REV2: this limit should be an non-script accessible property in the tuning space container
  60. // this prevents DNOS attacks from filling the registry/disk with huge tuning space properties
  61. #define MAX_BSTR_SIZE 1024
  62. #define CHECKBSTRLIMIT(x) if (::SysStringByteLen(x) > MAX_BSTR_SIZE) { \
  63. return HRESULT_FROM_WIN32(ERROR_DS_OBJ_TOO_LARGE); \
  64. }
  65. #endif // !defined(AFX_STDAFX_H__B0EDF157_910A_11D2_B632_00C04F79498E__INCLUDED)
  66. // end of file - stdafx.h