| Rev | Line |  | 
|---|
| [4] | 1 | /* | 
|---|
|  | 2 | * | 
|---|
|  | 3 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
|  | 4 | * | 
|---|
|  | 5 | */ | 
|---|
|  | 6 | #ifndef __UNICODE_H__ | 
|---|
|  | 7 | #define __UNICODE_H__ | 
|---|
|  | 8 |  | 
|---|
| [5470] | 9 | #include <heapstring.h> | 
|---|
| [4] | 10 |  | 
|---|
|  | 11 |  | 
|---|
| [5470] | 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) | 
|---|
| [68] | 15 |  | 
|---|
| [5470] | 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) | 
|---|
| [4] | 20 |  | 
|---|
|  | 21 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.