diff --git a/configure b/configure index ebf519f37c7..a6b0a608537 100755 --- a/configure +++ b/configure @@ -25612,6 +25612,14 @@ ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS dlls/dpwsockx/Makefile: dlls/dpwsockx/Makefile.in dlls/Makedll.rules" ac_config_files="$ac_config_files dlls/dpwsockx/Makefile" +ALL_MAKEFILES="$ALL_MAKEFILES \\ + dlls/drmclien/Makefile" +test "x$enable_drmclien" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ + drmclien" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/drmclien/Makefile: dlls/drmclien/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/drmclien/Makefile" + ALL_MAKEFILES="$ALL_MAKEFILES \\ dlls/dsound/Makefile" test "x$enable_dsound" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ @@ -29472,6 +29480,7 @@ do "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; "dlls/dpnlobby/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnlobby/Makefile" ;; "dlls/dpwsockx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpwsockx/Makefile" ;; + "dlls/drmclien/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/drmclien/Makefile" ;; "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; "dlls/dssenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dssenh/Makefile" ;; diff --git a/configure.ac b/configure.ac index 8ce3686101a..60bd78eefb5 100644 --- a/configure.ac +++ b/configure.ac @@ -2131,6 +2131,7 @@ WINE_CONFIG_MAKEFILE([dlls/dpnet/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_ WINE_CONFIG_MAKEFILE([dlls/dpnhpast/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/dpnlobby/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/dpwsockx/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) +WINE_CONFIG_MAKEFILE([dlls/drmclien/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/dsound/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/dsound/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) WINE_CONFIG_MAKEFILE([dlls/dssenh/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) diff --git a/dlls/drmclien/Makefile.in b/dlls/drmclien/Makefile.in new file mode 100644 index 00000000000..86dcc389784 --- /dev/null +++ b/dlls/drmclien/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = drmclien.dll +IMPORTS = kernel32 + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/drmclien/drmclien.spec b/dlls/drmclien/drmclien.spec new file mode 100644 index 00000000000..b93472b5d5e --- /dev/null +++ b/dlls/drmclien/drmclien.spec @@ -0,0 +1,31 @@ +@ stub DllMain +@ stub CanDecrypt +@ stub Decrypt +@ stub RequestLicense +@ stub ProcessResponse +@ stub Bind +@ stub KeyExchange +@ stub GetVersion +@ stub CanDecryptEx +@ stub BindEx +@ stub ??0CDRMLiteCrypto@@QAE@XZ +@ stub ??1CDRMLiteCrypto@@QAE@XZ +@ stub SetAppSec +@ stub SetLicenseStore +@ stub GetPMLicenseFileName +@ stub GetPMLicenseSize +@ stub CreatePMLicense +@ stub GenerateNewLicense +@ stub Encrypt +@ stub InitAppCerts +@ stub QueryXferToPM +@ stub ?BackupLicenses@CDRMLiteCrypto@@QAEJKPAGPAUIUnknown@@PAHPAX@Z +@ stub ?EncryptFast@CDRMLiteCrypto@@QAEJPBDKPAE1@Z +@ stub ?EncryptIndirectFast@CDRMLiteCrypto@@QAEJPBDKPAE1@Z +@ stub ?GenerateNewLicenseEx@CDRMLiteCrypto@@QAEJKPAE00PAPAD10@Z +@ stub ?GetLicenses@CDRMLiteCrypto@@QAEJPBDPAUPMLICENSE@@PAKKPAX2PAE@Z +@ stub ?GetPublicKey@CDRMLiteCrypto@@QAEJPAUPKCERT@@@Z +@ stub ?QueryXferToPMEx@CDRMLiteCrypto@@QAEJPBDKPAKPAEK2K12@Z +@ stub ?RestoreLicenses@CDRMLiteCrypto@@QAEJKPAEPAGPAUIUnknown@@PAHPAX@Z +@ stub DllRegisterServer +@ stub DllUnregisterServer diff --git a/dlls/drmclien/main.c b/dlls/drmclien/main.c new file mode 100644 index 00000000000..c18ddada0e9 --- /dev/null +++ b/dlls/drmclien/main.c @@ -0,0 +1,42 @@ +/* + * + * Copyright 2009 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 "config.h" + +#include + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + switch (fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + case DLL_PROCESS_DETACH: + break; + } + + return TRUE; +}