| 1 |
#pragma once |
| 2 |
|
| 3 |
#ifndef _SECURE_ATL |
| 4 |
#define _SECURE_ATL 1 |
| 5 |
#endif |
| 6 |
|
| 7 |
#ifndef VC_EXTRALEAN |
| 8 |
#define VC_EXTRALEAN |
| 9 |
#endif |
| 10 |
|
| 11 |
#include "targetver.h" |
| 12 |
|
| 13 |
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS |
| 14 |
|
| 15 |
#define _AFX_ALL_WARNINGS |
| 16 |
|
| 17 |
#include <afxwin.h> |
| 18 |
#include <afxext.h> |
| 19 |
|
| 20 |
#include <afxdisp.h> |
| 21 |
|
| 22 |
#ifndef _AFX_NO_OLE_SUPPORT |
| 23 |
#include <afxdtctl.h> |
| 24 |
#endif |
| 25 |
#ifndef _AFX_NO_AFXCMN_SUPPORT |
| 26 |
#include <afxcmn.h> |
| 27 |
#endif |
| 28 |
|
| 29 |
#ifdef _UNICODE |
| 30 |
#if defined _M_IX86 |
| 31 |
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") |
| 32 |
#elif defined _M_IA64 |
| 33 |
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") |
| 34 |
#elif defined _M_X64 |
| 35 |
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") |
| 36 |
#else |
| 37 |
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") |
| 38 |
#endif |
| 39 |
#endif |
| 40 |
|
| 41 |
////////////////////////////////////////////////////////////////////////// |
| 42 |
|
| 43 |
#include <afxmt.h> // For CCriticalSection |
| 44 |
#include <ws2tcpip.h> |
| 45 |
#include <iphlpapi.h> |
| 46 |
#include <pdh.h> |
| 47 |
#include <gdiplus.h> |
| 48 |
#include <shlwapi.h> |
| 49 |
#include <process.h> |
| 50 |
#include <algorithm> |
| 51 |
#include <vector> |
| 52 |
#include <memory> // For shared_ptr |
| 53 |
#include <atlimage.h> // For save image |
| 54 |
|
| 55 |
#include "resource.h" |
| 56 |
#include "../SocketX/SocketX.h" |
| 57 |
#include "../WcsAPI/WcsAPI.h" |
| 58 |
|
| 59 |
#include "Config.h" |
| 60 |
#include "SortArray.h" |
| 61 |
#include "Types.h" |
| 62 |
#include "Macros.h" |
| 63 |
#include "ImageEx.h" |
| 64 |
#include "PictureEx.h" |
| 65 |
#include "MsgBox.h" |
| 66 |
#include "LogTemplate.h" |
| 67 |
|
| 68 |
#pragma comment(lib, "iphlpapi") |
| 69 |
#pragma comment(lib, "pdh") |
| 70 |
#pragma comment(lib, "gdiplus") |
| 71 |
|
| 72 |
#ifdef _DEBUG |
| 73 |
#pragma comment(lib, "../Debug/SocketX") |
| 74 |
#pragma comment(lib, "../Debug/WcsAPI") |
| 75 |
#else |
| 76 |
#pragma comment(lib, "../Release/SocketX") |
| 77 |
#pragma comment(lib, "../Release/WcsAPI") |
| 78 |
#endif |
| 79 |
|
| 80 |
////////////////////////////////////////////////////////////////////////// |
| 81 |
|
| 82 |
|