1 krisbash 1.1
2 /*
3 **==============================================================================
4 **
5 ** Open Management Infrastructure (OMI)
6 **
7 ** Copyright (c) Microsoft Corporation
8 **
9 ** Licensed under the Apache License, Version 2.0 (the "License"); you may not
10 ** use this file except in compliance with the License. You may obtain a copy
11 ** of the License at
12 **
13 ** http://www.apache.org/licenses/LICENSE-2.0
14 **
15 ** THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 ** KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
17 ** WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
18 ** MERCHANTABLITY OR NON-INFRINGEMENT.
19 **
20 ** See the Apache 2 License for the specific language governing permissions
21 ** and limitations under the License.
22 krisbash 1.1 **
23 **==============================================================================
24 */
25
26 #ifndef INTLSTR_RC_INC
27 #define INTLSTR_RC_INC
28 #endif
29
30 #include <pal/format.placeholders.h>
31
32 #define Intlstr_Define0(id, name, text) id, text "\0."
33 #define Intlstr_Define1(id, name, parameter1_type, parameter1_name, text) id, text "\0."
34 #define Intlstr_Define2(id, name, parameter1_type, parameter1_name, parameter2_type, parameter2_name, text) id, text "\0."
35 #define Intlstr_Define3(id, name, parameter1_type, parameter1_name, parameter2_type, parameter2_name, parameter3_type, parameter3_name, text) id, text "\0."
36
37 /* Notes:
38 *
39 * - LoadString (when returning a read-only pointer / in case a caller didn't provide a buffer) doesn't guarantee that the returned string is NUL-terminated.
40 * This knowledge is based on 1) lack of explicit guarantee in documentation, 2) reading source code of LoadString.
41 * To workaround - we are explicitly adding a NUL character above.
42 */
|