Thomas Mullaly : kernel32: Added stubs for IDN functions.
Alexandre Julliard
julliard at winehq.org
Tue Jan 4 09:47:29 CST 2011
Module: wine
Branch: master
Commit: 1c7d32aa25da8ae03dc91915730ed877d9c2ba13
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1c7d32aa25da8ae03dc91915730ed877d9c2ba13
Author: Thomas Mullaly <thomas.mullaly at gmail.com>
Date: Sun Jan 2 16:54:32 2011 -0500
kernel32: Added stubs for IDN functions.
---
dlls/kernel32/Makefile.in | 2 +-
dlls/kernel32/kernel32.spec | 5 ++++
dlls/kernel32/locale.c | 57 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 63 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/Makefile.in b/dlls/kernel32/Makefile.in
index 2072949..58a4497 100644
--- a/dlls/kernel32/Makefile.in
+++ b/dlls/kernel32/Makefile.in
@@ -1,4 +1,4 @@
-EXTRADEFS = -D_KERNEL32_
+EXTRADEFS = -D_KERNEL32_ -D_NORMALIZE_
MODULE = kernel32.dll
IMPORTLIB = kernel32
IMPORTS = winecrt0 ntdll
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index f32371e..98e0fa0 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -726,6 +726,9 @@
@ stub HeapUsage
@ stdcall HeapValidate(long long ptr)
@ stdcall HeapWalk(long ptr)
+@ stdcall IdnToAscii(long wstr long ptr long)
+@ stdcall IdnToNameprepUnicode(long wstr long ptr long)
+@ stdcall IdnToUnicode(long wstr long ptr long)
@ stdcall InitAtomTable(long)
@ stdcall InitializeCriticalSection(ptr)
@ stdcall InitializeCriticalSectionAndSpinCount(ptr long)
@@ -753,6 +756,7 @@
@ stdcall IsDBCSLeadByteEx(long long)
@ stdcall IsDebuggerPresent()
@ stub -i386 IsLSCallback
+@ stdcall IsNormalizedString(long wstr long)
@ stdcall IsProcessInJob(long long ptr)
@ stdcall IsProcessorFeaturePresent(long)
@ stub -i386 IsSLCallback
@@ -832,6 +836,7 @@
# @ stub NlsConvertIntegerToString
# @ stub NlsGetCacheUpdateCount
# @ stub NlsResetProcessLocale
+@ stdcall NormalizeString(long wstr long ptr long)
@ stub NotifyNLSUserCache
# @ stub NumaVirtualQueryNode
@ stdcall OpenConsoleW(wstr long long long)
diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index 927d058..a54ae37 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -3857,3 +3857,60 @@ INT WINAPI GetUserDefaultLocaleName(LPWSTR localename, int buffersize)
userlcid = GetUserDefaultLCID();
return LCIDToLocaleName(userlcid, localename, buffersize, 0);
}
+
+/******************************************************************************
+ * NormalizeString (KERNEL32.@)
+ */
+INT WINAPI NormalizeString(NORM_FORM NormForm, LPCWSTR lpSrcString, INT cwSrcLength,
+ LPWSTR lpDstString, INT cwDstLength)
+{
+ FIXME("%x %p %d %p %d\n", NormForm, lpSrcString, cwSrcLength, lpDstString, cwDstLength);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/******************************************************************************
+ * IsNormalizedString (KERNEL32.@)
+ */
+BOOL WINAPI IsNormalizedString(NORM_FORM NormForm, LPCWSTR lpString, INT cwLength)
+{
+ FIXME("%x %p %d\n", NormForm, lpString, cwLength);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return FALSE;
+}
+
+/******************************************************************************
+ * IdnToAscii (KERNEL32.@)
+ */
+INT WINAPI IdnToAscii(DWORD dwFlags, LPCWSTR lpUnicodeCharStr, INT cchUnicodeChar,
+ LPWSTR lpASCIICharStr, INT cchASCIIChar)
+{
+ FIXME("%x %p %d %p %d\n", dwFlags, lpUnicodeCharStr, cchUnicodeChar,
+ lpASCIICharStr, cchASCIIChar);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/******************************************************************************
+ * IdnToNameprepUnicode (KERNEL32.@)
+ */
+INT WINAPI IdnToNameprepUnicode(DWORD dwFlags, LPCWSTR lpUnicodeCharStr, INT cchUnicodeChar,
+ LPWSTR lpNameprepCharStr, INT cchNameprepChar)
+{
+ FIXME("%x %p %d %p %d\n", dwFlags, lpUnicodeCharStr, cchUnicodeChar,
+ lpNameprepCharStr, cchNameprepChar);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/******************************************************************************
+ * IdnToUnicode (KERNEL32.@)
+ */
+INT WINAPI IdnToUnicode(DWORD dwFlags, LPCWSTR lpASCIICharStr, INT cchASCIIChar,
+ LPWSTR lpUnicodeCharStr, INT cchUnicodeChar)
+{
+ FIXME("%x %p %d %p %d\n", dwFlags, lpASCIICharStr, cchASCIIChar,
+ lpUnicodeCharStr, cchUnicodeChar);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
More information about the wine-cvs
mailing list