source: trunk/DirectShowSpy/stdafx.h @ 267

Last change on this file since 267 was 267, checked in by roman, 10 years ago

Updated source code/copyright notice

  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2008-2014
3// Created by Roman Ryltsov roman@alax.info
4//
5// This source code is published to complement DirectShowSpy developer powertoy
6// and demonstrate the internal use of APIs and tricks powering the tool. It is
7// allowed to freely re-use the portions of the code in other projects, commercial or otherwise
8// (provided that you don’t pretend that you wrote the original tool).
9//
10// Please keep in mind that DirectShowSpy is a developer tool, it is strongly recommended
11// that it is not shipped with release grade software. The advise applies to hooking methods
12// used by DirectShowSpy in general as well.
13
14#pragma once
15
16////////////////////////////////////////////////////////////
17// Windows definitions
18
19#define STRICT
20#define INLINE_HRESULT_FROM_WIN32
21#define _INC_WINDOWSX
22
23#include "targetver.h"
24
25////////////////////////////////////////////////////////////
26// ATL definitions
27
28#define _ATL_APARTMENT_THREADED
29#define _ATL_NO_AUTOMATIC_NAMESPACE
30#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
31#define _ATL_ALL_WARNINGS
32//#define _ATL_ATTRIBUTES
33
34#include "roatltrace.h" // Replacement for <atltrace.h>
35#include <atlbase.h>
36#include <atlcom.h>
37#include <atlwin.h>
38#include <atltypes.h>
39#include <atlsync.h>
40#include <atlfile.h>
41#include <atlpath.h>
42#include <atlcoll.h>
43#include <atlrx.h>
44#include <atlctl.h>
45//#include <atlhost.h>
46
47using namespace ATL;
48using namespace ATL::ATLPath;
49
50////////////////////////////////////////////////////////////
51// WTL
52
53#define _SECURE_ATL     TRUE
54#define _WTL_NO_CSTRING
55#define _WTL_NO_WTYPES
56#define _WTL_NO_UNION_CLASSES
57#define _WTL_NEW_PAGE_NOTIFY_HANDLERS
58
59#include <atlapp.h>
60#include <atlgdi.h>
61#include <atluser.h>
62#include <atlcrack.h>
63#include <atlctrls.h>
64#include <shellapi.h>
65#include <atlctrlx.h>
66#include <atlmisc.h>
67#include <atlframe.h>
68#include <atldlgs.h>
69
70using namespace WTL;
71
72////////////////////////////////////////////////////////////
73// Alax.Info ATL/WTL
74
75#define REGISTRY_PRODUCTROOT    _T("SOFTWARE\\Alax.Info\\Utility")
76#define REGISTRY_FILEROOT               REGISTRY_PRODUCTROOT _T("\\DirectShowSpy")
77#define REGISTRY_ROOT                   REGISTRY_FILEROOT
78
79#include "roatlbase.h"
80#include "roatlvariants.h"
81#include "roatlcollections.h"
82#include "roatlcom.h"
83#include "roatlpersist.h"
84#include "roatlmisc.h"
85#include "roatlexceptionfilter.h"
86#include "rowtlapp.h"
87#include "rowtlcrack.h"
88#include "rodialogs.h"
89#include "rocontrols.h"
90
91////////////////////////////////////////////////////////////
92// Common Controls
93
94#if defined _M_IX86
95  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
96#elif defined _M_IA64
97  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
98#elif defined _M_X64
99  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
100#else
101  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
102#endif
Note: See TracBrowser for help on using the repository browser.