source: trunk/Utilities/LogicalProcessorInformation/stdafx.h @ 795

Last change on this file since 795 was 795, checked in by roman, 4 years ago
File size: 3.0 KB
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2006-2017
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// Windows definitions
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 <windows.h>
20#include <shellapi.h>
21
22////////////////////////////////////////////////////////////
23// ATL definitions
24
25#define _ATL_APARTMENT_THREADED
26#define _ATL_NO_AUTOMATIC_NAMESPACE
27#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
28#define _ATL_ALL_WARNINGS
29//#define ATL_NO_ASSERT_ON_DESTROY_NONEXISTENT_WINDOW
30
31#include "roatltrace.h" // Replacement for <atltrace.h>
32#include <atlbase.h>
33#include <atlcom.h>
34#include <atlwin.h>
35#include <atltypes.h>
36#include <atlsync.h>
37#include <atlfile.h>
38#include <atlpath.h>
39#include <atlcoll.h>
40#include <atlrx.h>
41#include <atlctl.h>
42#include <atlhost.h>
43
44using namespace ATL;
45using namespace ATL::ATLPath;
46
47////////////////////////////////////////////////////////////
48// WTL
49
50#define _WTL_NO_CSTRING
51#define _WTL_NO_WTYPES
52#define _WTL_NO_UNION_CLASSES
53#define _WTL_NEW_PAGE_NOTIFY_HANDLERS
54
55#include <atlapp.h>
56#include <atlgdi.h>
57#include <atluser.h>
58#include <atlcrack.h>
59#include <atlctrls.h>
60#include <atlctrlx.h>
61#include <atlmisc.h>
62#include <atlframe.h>
63#include <atldlgs.h>
64
65using namespace WTL;
66
67////////////////////////////////////////////////////////////
68// Alax.Info ATL/WTL
69
70#define REGISTRY_PRODUCTROOT    _T("SOFTWARE\\Alax.Info\\Utility\\LogicalProcessorInformation")
71#define REGISTRY_FILEROOT               REGISTRY_PRODUCTROOT
72#define REGISTRY_ROOT                   REGISTRY_FILEROOT
73
74#include "roatlbase.h"
75#include "roatlvariants.h"
76#include "roatlcom.h"
77#include "roatlpersist.h"
78#include "roatlmisc.h"
79#include "roatlexceptionfilter.h"
80#include "rowtlapp.h"
81#include "rowtlcrack.h"
82#include "rodialogs.h"
83#include "rocontrols.h"
84
85////////////////////////////////////////////////////////////
86// Common Controls
87
88#if defined _M_IX86
89  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
90#elif defined _M_IA64
91  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
92#elif defined _M_X64
93  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
94#else
95  #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
96#endif
Note: See TracBrowser for help on using the repository browser.