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

Last change on this file since 937 was 361, checked in by roman, 8 years ago

VS2012 update and extended printout with EnumDisplayMonitors? data

File size: 3.4 KB
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Alax.Info, 2006-2015
3// http://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// Created by Roman Ryltsov roman@alax.info
9
10#pragma once
11
12////////////////////////////////////////////////////////////
13// Windows definitions
14
15//#define STRICT
16#define WINVER                                          0x0501  // Windows XP
17#define _WIN32_WINNT                            0x0501  // Windows XP
18#define _WIN32_WINDOWS                          0x0410  // Windows 98
19#define _WIN32_IE                                       0x0501  // Internet Explorer 5.01
20#define _RICHEDIT_VER                           0x0200  // RichEdit 2.0
21#define INLINE_HRESULT_FROM_WIN32
22
23////////////////////////////////////////////////////////////
24// ATL definitions
25
26#define _ATL_APARTMENT_THREADED
27#define _ATL_NO_AUTOMATIC_NAMESPACE
28#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
29#define _ATL_ALL_WARNINGS
30#define _ATL_ATTRIBUTES
31
32//#include "roatltrace.h" // Replacement for <atltrace.h>
33#include <atlbase.h>
34#include <atlcom.h>
35#include <atlwin.h>
36#include <atltypes.h>
37#include <atlsync.h>
38#include <atlfile.h>
39#include <atlpath.h>
40#include <atlcoll.h>
41#include <atlrx.h>
42#include <atlctl.h>
43#include <atlhost.h>
44
45using namespace ATL;
46using namespace ATL::ATLPath;
47
48// NOTE: This is here only to tell VC7 Class Wizard this is an ATL project
49#ifdef ___VC7_CLWIZ_ONLY___
50CComModule
51CExeModule
52#endif // ___VC7_CLWIZ_ONLY___
53
54////////////////////////////////////////////////////////////
55// WTL definitions
56
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#undef _SYSINFOAPI_H_
63#include <atlapp.h>
64#define _SYSINFOAPI_H_
65
66#include <atlgdi.h>
67#include <atluser.h>
68#include <atlcrack.h>
69#include <atlctrls.h>
70#include <atlctrlx.h>
71#include <atlmisc.h>
72#include <atlframe.h>
73#include <atldlgs.h>
74
75using namespace WTL;
76
77////////////////////////////////////////////////////////////
78// Alax.Info ATL/WTL
79
80//#define REGISTRY_PRODUCTROOT  _T("SOFTWARE\\Alax.Info\\...")
81//#define REGISTRY_FILEROOT             REGISTRY_PRODUCTROOT
82//#define REGISTRY_ROOT                 REGISTRY_FILEROOT
83
84//#include "roatlbase.h"
85//#include "roatlvariants.h"
86//#include "roatlcom.h"
87//#include "roatlpersist.h"
88//#include "roatlmisc.h"
89//#include "roatlexceptionfilter.h"
90//#include "rowtlapp.h"
91//#include "rowtlcrack.h"
92//#include "rodialogs.h"
93//#include "rocontrols.h"
94
95////////////////////////////////////////////////////////////
96// Common Controls
97
98#if defined _M_IX86
99  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
100#elif defined _M_IA64
101  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
102#elif defined _M_X64
103  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
104#else
105  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
106#endif
Note: See TracBrowser for help on using the repository browser.