From: Austin English Subject: regapi: add a stub dll Message-Id: Date: Sat, 21 May 2011 20:21:13 -0500 For http://bugs.winehq.org/show_bug.cgi?id=25123 -- -Austin From ce260b360d45ebc3873c5f9fc7d8f872b222edaa Mon Sep 17 00:00:00 2001 From: Austin English Date: Sat, 21 May 2011 20:17:07 -0500 Subject: [PATCH 2/2] regapi: add stub dll --- configure.ac | 1 + dlls/regapi/Makefile.in | 7 +++++ dlls/regapi/main.c | 45 ++++++++++++++++++++++++++++++ dlls/regapi/regapi.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+), 0 deletions(-) create mode 100644 dlls/regapi/Makefile.in create mode 100644 dlls/regapi/main.c create mode 100644 dlls/regapi/regapi.spec diff --git a/configure.ac b/configure.ac index 5f75b3e..5811bc1 100644 --- a/configure.ac +++ b/configure.ac @@ -2764,6 +2764,7 @@ WINE_CONFIG_DLL(rasapi16.dll16,enable_win16) WINE_CONFIG_DLL(rasapi32,,[implib]) WINE_CONFIG_TEST(dlls/rasapi32/tests) WINE_CONFIG_DLL(rasdlg,,[implib]) +WINE_CONFIG_DLL(regapi) WINE_CONFIG_DLL(resutils,,[implib]) WINE_CONFIG_DLL(riched20,,[implib]) WINE_CONFIG_TEST(dlls/riched20/tests) diff --git a/dlls/regapi/Makefile.in b/dlls/regapi/Makefile.in new file mode 100644 index 0000000..f18be1c --- /dev/null +++ b/dlls/regapi/Makefile.in @@ -0,0 +1,7 @@ +MODULE = regapi.dll + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + diff --git a/dlls/regapi/main.c b/dlls/regapi/main.c new file mode 100644 index 0000000..ec035f7 --- /dev/null +++ b/dlls/regapi/main.c @@ -0,0 +1,45 @@ +/* + * regapi implementation + * + * Copyright 2011 Austin English + * + * 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 + */ +#include + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(regapi); + +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/regapi/regapi.spec b/dlls/regapi/regapi.spec new file mode 100644 index 0000000..3836655 --- /dev/null +++ b/dlls/regapi/regapi.spec @@ -0,0 +1,69 @@ +@ stub RegBuildNumberQuery +@ stub RegCdCreateA +@ stub RegCdCreateW +@ stub RegCdDeleteA +@ stub RegCdDeleteW +@ stub RegCdEnumerateA +@ stub RegCdEnumerateW +@ stub RegCdQueryA +@ stub RegCdQueryW +@ stub RegCloseServer +@ stub RegConsoleShadowQueryA +@ stub RegConsoleShadowQueryW +@ stub RegDefaultUserConfigQueryA +@ stub RegDefaultUserConfigQueryW +@ stub RegDenyTSConnectionsPolicy +@ stub RegFreeUtilityCommandList +@ stub RegGetMachinePolicy +@ stub RegGetMachinePolicyEx +@ stub RegGetTServerVersion +@ stub RegGetUserConfigFromUserParameters +@ stub RegGetUserPolicy +@ stub RegIsMachineInHelpMode +@ stub RegIsMachinePolicyAllowHelp +@ stub RegIsTServer +@ stub RegMergeUserConfigWithUserParameters +@ stub RegOpenServerA +@ stub RegOpenServerW +@ stub RegPdCreateA +@ stub RegPdCreateW +@ stub RegPdDeleteA +@ stub RegPdDeleteW +@ stub RegPdEnumerateA +@ stub RegPdEnumerateW +@ stub RegPdQueryA +@ stub RegPdQueryW +@ stub RegQueryOEMId +@ stub RegQueryUtilityCommandList +@ stub RegSAMUserConfig +@ stub RegUserConfigDelete +@ stub RegUserConfigQuery +@ stub RegUserConfigRename +@ stub RegUserConfigSet +@ stub RegWdCreateA +@ stub RegWdCreateW +@ stub RegWdDeleteA +@ stub RegWdDeleteW +@ stub RegWdEnumerateA +@ stub RegWdEnumerateW +@ stub RegWdQueryA +@ stub RegWdQueryW +@ stub RegWinStationAccessCheck +@ stub RegWinStationCreateA +@ stub RegWinStationCreateW +@ stub RegWinStationDeleteA +@ stub RegWinStationDeleteW +@ stub RegWinStationEnumerateA +@ stub RegWinStationEnumerateW +@ stub RegWinStationQueryA +@ stub RegWinStationQueryDefaultSecurity +@ stub RegWinStationQueryEx +@ stub RegWinStationQueryNumValueW +@ stub RegWinStationQuerySecurityA +@ stub RegWinStationQuerySecurityW +@ stub RegWinStationQueryValueW +@ stub RegWinStationQueryW +@ stub RegWinStationSetNumValueW +@ stub RegWinStationSetSecurityA +@ stub RegWinStationSetSecurityW +@ stub WaitForTSConnectionsPolicyChanges -- 1.7.3.4