Kinetis Bootloader Host  2.0.0
Host Tools for Kinetis devices
apps/KinetisFlashTool/KinetisFlashTool/stdafx.h
1 
2 // stdafx.h : include file for standard system include files,
3 // or project specific include files that are used frequently,
4 // but are changed infrequently
5 
6 #pragma once
7 
8 #ifndef VC_EXTRALEAN
9 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
10 #endif
11 
12 #include "targetver.h"
13 
14 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
15 
16 // turns off MFC's hiding of some common and often safely ignored warning messages
17 #define _AFX_ALL_WARNINGS
18 
19 #include <afxwin.h> // MFC core and standard components
20 #include <afxext.h> // MFC extensions
21 
22 #include <afxdisp.h> // MFC Automation classes
23 
24 #ifndef _AFX_NO_OLE_SUPPORT
25 #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
26 #endif
27 #ifndef _AFX_NO_AFXCMN_SUPPORT
28 #include <afxcmn.h> // MFC support for Windows Common Controls
29 #endif // _AFX_NO_AFXCMN_SUPPORT
30 
31 #include <afxcontrolbars.h> // MFC support for ribbons and control bars
32 
33 // This macro is the same as IMPLEMENT_OLECREATE, except it passes TRUE
34 // for the bMultiInstance parameter to the COleObjectFactory constructor.
35 // We want a separate instance of this application to be launched for
36 // each automation proxy object requested by automation controllers.
37 #ifndef IMPLEMENT_OLECREATE2
38 #define IMPLEMENT_OLECREATE2(class_name, external_name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
39  AFX_DATADEF COleObjectFactory class_name::factory(class_name::guid, RUNTIME_CLASS(class_name), TRUE, \
40  _T(external_name)); \
41  const AFX_DATADEF GUID class_name::guid = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } };
42 #endif // IMPLEMENT_OLECREATE2
43 
44 #ifdef _UNICODE
45 #if defined _M_IX86
46 #pragma comment( \
47  linker, \
48  "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
49 #elif defined _M_X64
50 #pragma comment( \
51  linker, \
52  "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
53 #else
54 #pragma comment( \
55  linker, \
56  "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
57 #endif
58 #endif
59 
60 #define USER_MS_UPDATA_LOG WM_USER + 100
61 #define USER_MS_CONNECTION_CHANGE WM_USER + 101
62 #define USER_MS_UPDATA_STATUS WM_USER + 102
63 #define USER_MS_UPDATA_PROGRESS WM_USER + 103
64 
65 #include <InitGuid.h>
66 // GUID interface for COM port device (86E0D1E0-8089-11D0-9CE4-08003E301F73)
67 DEFINE_GUID(GUID_DEVINTERFACE_COMPORT, 0x86E0D1E0, 0x8089, 0x11D0, 0x9C, 0xE4, 0x08, 0x00, 0x3E, 0x30, 0x1F, 0x73);
68 // GUID interface for USB device (A5DCBF10-6530-11D2-901F-00C04FB951ED)
69 DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE, 0xA5DCBF10, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED);
70 // GUID device class for ports (4d36E978-E325-11CE-BFC1-08002BE10318)
71 DEFINE_GUID(GUID_DEVCLASS_PORTS, 0x4d36E978, 0xE325, 0x11CE, 0xBF, 0xC1, 0x08, 0x00, 0x2B, 0xE1, 0x03, 0x18);
72 // GUID device class for USB (36FC9E60-C465-11CF-8056-444553540000)
73 DEFINE_GUID(GUID_DEVCLASS_USB, 0x36FC9E60, 0xC465, 0x11CF, 0x80, 0x56, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00);