Line | |
---|
1 | /*
|
---|
2 | *
|
---|
3 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
4 | *
|
---|
5 | */
|
---|
6 | #ifndef __UNICODE_H__
|
---|
7 | #define __UNICODE_H__
|
---|
8 |
|
---|
9 | #include <heapstring.h>
|
---|
10 |
|
---|
11 |
|
---|
12 | #define UnicodeToAsciiString(u) HEAP_strdupWtoA(GetProcessHeap(), 0, u)
|
---|
13 | #define AsciiToUnicodeString(a) HEAP_strdupAtoW(GetProcessHeap(), 0, a)
|
---|
14 | #define FreeAsciiString(a) HEAP_free(a)
|
---|
15 |
|
---|
16 | #define UnicodeToAscii(u, a) lstrcpyWtoA(a, u)
|
---|
17 | #define UnicodeToAsciiN(u, a, n) lstrcpynWtoA(a, u, n)
|
---|
18 | #define AsciiToUnicode(a, u) lstrcpyAtoW(u, a)
|
---|
19 | #define AsciiToUnicodeN(a, u, n) lstrcpynAtoW(u, a, n)
|
---|
20 |
|
---|
21 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.