From 0343b8c5b53437ad303e121a64b5833dc288f100 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 10 Nov 2014 16:41:42 +0000 Subject: [PATCH] [NPPTOOLS] * Import from Wine 1.7.27. CORE-8789 #resolve #comment Imported in r65358. CORE-8540 svn path=/trunk/; revision=65358 --- reactos/dll/win32/CMakeLists.txt | 1 + reactos/dll/win32/npptools/CMakeLists.txt | 13 +++++ reactos/dll/win32/npptools/main.c | 39 +++++++++++++++ reactos/dll/win32/npptools/npptools.spec | 60 +++++++++++++++++++++++ reactos/media/doc/README.WINE | 1 + 5 files changed, 114 insertions(+) create mode 100644 reactos/dll/win32/npptools/CMakeLists.txt create mode 100644 reactos/dll/win32/npptools/main.c create mode 100644 reactos/dll/win32/npptools/npptools.spec diff --git a/reactos/dll/win32/CMakeLists.txt b/reactos/dll/win32/CMakeLists.txt index c4febe05c47..fae1aa1f449 100644 --- a/reactos/dll/win32/CMakeLists.txt +++ b/reactos/dll/win32/CMakeLists.txt @@ -135,6 +135,7 @@ add_subdirectory(netevent) add_subdirectory(netid) add_subdirectory(netshell) add_subdirectory(newdev) +add_subdirectory(npptools) add_subdirectory(ntdsapi) add_subdirectory(ntlanman) add_subdirectory(ntmarta) diff --git a/reactos/dll/win32/npptools/CMakeLists.txt b/reactos/dll/win32/npptools/CMakeLists.txt new file mode 100644 index 00000000000..f16d6c71961 --- /dev/null +++ b/reactos/dll/win32/npptools/CMakeLists.txt @@ -0,0 +1,13 @@ + +add_definitions(-D__WINESRC__) +include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) +spec2def(npptools.dll npptools.spec) + +add_library(npptools SHARED + main.c + ${CMAKE_CURRENT_BINARY_DIR}/npptools_stubs.c + ${CMAKE_CURRENT_BINARY_DIR}/npptools.def) + +set_module_type(npptools win32dll) +add_importlibs(npptools msvcrt kernel32 ntdll) +add_cd_file(TARGET npptools DESTINATION reactos/system32 FOR all) diff --git a/reactos/dll/win32/npptools/main.c b/reactos/dll/win32/npptools/main.c new file mode 100644 index 00000000000..a4a3ee30656 --- /dev/null +++ b/reactos/dll/win32/npptools/main.c @@ -0,0 +1,39 @@ +/* + * + * Copyright 2014 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 + +#include +#include + +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) +{ + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(instance); + break; + } + + return TRUE; +} diff --git a/reactos/dll/win32/npptools/npptools.spec b/reactos/dll/win32/npptools/npptools.spec new file mode 100644 index 00000000000..9f69e21dd7b --- /dev/null +++ b/reactos/dll/win32/npptools/npptools.spec @@ -0,0 +1,60 @@ +@ stub ClearEventData +@ stub CreateBlob +@ stub CreateNPPInterface +@ stub DestroyBlob +@ stub DestroyNPPBlobTable +@ stub DuplicateBlob +@ stub FilterNPPBlob +@ stub FindOneOf +@ stub FindUnknownBlobCategories +@ stub FindUnknownBlobTags +@ stub GetBoolFromBlob +@ stub GetClassIDFromBlob +@ stub GetDwordFromBlob +@ stub GetMacAddressFromBlob +@ stub GetNPPAddressFilterFromBlob +@ stub GetNPPBlobFromUI +@ stub GetNPPBlobTable +@ stub GetNPPEtypeSapFilter +@ stub GetNPPMacTypeAsNumber +@ stub GetNPPPatternFilterFromBlob +@ stub GetNPPTriggerFromBlob +@ stub GetNetworkInfoFromBlob +@ stub GetStringFromBlob +@ stub GetStringsFromBlob +@ stub IsRemoteNPP +@ stub LockBlob +@ stub MarshalBlob +@ stub MergeBlob +@ stub NmAddUsedEntry +@ stub NmHeapAllocate +@ stub NmHeapFree +@ stub NmHeapReallocate +@ stub NmHeapSetMaxSize +@ stub NmHeapSize +@ stub NmRemoveUsedEntry +@ stub RaiseNMEvent +@ stub ReadBlobFromFile +@ stub RegCreateBlobKey +@ stub RegOpenBlobKey +@ stub ReleaseEventSystem +@ stub RemoveFromBlob +@ stub SelectNPPBlobFromTable +@ stub SendEvent +@ stub SetBoolInBlob +@ stub SetClassIDInBlob +@ stub SetDwordInBlob +@ stub SetMacAddressInBlob +@ stub SetNPPAddressFilterInBlob +@ stub SetNPPEtypeSapFilter +@ stub SetNPPPatternFilterInBlob +@ stub SetNPPTriggerInBlob +@ stub SetNetworkInfoInBlob +@ stub SetStringInBlob +@ stub SubkeyExists +@ stub UnMarshalBlob +@ stub UnlockBlob +@ stub WriteBlobToFile +@ stub WriteCrackedBlobToFile +@ stub recursiveDeleteKey +@ stub setKeyAndValue diff --git a/reactos/media/doc/README.WINE b/reactos/media/doc/README.WINE index a0cf79011f5..0e221f766ab 100644 --- a/reactos/media/doc/README.WINE +++ b/reactos/media/doc/README.WINE @@ -145,6 +145,7 @@ reactos/dll/win32/msxml4 # Synced to Wine-1.7.27 reactos/dll/win32/msxml6 # Synced to Wine-1.7.27 reactos/dll/win32/nddeapi # Synced to Wine-1.7.27 reactos/dll/win32/netapi32 # Forked at Wine-1.3.34 +reactos/dll/win32/npptools # Synced to Wine-1.7.27 reactos/dll/win32/ntdsapi # Synced to Wine-1.7.27 reactos/dll/win32/ntprint # Synced to Wine-1.7.27 reactos/dll/win32/objsel # Synced to Wine-1.7.27