source: trunk/src/user32/user32.h@ 46

Last change on this file since 46 was 46, checked in by sandervl, 26 years ago

* empty log message *

File size: 827 bytes
Line 
1/*****************************************************************************
2 * Name : USER32.H
3 * Purpose : This module maps all Win32 functions contained in USER32.DLL
4 * to their OS/2-specific counterparts as far as possible.
5 *****************************************************************************/
6
7
8#ifndef __USER32_H_
9#define __USER32_H_
10
11#include <os2win.h>
12#include <nameid.h>
13#include <stdlib.h>
14#include <string.h>
15
16inline void ConvertFontAW(LOGFONTA *fa, LOGFONTW *fw)
17{
18 memcpy(fw, fa, ((int)&fa->lfFaceName - (int)fa));
19 AsciiToUnicode(fa->lfFaceName, (LPWSTR)fw->lfFaceName);
20 return;
21}
22
23inline void ConvertFontWA(LOGFONTW *fw, LOGFONTA *fa)
24{
25 memcpy(fa, fa, ((int)&fw->lfFaceName - (int)fw));
26 UnicodeToAscii((LPWSTR)fw->lfFaceName, fa->lfFaceName);
27 return;
28}
29
30#endif
Note: See TracBrowser for help on using the repository browser.