From 858ccfff8bc29c6f9f8bd9d13372669ab0ac2c36 Mon Sep 17 00:00:00 2001 From: Thomas Mullaly Date: Sun, 2 Jan 2011 17:13:43 -0500 Subject: [PATCH] normaliz: Added normaliz.dll stub. --- configure | 1 + configure.ac | 1 + dlls/normaliz/Makefile.in | 7 ++++++ dlls/normaliz/normaliz.c | 50 +++++++++++++++++++++++++++++++++++++ dlls/normaliz/normaliz.spec | 5 ++++ 5 files changed, 64 insertions(+) create mode 100644 dlls/normaliz/Makefile.in create mode 100644 dlls/normaliz/normaliz.c create mode 100644 dlls/normaliz/normaliz.spec diff --git a/configure b/configure index e49ad754441..25b85333e3d 100755 --- a/configure +++ b/configure @@ -15148,6 +15148,7 @@ wine_fn_config_dll nddeapi enable_nddeapi implib wine_fn_config_dll netapi32 enable_netapi32 implib wine_fn_config_test dlls/netapi32/tests netapi32_test wine_fn_config_dll newdev enable_newdev implib +wine_fn_config_dll normaliz enable_normaliz implib wine_fn_config_dll npmshtml enable_npmshtml wine_fn_config_dll ntdll enable_ntdll implib wine_fn_config_test dlls/ntdll/tests ntdll_test diff --git a/configure.ac b/configure.ac index 9ceb0f11e61..9ed1a5d456d 100644 --- a/configure.ac +++ b/configure.ac @@ -2635,6 +2635,7 @@ WINE_CONFIG_DLL(nddeapi,,[implib]) WINE_CONFIG_DLL(netapi32,,[implib]) WINE_CONFIG_TEST(dlls/netapi32/tests) WINE_CONFIG_DLL(newdev,,[implib]) +WINE_CONFIG_DLL(normaliz,,[implib]) WINE_CONFIG_DLL(npmshtml) WINE_CONFIG_DLL(ntdll,,[implib]) WINE_CONFIG_TEST(dlls/ntdll/tests) diff --git a/dlls/normaliz/Makefile.in b/dlls/normaliz/Makefile.in new file mode 100644 index 00000000000..9cc5a52316f --- /dev/null +++ b/dlls/normaliz/Makefile.in @@ -0,0 +1,7 @@ +MODULE = normaliz.dll +IMPORTLIB = normaliz + +C_SRCS = \ + normaliz.c + +@MAKE_DLL_RULES@ diff --git a/dlls/normaliz/normaliz.c b/dlls/normaliz/normaliz.c new file mode 100644 index 00000000000..c00df40dd15 --- /dev/null +++ b/dlls/normaliz/normaliz.c @@ -0,0 +1,50 @@ +/* + * Normaliz DLL. + * + * Copyright 2011 Thomas Mullaly + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* All calls to this DLL are forwarded to kernel32. On Windows XP this DLL actually contains + * the implementations for the functions it exports, but, starting with Vista these + * functions have been moved into kernel32. + */ + +#include + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(authz); + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + default: + break; + } + + return TRUE; +} diff --git a/dlls/normaliz/normaliz.spec b/dlls/normaliz/normaliz.spec new file mode 100644 index 00000000000..b26649b2ea7 --- /dev/null +++ b/dlls/normaliz/normaliz.spec @@ -0,0 +1,5 @@ +@ stdcall IdnToAscii(long wstr long ptr long) kernel32.IdnToAscii +@ stdcall IdnToNameprepUnicode(long wstr long ptr long) kernel32.IdnToNameprepUnicode +@ stdcall IdnToUnicode(long wstr long ptr long) kernel32.IdnToUnicode +@ stdcall IsNormalizedString(long wstr long) kernel32.IsNormalizedString +@ stdcall NormalizeString(long wstr long ptr long) kernel32.NormalizeString