Signed-off-by: Austin English austinenglish@gmail.com --- configure.ac | 1 + dlls/diactfrm/Makefile.in | 8 +++++++ dlls/diactfrm/diactfrm.spec | 4 ++++ dlls/diactfrm/diactfrm_main.c | 42 +++++++++++++++++++++++++++++++++++ dlls/diactfrm/version.rc | 26 ++++++++++++++++++++++ 5 files changed, 81 insertions(+) create mode 100644 dlls/diactfrm/Makefile.in create mode 100644 dlls/diactfrm/diactfrm.spec create mode 100644 dlls/diactfrm/diactfrm_main.c create mode 100644 dlls/diactfrm/version.rc
diff --git a/configure.ac b/configure.ac index bfdb8564abd..5680e8f51e3 100644 --- a/configure.ac +++ b/configure.ac @@ -3157,6 +3157,7 @@ WINE_CONFIG_MAKEFILE(dlls/devenum/tests) WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc) WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc/tests) WINE_CONFIG_MAKEFILE(dlls/dhtmled.ocx) +WINE_CONFIG_MAKEFILE(dlls/diactfrm) WINE_CONFIG_MAKEFILE(dlls/difxapi) WINE_CONFIG_MAKEFILE(dlls/dinput) WINE_CONFIG_MAKEFILE(dlls/dinput/tests) diff --git a/dlls/diactfrm/Makefile.in b/dlls/diactfrm/Makefile.in new file mode 100644 index 00000000000..7d83e518017 --- /dev/null +++ b/dlls/diactfrm/Makefile.in @@ -0,0 +1,8 @@ +MODULE = diactfrm.dll + +EXTRADLLFLAGS = -mno-cygwin + +C_SRCS = \ + diactfrm_main.c + +RC_SRCS = version.rc diff --git a/dlls/diactfrm/diactfrm.spec b/dlls/diactfrm/diactfrm.spec new file mode 100644 index 00000000000..c5fc87af6d5 --- /dev/null +++ b/dlls/diactfrm/diactfrm.spec @@ -0,0 +1,4 @@ +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub DllRegisterServer +@ stub DllUnregisterServer diff --git a/dlls/diactfrm/diactfrm_main.c b/dlls/diactfrm/diactfrm_main.c new file mode 100644 index 00000000000..309374507bb --- /dev/null +++ b/dlls/diactfrm/diactfrm_main.c @@ -0,0 +1,42 @@ +/* + * + * Copyright 2020 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 <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(diactfrm); + +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) +{ + TRACE("(%p, %u, %p)\n", instance, reason, reserved); + + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(instance); + break; + } + + return TRUE; +} diff --git a/dlls/diactfrm/version.rc b/dlls/diactfrm/version.rc new file mode 100644 index 00000000000..b6b6692b831 --- /dev/null +++ b/dlls/diactfrm/version.rc @@ -0,0 +1,26 @@ +/* + * Copyright 2020 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 + */ + +#define WINE_FILEDESCRIPTION_STR "Wine diactfrm" +#define WINE_FILENAME_STR "diactfrm.dll" +#define WINE_FILEVERSION 5,1,2600,881 +#define WINE_FILEVERSION_STR "5.1.2600.881" +#define WINE_PRODUCTVERSION 5,1,2600,881 +#define WINE_PRODUCTVERSION_STR "5.1.2600.881" + +#include "wine/wine_common_ver.rc"