source: trunk/Utilities/Junctions/stdafx.h @ 937

Last change on this file since 937 was 350, checked in by roman, 9 years ago
File size: 3.2 KB
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2014
3// Created by Roman Ryltsov roman@alax.info
4//
5// A permission to use the source code is granted as long as reference to
6// source website http://alax.info is retained.
7
8#pragma once
9
10////////////////////////////////////////////////////////////
11// SDK
12
13#include "targetver.h"
14
15#define INLINE_HRESULT_FROM_WIN32
16#define _INC_WINDOWSX
17#define _WINSOCKAPI_ // We will want Winsock 2
18
19#include <stdio.h>
20#include <tchar.h>
21#include <math.h>
22#include <windows.h>
23#include <shellapi.h>
24#include <msxml2.h>
25
26////////////////////////////////////////////////////////////
27// ATL definitions
28
29#define _ATL_APARTMENT_THREADED
30//#define _ATL_FREE_THREADED
31#define _ATL_NO_AUTOMATIC_NAMESPACE
32#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
33#define _ATL_ALL_WARNINGS
34//#define ATL_NO_ASSERT_ON_DESTROY_NONEXISTENT_WINDOW
35
36#include "roatltrace.h" // Replacement for <atltrace.h>
37#include <atlbase.h>
38#include <atlcom.h>
39#include <atlwin.h>
40#include <atltypes.h>
41#include <atlsync.h>
42#include <atlfile.h>
43#include <atlpath.h>
44#include <atlcoll.h>
45#include <atlrx.h>
46//#include <atlctl.h>
47//#include <atlhost.h>
48
49using namespace ATL;
50using namespace ATL::ATLPath;
51
52////////////////////////////////////////////////////////////
53// WTL
54
55#define _WTL_NO_CSTRING
56#define _WTL_NO_WTYPES
57#define _WTL_NO_UNION_CLASSES
58#define _WTL_NEW_PAGE_NOTIFY_HANDLERS
59
60#undef _SYSINFOAPI_H_
61#include <atlapp.h>
62#define _SYSINFOAPI_H_
63
64#include <atlgdi.h>
65#include <atluser.h>
66#include <atlcrack.h>
67#include <atlctrls.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 REGISTRY_PRODUCTROOT    _T("SOFTWARE\\Alax.Info\\Utility")
79#define REGISTRY_FILEROOT               REGISTRY_PRODUCTROOT _T("\\Junctions")
80#define REGISTRY_ROOT                   REGISTRY_FILEROOT
81
82#include "roatlbase.h"
83#include "roatlvariants.h"
84#include "roatlcom.h"
85#include "roatlpersist.h"
86#include "roatlmisc.h"
87#include "roatlexceptionfilter.h"
88#include "rofiles.h"
89#include "rowtlapp.h"
90#include "rowtlcrack.h"
91#include "rodialogs.h"
92//#include "rocontrols.h"
93
94////////////////////////////////////////////////////////////
95// Common Controls
96
97#if defined _M_IX86
98  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
99#elif defined _M_IA64
100  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
101#elif defined _M_X64
102  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
103#else
104  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
105#endif
Note: See TracBrowser for help on using the repository browser.