2009-10-07 16:45:14 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 2009 Kimmo Pekkola
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2012-01-23 06:36:15 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2009-10-07 16:45:14 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __STDAFX_H__
|
|
|
|
#define __STDAFX_H__
|
|
|
|
|
|
|
|
#define _WIN32_IE 0x0600
|
|
|
|
|
|
|
|
#define _CRTDBG_MAP_ALLOC
|
|
|
|
#include <crtdbg.h>
|
|
|
|
|
|
|
|
// WINAPI
|
2012-01-23 12:33:17 +00:00
|
|
|
#define WIN32_LEAN_AND_MEAN
|
2011-03-29 21:19:02 +00:00
|
|
|
#include <ws2tcpip.h>
|
2009-10-07 16:45:14 +00:00
|
|
|
#include <windows.h>
|
2011-08-28 10:58:26 +00:00
|
|
|
#include <windowsx.h>
|
2012-01-23 12:33:17 +00:00
|
|
|
#include <ole2.h>
|
2009-10-07 16:45:14 +00:00
|
|
|
#include <gdiplus.h>
|
2011-04-08 18:14:32 +00:00
|
|
|
#include <dwmapi.h>
|
2009-10-07 16:45:14 +00:00
|
|
|
#include <comdef.h>
|
|
|
|
#include <Iphlpapi.h>
|
|
|
|
#include <Mmsystem.h>
|
2012-01-23 12:33:17 +00:00
|
|
|
#include <Shellapi.h>
|
2009-10-07 16:45:14 +00:00
|
|
|
#include <shlobj.h>
|
2010-06-23 12:36:39 +00:00
|
|
|
#include <shlwapi.h>
|
2010-09-21 22:47:53 +00:00
|
|
|
#include <Wininet.h>
|
2009-10-07 16:45:14 +00:00
|
|
|
|
|
|
|
// STL
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2011-02-18 16:26:58 +00:00
|
|
|
#include <unordered_map>
|
|
|
|
#include <unordered_set>
|
2009-10-07 16:45:14 +00:00
|
|
|
#include <list>
|
2012-01-23 12:33:17 +00:00
|
|
|
#include <algorithm>
|
2009-10-07 16:45:14 +00:00
|
|
|
#include <ctime>
|
|
|
|
#include <cstdlib>
|
2012-01-23 12:33:17 +00:00
|
|
|
#include <cstdio>
|
2010-12-12 19:27:56 +00:00
|
|
|
#include <cctype>
|
2012-01-23 12:33:17 +00:00
|
|
|
#include <cmath>
|
|
|
|
#include <cerrno>
|
|
|
|
#include <cassert>
|
2009-10-07 16:45:14 +00:00
|
|
|
|
|
|
|
// RUNTIME
|
2010-09-21 22:47:53 +00:00
|
|
|
#include <process.h>
|
2009-10-07 16:45:14 +00:00
|
|
|
|
2012-02-20 09:37:46 +00:00
|
|
|
// ADDITIONAL MACRO
|
|
|
|
#define IsCtrlKeyDown() (GetKeyState(VK_CONTROL) < 0)
|
|
|
|
#define IsShiftKeyDown() (GetKeyState(VK_SHIFT) < 0)
|
|
|
|
#define IsAltKeyDown() (GetKeyState(VK_MENU) < 0)
|
|
|
|
|
2009-10-07 16:45:14 +00:00
|
|
|
#endif
|