• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2009 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 // Modify the following defines if you have to target a platform prior to the ones specified below.
20 // Refer to MSDN for the latest info on corresponding values for different platforms.
21 #ifndef WINVER                // Specifies that the minimum required platform is Windows Vista.
22 #define WINVER 0x0500         // Change this to the appropriate value to target other versions of Windows.
23 #endif
24 
25 #ifndef _WIN32_WINNT          // Specifies that the minimum required platform is Windows Vista.
26 #define _WIN32_WINNT 0x0500   // Change this to the appropriate value to target other versions of Windows.
27 #endif
28 
29 #ifndef _WIN32_WINDOWS        // Specifies that the minimum required platform is Windows 98.
30 #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
31 #endif
32 
33 #ifndef _WIN32_IE               // Specifies that the minimum required platform is Internet Explorer 7.0.
34 #define _WIN32_IE 0x0600        // Change this to the appropriate value to target other versions of IE.
35 #endif
36 
37 #ifndef STRICT
38 #define STRICT
39 #endif
40 
41 #include <stdio.h>
42 #include <tchar.h>
43 
44 #define _ATL_STATIC_LIB_IMPL
45 #define _ATL_APARTMENT_THREADED
46 #define _ATL_NO_AUTOMATIC_NAMESPACE
47 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS      // some CString constructors will be explicit
48 #define _ATL_ALL_WARNINGS
49 
50 #include <windows.h>
51 #include <atlbase.h>
52 #include <algorithm>
53 #include <map>
54 #include <string>
55 
56 #include <initguid.h>
57 
58 #pragma warning(disable: 4200)
59 extern "C" {
60 #include <usbdi.h>
61 #include <Setupapi.h>
62 }
63 #pragma warning(default: 4200)
64 
65 extern "C" {
66 #include "..\api\adb_api.h"
67 }
68