Updating trunk VERSION from 833.0 to 834.0
[chromium-blink-merge.git] / base / resource_util.h
blobc867abc97469546e9f940c4ff79f57e5a0fade71
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 // This file contains utility functions for accessing resources in external
6 // files (DLLs) or embedded in the executable itself.
8 #ifndef BASE_RESOURCE_UTIL_H__
9 #define BASE_RESOURCE_UTIL_H__
10 #pragma once
12 #include <windows.h>
14 #include "base/base_api.h"
15 #include "base/basictypes.h"
17 namespace base {
19 // Function for getting a data resource (BINDATA) from a dll. Some
20 // resources are optional, especially in unit tests, so this returns false
21 // but doesn't raise an error if the resource can't be loaded.
22 bool BASE_API GetDataResourceFromModule(HMODULE module, int resource_id,
23 void** data, size_t* length);
24 } // namespace base
26 #endif // BASE_RESOURCE_UTIL_H__