Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: base/win/resource_util.h

Issue 1137323003: Cleanup: Fix base header include guards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/tuple.h ('k') | base/win/startup_information.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This file contains utility functions for accessing resources in external 5 // This file contains utility functions for accessing resources in external
6 // files (DLLs) or embedded in the executable itself. 6 // files (DLLs) or embedded in the executable itself.
7 7
8 #ifndef BASE_WIN_RESOURCE_UTIL_H__ 8 #ifndef BASE_WIN_RESOURCE_UTIL_H_
9 #define BASE_WIN_RESOURCE_UTIL_H__ 9 #define BASE_WIN_RESOURCE_UTIL_H_
10 10
11 #include <windows.h> 11 #include <windows.h>
12 12
13 #include "base/base_export.h" 13 #include "base/base_export.h"
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 15
16 namespace base { 16 namespace base {
17 namespace win { 17 namespace win {
18 18
19 // Function for getting a data resource of the specified |resource_type| from 19 // Function for getting a data resource of the specified |resource_type| from
20 // a dll. Some resources are optional, especially in unit tests, so this 20 // a dll. Some resources are optional, especially in unit tests, so this
21 // returns false but doesn't raise an error if the resource can't be loaded. 21 // returns false but doesn't raise an error if the resource can't be loaded.
22 bool BASE_EXPORT GetResourceFromModule(HMODULE module, 22 bool BASE_EXPORT GetResourceFromModule(HMODULE module,
23 int resource_id, 23 int resource_id,
24 LPCTSTR resource_type, 24 LPCTSTR resource_type,
25 void** data, 25 void** data,
26 size_t* length); 26 size_t* length);
27 27
28 // Function for getting a data resource (BINDATA) from a dll. Some 28 // Function for getting a data resource (BINDATA) from a dll. Some
29 // resources are optional, especially in unit tests, so this returns false 29 // resources are optional, especially in unit tests, so this returns false
30 // but doesn't raise an error if the resource can't be loaded. 30 // but doesn't raise an error if the resource can't be loaded.
31 bool BASE_EXPORT GetDataResourceFromModule(HMODULE module, 31 bool BASE_EXPORT GetDataResourceFromModule(HMODULE module,
32 int resource_id, 32 int resource_id,
33 void** data, 33 void** data,
34 size_t* length); 34 size_t* length);
35 35
36 } // namespace win 36 } // namespace win
37 } // namespace base 37 } // namespace base
38 38
39 #endif // BASE_WIN_RESOURCE_UTIL_H__ 39 #endif // BASE_WIN_RESOURCE_UTIL_H_
OLDNEW
« no previous file with comments | « base/tuple.h ('k') | base/win/startup_information.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698