Sweden-Number/dlls/ole32/ole2nls.c

122 lines
2.9 KiB
C
Raw Normal View History

2000-05-07 20:30:44 +02:00
/*
* OLE2NLS library
*
* Copyright 1995 Martin von Loewis
* Copyright 1998 David Lee Lambert
* Copyright 2000 Julio C<EFBFBD>sar G<EFBFBD>zquez
*/
#include "config.h"
2000-05-07 20:30:44 +02:00
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <locale.h>
2000-05-07 20:30:44 +02:00
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
2000-05-07 20:30:44 +02:00
#include "winnls.h"
#include "winreg.h"
#include "winuser.h"
#include "winver.h"
#include "wine/winbase16.h"
2000-05-07 20:30:44 +02:00
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL(ole);
static LPVOID lpNLSInfo = NULL;
/******************************************************************************
2001-07-02 21:59:40 +02:00
* GetLocaleInfoA [OLE2NLS.5]
2000-05-07 20:30:44 +02:00
* 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);
}
/******************************************************************************
2001-07-02 21:59:40 +02:00
* GetStringTypeA [OLE2NLS.7]
2000-05-07 20:30:44 +02:00
*/
BOOL16 WINAPI GetStringType16(LCID locale,DWORD dwInfoType,LPCSTR src,
INT16 cchSrc,LPWORD chartype)
{
return GetStringTypeExA(locale,dwInfoType,src,cchSrc,chartype);
}
2001-06-28 19:59:22 +02:00
/******************************************************************************
* GetUserDefaultLCID [OLE2NLS.1]
*/
LCID WINAPI GetUserDefaultLCID16(void)
{
return GetUserDefaultLCID();
}
/******************************************************************************
* GetSystemDefaultLCID [OLE2NLS.2]
*/
LCID WINAPI GetSystemDefaultLCID16(void)
{
return GetSystemDefaultLCID();
}
/******************************************************************************
* GetUserDefaultLangID [OLE2NLS.3]
*/
LANGID WINAPI GetUserDefaultLangID16(void)
{
return GetUserDefaultLangID();
}
/******************************************************************************
* GetSystemDefaultLangID [OLE2NLS.4]
*/
LANGID WINAPI GetSystemDefaultLangID16(void)
{
return GetSystemDefaultLangID();
}
/******************************************************************************
* LCMapStringA [OLE2NLS.6]
*/
INT16 LCMapString16(LCID lcid, DWORD mapflags, LPCSTR srcstr, INT16 srclen,
LPSTR dststr, INT16 dstlen)
{
return LCMapStringA(lcid, mapflags, srcstr, srclen, dststr, dstlen);
}
2000-05-07 20:30:44 +02:00
/***********************************************************************
2001-07-02 21:59:40 +02:00
* CompareStringA (OLE2NLS.8)
2000-05-07 20:30:44 +02:00
*/
UINT16 WINAPI CompareString16(DWORD lcid,DWORD fdwStyle,
LPCSTR s1,DWORD l1,LPCSTR s2,DWORD l2)
{
return (UINT16)CompareStringA(lcid,fdwStyle,s1,l1,s2,l2);
}
/******************************************************************************
2001-06-19 20:20:47 +02:00
* RegisterNLSInfoChanged [OLE2NLS.9]
2000-05-07 20:30:44 +02:00
*/
BOOL16 WINAPI RegisterNLSInfoChanged16(LPVOID lpNewNLSInfo) /* [???] FIXME */
2000-05-07 20:30:44 +02:00
{
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 */
}