source: trunk/DirectShowSpy/stdafx.h @ 937

Last change on this file since 937 was 432, checked in by roman, 7 years ago

VS2013 related updates; use of CSIDL_LOCAL_APPDATA instead of CSIDL_APPDATA for fallback log writes; added bitness and privilege indication in all captions

  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2008-2015
3// Created by Roman Ryltsov roman@alax.info, http://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
8// or otherwise (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. It is allowed to distribute
12// DirectShowSpy if only it is not registered with Windows by default and either
13// used privately, or registered on specific throubleshooting request. The advice applies
14// to hooking methods used by DirectShowSpy in general as well.
15
16#pragma once
17
18////////////////////////////////////////////////////////////
19// Windows
20
21#define STRICT
22#define INLINE_HRESULT_FROM_WIN32
23#define _INC_WINDOWSX
24#define _WINSOCK_DEPRECATED_NO_WARNINGS
25
26#include "targetver.h"
27
28////////////////////////////////////////////////////////////
29// ATL
30
31#define _ATL_APARTMENT_THREADED
32#define _ATL_NO_AUTOMATIC_NAMESPACE
33#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
34#define _ATL_ALL_WARNINGS
35//#define _ATL_ATTRIBUTES
36
37#include "roatltrace.h" // Replacement for <atltrace.h>
38#include <atlbase.h>
39#include <atlcom.h>
40#include <atlwin.h>
41#include <atltypes.h>
42#include <atlsync.h>
43#include <atlfile.h>
44#include <atlpath.h>
45#include <atlcoll.h>
46#include <atlrx.h>
47#include <atlctl.h>
48//#include <atlhost.h>
49
50using namespace ATL;
51using namespace ATL::ATLPath;
52
53////////////////////////////////////////////////////////////
54// WTL
55
56#define _SECURE_ATL     TRUE
57#define _WTL_NO_CSTRING
58#define _WTL_NO_WTYPES
59#define _WTL_NO_UNION_CLASSES
60#define _WTL_NEW_PAGE_NOTIFY_HANDLERS
61
62#include <atlapp.h>
63#include <atlgdi.h>
64#include <atluser.h>
65#include <atlcrack.h>
66#include <atlctrls.h>
67#include <shellapi.h>
68#include <atlctrlx.h>
69#include <atlmisc.h>
70#include <atlframe.h>
71#include <atldlgs.h>
72
73using namespace WTL;
74
75////////////////////////////////////////////////////////////
76// Alax.Info ATL/WTL
77
78#define DIRECTSHOWSPY
79
80#define REGISTRY_PRODUCTROOT    _T("SOFTWARE\\Alax.Info\\Utility")
81#define REGISTRY_FILEROOT               REGISTRY_PRODUCTROOT _T("\\DirectShowSpy")
82#define REGISTRY_ROOT                   REGISTRY_FILEROOT
83
84#include "roatlbase.h"
85#include "roatlvariants.h"
86#include "roatlcollections.h"
87#include "roatlcom.h"
88#include "roatlpersist.h"
89#include "roatlmisc.h"
90#include "roatlexceptionfilter.h"
91#include "rowtlapp.h"
92#include "rowtlcrack.h"
93#include "rodialogs.h"
94#include "rocontrols.h"
95
96////////////////////////////////////////////////////////////
97// Common Controls
98
99#if defined _M_IX86
100  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
101#elif defined _M_IA64
102  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
103#elif defined _M_X64
104  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
105#else
106  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
107#endif
Note: See TracBrowser for help on using the repository browser.