1# resmgr<a name="EN-US_TOPIC_0000001073289170"></a>
2
3-   [Introduction](#section11660541593)
4-   [Directory Structure](#section1844145112017)
5-   [Usage](#section17235135618274)
6-   [Constraints](#section568761318105)
7-   [Repositories Involved](#section15583142420413)
8
9## Introduction<a name="section11660541593"></a>
10
11The resource management module, namely, resmgr, provides the function of loading multi-language GUI resources for applications, for example, displaying the application names or icons specific to a certain language.
12
13## Directory Structure<a name="section1844145112017"></a>
14
15The directory structure for the resource management module is as follows:
16
17```
18/base/global/
19├── resource_management_lite                # Code repository for the resource management module
20│   ├──  frameworks                         # Core code of the resource management module
21│   │   ├── resource_management_lite        # Core code for resource parsing
22│   │   │   ├── include                     # Header files of the resource management module
23│   │   │   ├── src                         # Implementation code of the resource management module
24│   │   │   └── test                        # Test code
25│   ├──  interfaces                         # APIs of the resource management module
26│   │   └── inner_api                       # APIs of the resource management module for internal subsystems
27```
28
29## Usage<a name="section17235135618274"></a>
30
31Call the  **GLOBAL\_GetValueById**  API to obtain the resource information of the application.
32
33```
34#include <stdint.h>
35#include <stdio.h>
36#include "global.h"
37
38uint32_t id = 0x16777216;
39char *values = NULL;
40int32_t re = GLOBAL_GetValueById(id, "/system/data/resources.index", &values); // Obtain the resource of a specified application and write the resource to values.
41std::cout << values << std::endl;
42if (values != NULL) {
43    free(values);
44}
45```
46
47## Constraints<a name="section568761318105"></a>
48
49**Programming language**: C/C++
50
51## Repositories Involved<a name="section15583142420413"></a>
52
53[Globalization subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/globalization.md)
54
55**global\_resmgr\_lite**
56
57[global\_i18n\_lite](https://gitee.com/openharmony/global_i18n_lite/blob/master/README.md)
58
59