| /* | 
 |  *	OLE2NLS library | 
 |  * | 
 |  *	Copyright 1995	Martin von Loewis | 
 |  *      Copyright 1998  David Lee Lambert | 
 |  *      Copyright 2000  Julio César Gázquez | 
 |  */ | 
 | #include <string.h> | 
 | #include <stdio.h> | 
 | #include <ctype.h> | 
 | #include <stdlib.h> | 
 | #include <locale.h> | 
 | #include "windef.h" | 
 | #include "wingdi.h" | 
 | #include "winuser.h" | 
 | #include "heap.h" | 
 | #include "options.h" | 
 | #include "winver.h" | 
 | #include "winnls.h" | 
 | #include "winreg.h" | 
 | #include "winerror.h" | 
 | #include "debugtools.h" | 
 | #include "crtdll.h" | 
 | #include "main.h" | 
 |  | 
 | DEFAULT_DEBUG_CHANNEL(ole); | 
 |  | 
 | static LPVOID lpNLSInfo = NULL; | 
 |  | 
 | /****************************************************************************** | 
 |  *		GetLocaleInfo16	[OLE2NLS.5] | 
 |  * Is the last parameter really WORD for Win16? | 
 |  */ | 
 | INT16 WINAPI GetLocaleInfo16(LCID lcid,LCTYPE LCType,LPSTR buf,INT16 len) | 
 | { | 
 | 	return GetLocaleInfoA(lcid,LCType,buf,len); | 
 | } | 
 |  | 
 | /****************************************************************************** | 
 |  *		GetStringType16	[OLE2NLS.7] | 
 |  */ | 
 | BOOL16 WINAPI GetStringType16(LCID locale,DWORD dwInfoType,LPCSTR src, | 
 |                               INT16 cchSrc,LPWORD chartype) | 
 | { | 
 | 	return GetStringTypeExA(locale,dwInfoType,src,cchSrc,chartype); | 
 | } | 
 |  | 
 | /*********************************************************************** | 
 |  *           CompareString16       (OLE2NLS.8) | 
 |  */ | 
 | UINT16 WINAPI CompareString16(DWORD lcid,DWORD fdwStyle, | 
 |                               LPCSTR s1,DWORD l1,LPCSTR s2,DWORD l2) | 
 | { | 
 | 	return (UINT16)CompareStringA(lcid,fdwStyle,s1,l1,s2,l2); | 
 | } | 
 |  | 
 | /****************************************************************************** | 
 |  *      RegisterNLSInfoChanged  [OLE2NLS.10] | 
 |  */ | 
 | BOOL16 WINAPI RegisterNLSInfoChanged16(LPVOID/*FIXME*/ lpNewNLSInfo) | 
 | { | 
 | 	FIXME("Fully implemented, but doesn't effect anything.\n"); | 
 |  | 
 | 	if (!lpNewNLSInfo) { | 
 | 		lpNLSInfo = NULL; | 
 | 		return TRUE; | 
 | 	} | 
 | 	else { | 
 | 		if (!lpNLSInfo) { | 
 | 			lpNLSInfo = lpNewNLSInfo; | 
 | 			return TRUE; | 
 | 		} | 
 | 	} | 
 |  | 
 | 	return FALSE; /* ptr not set */ | 
 | }  | 
 |  |