Chromium Code Reviews| Index: base/win/windows_version.h |
| =================================================================== |
| --- base/win/windows_version.h (revision 76445) |
| +++ base/win/windows_version.h (working copy) |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -6,6 +6,8 @@ |
| #define BASE_WIN_WINDOWS_VERSION_H_ |
| #pragma once |
| +typedef void* HANDLE; |
| + |
| namespace base { |
| namespace win { |
| @@ -28,6 +30,23 @@ |
| // Returns the major and minor version of the service pack installed. |
| void GetServicePackLevel(int* major, int* minor); |
| +enum WOW64Status { |
| + WOW64_DISABLED, |
| + WOW64_ENABLED, |
| + WOW64_UNKNOWN, |
| +}; |
| + |
| +// Returns whether this process is running under WOW64 (the wrapper that allows |
| +// 32-bit processes to run on 64-bit versions of Windows). This will return |
| +// WOW64_DISABLED for both "32-bit Chrome on 32-bit Windows" and "64-bit Chrome |
| +// on 64-bit Windows". WOW64_UNKNOWN means "an error occurred", e.g. the |
| +// process does not have sufficient access rights to determine this. |
| +WOW64Status GetWOW64Status(); |
| + |
| +// Like GetWOW64Status(), but for the supplied handle instead of the current |
| +// process. |
| +WOW64Status GetWOW64StatusForHandle(HANDLE handle); |
|
brettw
2011/03/03 22:28:53
Maybe call this process_handle to make more clear
Peter Kasting
2011/03/03 22:33:23
I went one better than this and also changed the A
|
| + |
| } // namespace win |
| } // namespace base |