source: trunk/Utilities/MonitorInformation/stdafx.h @ 288

Last change on this file since 288 was 288, checked in by roman, 8 years ago
File size: 3.4 KB
Line 
1////////////////////////////////////////////////////////////
2// stdafx.h
3//
4// Copyright (C) Alax.Info, 2006-2008
5// http://alax.info
6//
7// A permission to use the source code is granted as long as reference to
8// source website http://alax.info is retained.
9//
10// Created by Roman Ryltsov roman@alax.info
11//
12// $Id: stdafx.h 21 2008-11-22 20:52:51Z alax $
13
14#pragma once
15
16////////////////////////////////////////////////////////////
17// Windows definitions
18
19//#define STRICT
20#define WINVER                                          0x0501  // Windows XP
21#define _WIN32_WINNT                            0x0501  // Windows XP
22#define _WIN32_WINDOWS                          0x0410  // Windows 98
23#define _WIN32_IE                                       0x0501  // Internet Explorer 5.01
24#define _RICHEDIT_VER                           0x0200  // RichEdit 2.0
25#define INLINE_HRESULT_FROM_WIN32
26
27////////////////////////////////////////////////////////////
28// ATL definitions
29
30#define _ATL_APARTMENT_THREADED
31#define _ATL_NO_AUTOMATIC_NAMESPACE
32#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
33#define _ATL_ALL_WARNINGS
34#define _ATL_ATTRIBUTES
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// NOTE: This is here only to tell VC7 Class Wizard this is an ATL project
53#ifdef ___VC7_CLWIZ_ONLY___
54CComModule
55CExeModule
56#endif // ___VC7_CLWIZ_ONLY___
57
58////////////////////////////////////////////////////////////
59// WTL definitions
60
61#define _WTL_NO_CSTRING
62#define _WTL_NO_WTYPES
63#define _WTL_NO_UNION_CLASSES
64#define _WTL_NEW_PAGE_NOTIFY_HANDLERS
65
66#include <atlapp.h>
67#include <atlgdi.h>
68#include <atluser.h>
69#include <atlcrack.h>
70#include <atlctrls.h>
71#include <atlctrlx.h>
72#include <atlmisc.h>
73#include <atlframe.h>
74#include <atldlgs.h>
75
76using namespace WTL;
77
78////////////////////////////////////////////////////////////
79// Alax.Info ATL/WTL
80
81//#define REGISTRY_PRODUCTROOT  _T("SOFTWARE\\Alax.Info\\...")
82//#define REGISTRY_FILEROOT             REGISTRY_PRODUCTROOT
83//#define REGISTRY_ROOT                 REGISTRY_FILEROOT
84
85//#include "roatlbase.h"
86//#include "roatlvariants.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.