PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/reporting/crashsender/stdafx.h

http://crashrpt.googlecode.com/
C++ Header | 119 lines | 82 code | 21 blank | 16 comment | 1 complexity | 3fd4c9c9301d9eebf49b83309b9be19c MD5 | raw file
  1/************************************************************************************* 
  2This file is a part of CrashRpt library.
  3Copyright (c) 2003-2013 The CrashRpt project authors. All Rights Reserved.
  4
  5Use of this source code is governed by a BSD-style license
  6that can be found in the License.txt file in the root of the source
  7tree. All contributing project authors may
  8be found in the Authors.txt file in the root of the source tree.
  9***************************************************************************************/
 10
 11// stdafx.h : include file for standard system include files,
 12//  or project specific include files that are used frequently, but
 13//      are changed infrequently
 14//
 15
 16#pragma once
 17
 18// Change these values to use different versions
 19#define WINVER		0x0501
 20#define _WIN32_WINNT	0x0501
 21#define _WIN32_IE	0x0600
 22#define _RICHEDIT_VER	0x0200
 23
 24typedef __int64 off_t, _off_t;
 25#define _OFF_T_DEFINED
 26
 27#include <errno.h>
 28#include <winsock2.h>
 29#include <ws2tcpip.h>
 30
 31#include <atldef.h>
 32#if ( _ATL_VER < 0x0710 )
 33#define _WTL_SUPPORT_SDK_ATL3 // Support of VC++ Express 2005 and ATL 3.0
 34#endif
 35
 36
 37// Support for VS2005 Express & SDK ATL
 38#ifdef _WTL_SUPPORT_SDK_ATL3
 39#define _CRT_SECURE_NO_DEPRECATE
 40#define _CRT_NON_CONFORMING_SWPRINTFS
 41#pragma conform(forScope, off)
 42#pragma comment(linker, "/NODEFAULTLIB:atlthunk.lib")  
 43#endif // _WTL_SUPPORT_SDK_ATL3
 44
 45#include <atlbase.h>
 46
 47// Support for VS2005 Express & SDK ATL
 48#if defined(_WTL_SUPPORT_SDK_ATL3) && !defined(_WTLSUP_INCLUDED)
 49#define _WTLSUP_INCLUDED
 50namespace ATL
 51{
 52    inline void * __stdcall __AllocStdCallThunk()
 53    {
 54        return ::HeapAlloc(::GetProcessHeap(), 0, sizeof(_stdcallthunk));
 55    }
 56
 57    inline void __stdcall __FreeStdCallThunk(void *p)
 58    {
 59        ::HeapFree(::GetProcessHeap(), 0, p);
 60    }
 61};
 62#endif // _WTL_SUPPORT_SDK_ATL3
 63
 64#include <atlapp.h>
 65
 66extern CAppModule _Module;
 67
 68#include <atlwin.h>
 69
 70#include <atlframe.h>
 71#include <atlctrls.h>
 72#include <atldlgs.h>
 73#include <atlctrlx.h>
 74
 75#define _WTL_USE_CSTRING
 76#include <atlmisc.h>
 77
 78#include <string>
 79#include <vector>
 80#include <map>
 81#include <set>
 82#include <iostream>
 83#include <fstream>
 84
 85#include "dbghelp.h"
 86#include <wininet.h>
 87#include <mapi.h>          // MAPI function defs
 88#include <sys/stat.h>
 89#include <shellapi.h>
 90#include <Windns.h>
 91#include <Wspiapi.h>
 92#include <time.h>
 93#include <Psapi.h>
 94#include <tlhelp32.h>
 95
 96#if _MSC_VER<1400
 97#define _TCSCPY_S(strDestination, numberOfElements, strSource) _tcscpy(strDestination, strSource)
 98#define _TCSNCPY_S(strDest, sizeInBytes, strSource, count) _tcsncpy(strDest, strSource, count)
 99#define STRCPY_S(strDestination, numberOfElements, strSource) strcpy(strDestination, strSource)
100#define _TFOPEN_S(_File, _Filename, _Mode) _File = _tfopen(_Filename, _Mode);
101#else
102#define _TCSCPY_S(strDestination, numberOfElements, strSource) _tcscpy_s(strDestination, numberOfElements, strSource)
103#define _TCSNCPY_S(strDest, sizeInBytes, strSource, count) _tcsncpy_s(strDest, sizeInBytes, strSource, count)
104#define STRCPY_S(strDestination, numberOfElements, strSource) strcpy_s(strDestination, numberOfElements, strSource)
105#define _TFOPEN_S(_File, _Filename, _Mode) _tfopen_s(&(_File), _Filename, _Mode);
106#endif
107
108#if _MSC_VER>=1400
109#if defined _M_IX86
110#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
111#elif defined _M_IA64
112#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
113#elif defined _M_X64
114#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
115#else
116#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
117#endif
118
119#endif