| 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_HELPERS_H_ | 5 #ifndef CLOUD_PRINT_VIRTUAL_DRIVER_WIN_HELPERS_H_ |
| 6 #define CLOUD_PRINT_VIRTUAL_DRIVER_WIN_HELPERS_H_ | 6 #define CLOUD_PRINT_VIRTUAL_DRIVER_WIN_HELPERS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #include "base/string16.h" |
| 10 | 11 |
| 11 class FilePath; | 12 class FilePath; |
| 12 | 13 |
| 13 namespace cloud_print { | 14 namespace cloud_print { |
| 14 | 15 |
| 16 // Returns TRUE if the current OS is 64 bit. |
| 17 bool IsSystem64Bit(); |
| 18 |
| 15 // Convert an HRESULT to a localized string and display it in a message box. | 19 // Convert an HRESULT to a localized string and display it in a message box. |
| 16 void DisplayWindowsMessage(HWND hwnd, HRESULT message_id); | 20 void DisplayWindowsMessage(HWND hwnd, |
| 21 HRESULT message_id, |
| 22 const string16 &caption); |
| 17 | 23 |
| 18 // Similar to the Windows API call GetLastError but returns an HRESULT. | 24 // Similar to the Windows API call GetLastError but returns an HRESULT. |
| 19 HRESULT GetLastHResult(); | 25 HRESULT GetLastHResult(); |
| 20 | 26 |
| 27 // Returns the correct port monitor DLL file name for the current machine. |
| 28 string16 GetPortMonitorDllName(); |
| 29 |
| 21 // Gets the standard install path for "version 3" print drivers. | 30 // Gets the standard install path for "version 3" print drivers. |
| 22 HRESULT GetPrinterDriverDir(FilePath* path); | 31 HRESULT GetPrinterDriverDir(FilePath* path); |
| 32 |
| 33 // Retrieves a string from the string table of the module that contains the |
| 34 // calling code. |
| 35 string16 LoadLocalString(DWORD string_id); |
| 23 } | 36 } |
| 24 | 37 |
| 25 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_WIN_HELPERS_H_ | 38 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_WIN_HELPERS_H_ |
| 26 | 39 |
| 27 | 40 |
| 28 | 41 |
| OLD | NEW |