Welcome to mirror list, hosted at ThFree Co, Russian Federation.

resourcestring.h « nativeresources « coreclr « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c8beb9bf3340c88e86d61a2fe7ba1a1c7fdc9872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#ifndef __RESOURCE_STRING_H_
#define __RESOURCE_STRING_H_

// Struct to contain a resource ID and its corresponding
// English language string.
struct NativeStringResource
{
    unsigned int resourceId;
    const char* resourceString;
};

struct NativeStringResourceTable
{
    const int size;
    const NativeStringResource *table;
};

int LoadNativeStringResource(const NativeStringResourceTable &nativeStringResourceTable, unsigned int iResourceID, char16_t* szBuffer, int iMax, int *pcwchUsed);

#define CONCAT(a, b) a ## b

#define NATIVE_STRING_RESOURCE_TABLE(name) CONCAT(nativeStringResourceTable_, name)

#define DECLARE_NATIVE_STRING_RESOURCE_TABLE(name) \
    extern const NativeStringResourceTable NATIVE_STRING_RESOURCE_TABLE(name)

#endif // __RESOURCE_STRING_H_