12be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine/*
22be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine * Copyright (C) 2009 The Android Open Source Project
32be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine *
42be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine * Licensed under the Apache License, Version 2.0 (the "License");
52be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine * you may not use this file except in compliance with the License.
62be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine * You may obtain a copy of the License at
72be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine *
82be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine *      http://www.apache.org/licenses/LICENSE-2.0
92be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine *
102be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine * Unless required by applicable law or agreed to in writing, software
112be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine * distributed under the License is distributed on an "AS IS" BASIS,
122be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine * See the License for the specific language governing permissions and
142be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine * limitations under the License.
152be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine */
162be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
172be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#pragma once
182be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
192be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine// Modify the following defines if you have to target a platform prior to the ones specified below.
202be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine// Refer to MSDN for the latest info on corresponding values for different platforms.
212be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#ifndef WINVER                // Specifies that the minimum required platform is Windows Vista.
222be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#define WINVER 0x0500         // Change this to the appropriate value to target other versions of Windows.
232be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#endif
242be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
252be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#ifndef _WIN32_WINNT          // Specifies that the minimum required platform is Windows Vista.
262be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#define _WIN32_WINNT 0x0500   // Change this to the appropriate value to target other versions of Windows.
272be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#endif
282be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
292be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#ifndef _WIN32_WINDOWS        // Specifies that the minimum required platform is Windows 98.
302be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
312be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#endif
322be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
332be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#ifndef _WIN32_IE               // Specifies that the minimum required platform is Internet Explorer 7.0.
342be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#define _WIN32_IE 0x0600        // Change this to the appropriate value to target other versions of IE.
352be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#endif
362be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
372be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#ifndef STRICT
382be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#define STRICT
392be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#endif
402be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
412be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#include <stdio.h>
422be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#include <tchar.h>
432be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
442be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#define _ATL_STATIC_LIB_IMPL
452be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#define _ATL_APARTMENT_THREADED
462be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#define _ATL_NO_AUTOMATIC_NAMESPACE
472be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS      // some CString constructors will be explicit
482be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#define _ATL_ALL_WARNINGS
492be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
502be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#include <windows.h>
512be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#include <atlbase.h>
522be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
532be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#include <initguid.h>
542be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
552be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#pragma warning(disable: 4200)
562be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkineextern "C" {
572be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#include <usbdi.h>
582be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#include <Setupapi.h>
592be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine}
602be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#pragma warning(default: 4200)
612be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine
622be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkineextern "C" {
632be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine#include "..\api\adb_api.h"
642be4a90641291ebe17d8f280ea09ac5768a209bdvchtchetkine}
65