OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_ | 5 #ifndef CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_ |
6 #define CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_ | 6 #define CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/strings/string16.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class FilePath; | 13 class FilePath; |
14 } | 14 } |
15 | 15 |
16 namespace cloud_print { | 16 namespace cloud_print { |
17 | 17 |
18 // Returns TRUE if the current OS is 64 bit. | 18 // Returns TRUE if the current OS is 64 bit. |
19 bool IsSystem64Bit(); | 19 bool IsSystem64Bit(); |
20 | 20 |
21 // Convert an HRESULT to a localized string and display it in a message box. | 21 // Convert an HRESULT to a localized string and display it in a message box. |
22 void DisplayWindowsMessage(HWND hwnd, HRESULT hr, const string16 &caption); | 22 void DisplayWindowsMessage(HWND hwnd, HRESULT hr, const string16 &caption); |
23 | 23 |
24 // Returns the correct port monitor DLL file name for the current machine. | 24 // Returns the correct port monitor DLL file name for the current machine. |
25 string16 GetPortMonitorDllName(); | 25 string16 GetPortMonitorDllName(); |
26 | 26 |
27 // Gets the standard install path for "version 3" print drivers. | 27 // Gets the standard install path for "version 3" print drivers. |
28 HRESULT GetPrinterDriverDir(base::FilePath* path); | 28 HRESULT GetPrinterDriverDir(base::FilePath* path); |
29 | 29 |
30 } // namespace cloud_print | 30 } // namespace cloud_print |
31 | 31 |
32 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_ | 32 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_ |
33 | 33 |
34 | 34 |
35 | 35 |
OLD | NEW |