Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / cloud_print / virtual_driver / win / virtual_driver_helpers.h
blob426265fc2d75000c5615afbfb8ca302f4bbeb435
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
3 // found in the LICENSE file.
5 #ifndef CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_
6 #define CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_
8 #include <windows.h>
10 #include "base/strings/string16.h"
12 namespace base {
13 class FilePath;
16 namespace cloud_print {
18 // Returns TRUE if the current OS is 64 bit.
19 bool IsSystem64Bit();
21 // Convert an HRESULT to a localized string and display it in a message box.
22 void DisplayWindowsMessage(HWND hwnd, HRESULT hr,
23 const base::string16 &caption);
25 // Returns the correct port monitor DLL file name for the current machine.
26 base::string16 GetPortMonitorDllName();
28 // Gets the standard install path for "version 3" print drivers.
29 HRESULT GetPrinterDriverDir(base::FilePath* path);
31 } // namespace cloud_print
33 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_