Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
|
grt (UTC plus 2)
2011/05/25 16:10:07
2011
robertshield
2011/05/26 15:14:28
From hell's heart I stab at thee!
| |
| 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 CHROME_FRAME_CHROME_FRAME_HELPER_UTIL_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_HELPER_UTIL_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_HELPER_UTIL_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_HELPER_UTIL_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 // Compare the given class name with the known window class names for | 10 // Compare the given class name with the known window class names for |
| 11 // internet explorer browser windows. | 11 // internet explorer browser windows. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 // @param process_id_to_match [in] This parameter will be used to match | 61 // @param process_id_to_match [in] This parameter will be used to match |
| 62 // particular process id for window. | 62 // particular process id for window. |
| 63 // @return The window handle of the matching window, if found, or NULL. | 63 // @return The window handle of the matching window, if found, or NULL. |
| 64 // | 64 // |
| 65 HWND RecurseFindWindow(HWND parent, | 65 HWND RecurseFindWindow(HWND parent, |
| 66 const wchar_t* class_name, | 66 const wchar_t* class_name, |
| 67 const wchar_t* window_name, | 67 const wchar_t* window_name, |
| 68 DWORD thread_id_to_match, | 68 DWORD thread_id_to_match, |
| 69 DWORD process_id_to_match); | 69 DWORD process_id_to_match); |
| 70 | 70 |
| 71 // Reads |value_size| characters from a value named |value_name| in |key| and | |
| 72 // places them in the buffer pointed to by |value|. Returns ERROR_SUCCESS on | |
| 73 // success. | |
| 74 LONG ReadValue(HKEY key, | |
| 75 const wchar_t* value_name, | |
| 76 size_t value_size, | |
| 77 wchar_t* value); | |
| 78 | |
| 79 // Returns true if system-level Chrome Frame is installed and the BHO is | |
| 80 // registered in HKLM. | |
| 81 bool IsSystemLevelChromeFrameInstalled(); | |
| 82 | |
| 71 #endif // CHROME_FRAME_CHROME_FRAME_HELPER_UTIL_H_ | 83 #endif // CHROME_FRAME_CHROME_FRAME_HELPER_UTIL_H_ |
| OLD | NEW |