OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "base/win_util.h" | 5 #include "base/win_util.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <sddl.h> | 8 #include <sddl.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/registry.h" | 11 #include "base/registry.h" |
12 #include "base/scoped_handle.h" | 12 #include "base/scoped_handle.h" |
| 13 #include "base/scoped_ptr.h" |
13 #include "base/singleton.h" | 14 #include "base/singleton.h" |
14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
15 #include "base/tracked.h" | 16 #include "base/tracked.h" |
16 | 17 |
17 namespace win_util { | 18 namespace win_util { |
18 | 19 |
19 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ | 20 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ |
20 offsetof(struct_name, member) + \ | 21 offsetof(struct_name, member) + \ |
21 (sizeof static_cast<struct_name*>(NULL)->member) | 22 (sizeof static_cast<struct_name*>(NULL)->member) |
22 #define NONCLIENTMETRICS_SIZE_PRE_VISTA \ | 23 #define NONCLIENTMETRICS_SIZE_PRE_VISTA \ |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 452 |
452 #ifndef COPY_FILE_COPY_SYMLINK | 453 #ifndef COPY_FILE_COPY_SYMLINK |
453 #error You must install the Windows 2008 or Vista Software Development Kit and \ | 454 #error You must install the Windows 2008 or Vista Software Development Kit and \ |
454 set it as your default include path to build this library. You can grab it by \ | 455 set it as your default include path to build this library. You can grab it by \ |
455 searching for "download windows sdk 2008" in your favorite web search engine. \ | 456 searching for "download windows sdk 2008" in your favorite web search engine. \ |
456 Also make sure you register the SDK with Visual Studio, by selecting \ | 457 Also make sure you register the SDK with Visual Studio, by selecting \ |
457 "Integrate Windows SDK with Visual Studio 2005" from the Windows SDK \ | 458 "Integrate Windows SDK with Visual Studio 2005" from the Windows SDK \ |
458 menu (see Start - All Programs - Microsoft Windows SDK - \ | 459 menu (see Start - All Programs - Microsoft Windows SDK - \ |
459 Visual Studio Registration). | 460 Visual Studio Registration). |
460 #endif | 461 #endif |
OLD | NEW |