Relanding this change. The bug 332430 which caused this to be reverted will be addres...
[chromium-blink-merge.git] / device / bluetooth / bluetooth_init_win.h
blob00fd186effd22c8da9f1ae18251ff920d8dbd66a
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_
8 // windows.h needs to be included before BluetoothAPIs.h.
9 #include <windows.h>
11 #include <BluetoothAPIs.h>
12 #if defined(_WIN32_WINNT_WIN8) && _MSC_VER < 1700
13 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h.
14 #undef FACILITY_VISUALCPP
15 #endif
16 #include <delayimp.h>
17 #include <ws2def.h>
18 #include <ws2bth.h>
20 #pragma comment(lib, "Bthprops.lib")
22 namespace device {
23 namespace bluetooth_init_win {
25 // Returns true if the machine has a bluetooth stack available. The first call
26 // to this function will involve file IO, so it should be done on an appropriate
27 // thread. This function is not threadsafe.
28 bool HasBluetoothStack();
30 } // namespace bluetooth_init_win
31 } // namespace device
33 #endif // DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_