mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 18:54:25 +00:00
[FLTLIB]
* Import from Wine 1.7.27. CORE-8543 #resolve #comment Added in r64231. CORE-8540 svn path=/trunk/; revision=64231
This commit is contained in:
parent
fe05f05fd2
commit
8fc3f61465
|
@ -39,6 +39,7 @@ add_subdirectory(dhcpcsvc)
|
||||||
add_subdirectory(dnsapi)
|
add_subdirectory(dnsapi)
|
||||||
add_subdirectory(dwmapi)
|
add_subdirectory(dwmapi)
|
||||||
add_subdirectory(faultrep)
|
add_subdirectory(faultrep)
|
||||||
|
add_subdirectory(fltlib)
|
||||||
add_subdirectory(fmifs)
|
add_subdirectory(fmifs)
|
||||||
if(ARCH STREQUAL "i386")
|
if(ARCH STREQUAL "i386")
|
||||||
add_subdirectory(framedyn)
|
add_subdirectory(framedyn)
|
||||||
|
|
15
reactos/dll/win32/fltlib/CMakeLists.txt
Normal file
15
reactos/dll/win32/fltlib/CMakeLists.txt
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
|
||||||
|
add_definitions(-D__WINESRC__)
|
||||||
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||||
|
spec2def(fltlib.dll fltlib.spec)
|
||||||
|
|
||||||
|
list(APPEND SOURCE
|
||||||
|
fltlib.c
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/fltlib_stubs.c
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/fltlib.def)
|
||||||
|
|
||||||
|
add_library(fltlib SHARED ${SOURCE} rsrc.rc)
|
||||||
|
set_module_type(fltlib win32dll)
|
||||||
|
target_link_libraries(fltlib wine)
|
||||||
|
add_importlibs(fltlib msvcrt kernel32 ntdll)
|
||||||
|
add_cd_file(TARGET fltlib DESTINATION reactos/system32 FOR all)
|
92
reactos/dll/win32/fltlib/fltlib.c
Normal file
92
reactos/dll/win32/fltlib/fltlib.c
Normal file
|
@ -0,0 +1,92 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2009 Detlef Riekenberg
|
||||||
|
*
|
||||||
|
* 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(fltlib);
|
||||||
|
|
||||||
|
/*****************************************************
|
||||||
|
* DllMain
|
||||||
|
*/
|
||||||
|
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; /* use native version */
|
||||||
|
|
||||||
|
case DLL_PROCESS_ATTACH:
|
||||||
|
DisableThreadLibraryCalls(hinstDLL);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* FilterConnectCommunicationPort (FLTLIB.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI FilterConnectCommunicationPort(LPCWSTR lpPortName, DWORD dwOptions,
|
||||||
|
LPVOID lpContext, DWORD dwSizeOfContext,
|
||||||
|
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
|
||||||
|
HANDLE *hPort)
|
||||||
|
{
|
||||||
|
FIXME("(%s, %d, %p, %d, %p, %p) stub\n", debugstr_w(lpPortName), dwOptions,
|
||||||
|
lpContext, dwSizeOfContext, lpSecurityAttributes, hPort);
|
||||||
|
|
||||||
|
*hPort = INVALID_HANDLE_VALUE;
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* FilterFindFirst (FLTLIB.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI FilterFindFirst(DWORD class, LPVOID buffer, DWORD size, LPDWORD bytes_returned,
|
||||||
|
LPHANDLE handle)
|
||||||
|
{
|
||||||
|
FIXME("(%u, %p, %u, %p, %p) stub\n", class, buffer, size, bytes_returned, handle);
|
||||||
|
return HRESULT_FROM_WIN32(ERROR_NO_MORE_ITEMS);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* FilterFindClose (FLTLIB.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI FilterFindClose(HANDLE handle)
|
||||||
|
{
|
||||||
|
FIXME("(%p) stub\n", handle);
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* FilterUnload (FLTLIB.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI FilterUnload(LPCWSTR lpFilterName)
|
||||||
|
{
|
||||||
|
FIXME("(%s) stub\n", debugstr_w(lpFilterName));
|
||||||
|
|
||||||
|
if (!lpFilterName)
|
||||||
|
return HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER);
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
29
reactos/dll/win32/fltlib/fltlib.spec
Normal file
29
reactos/dll/win32/fltlib/fltlib.spec
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
@ stub FilterAttach
|
||||||
|
@ stub FilterAttachAtAltitude
|
||||||
|
@ stub FilterClose
|
||||||
|
@ stdcall FilterConnectCommunicationPort(wstr long ptr long ptr ptr)
|
||||||
|
@ stub FilterCreate
|
||||||
|
@ stub FilterDetach
|
||||||
|
@ stdcall FilterFindClose(ptr)
|
||||||
|
@ stdcall FilterFindFirst(long ptr long ptr ptr)
|
||||||
|
@ stub FilterFindNext
|
||||||
|
@ stub FilterGetDosName
|
||||||
|
@ stub FilterGetInformation
|
||||||
|
@ stub FilterGetMessage
|
||||||
|
@ stub FilterInstanceClose
|
||||||
|
@ stub FilterInstanceCreate
|
||||||
|
@ stub FilterInstanceFindClose
|
||||||
|
@ stub FilterInstanceFindFirst
|
||||||
|
@ stub FilterInstanceFindNext
|
||||||
|
@ stub FilterInstanceGetInformation
|
||||||
|
@ stub FilterLoad
|
||||||
|
@ stub FilterReplyMessage
|
||||||
|
@ stub FilterSendMessage
|
||||||
|
@ stdcall FilterUnload(wstr)
|
||||||
|
@ stub FilterVolumeClose
|
||||||
|
@ stub FilterVolumeFindClose
|
||||||
|
@ stub FilterVolumeFindFirst
|
||||||
|
@ stub FilterVolumeFindNext
|
||||||
|
@ stub FilterVolumeInstanceFindClose
|
||||||
|
@ stub FilterVolumeInstanceFindFirst
|
||||||
|
@ stub FilterVolumeInstanceFindNext
|
27
reactos/dll/win32/fltlib/rsrc.rc
Normal file
27
reactos/dll/win32/fltlib/rsrc.rc
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2014 Stefan Leichter
|
||||||
|
*
|
||||||
|
* 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 Filter Library"
|
||||||
|
#define WINE_FILENAME_STR "fltlib.dll"
|
||||||
|
|
||||||
|
#define WINE_FILEVERSION 5,1,2600,5512
|
||||||
|
#define WINE_FILEVERSION_STR "5.1.2600.5512"
|
||||||
|
#define WINE_PRODUCTVERSION 5,1,2600,5512
|
||||||
|
#define WINE_PRODUCTVERSION_STR "5.1.2600.5512"
|
||||||
|
|
||||||
|
#include "wine/wine_common_ver.rc"
|
|
@ -73,6 +73,7 @@ reactos/dll/win32/dbghelp # Synced to Wine-1.7.17
|
||||||
reactos/dll/win32/dciman32 # Synced to Wine-1.7.17
|
reactos/dll/win32/dciman32 # Synced to Wine-1.7.17
|
||||||
reactos/dll/win32/dwmapi # Synced to Wine-1.7.17
|
reactos/dll/win32/dwmapi # Synced to Wine-1.7.17
|
||||||
reactos/dll/win32/faultrep # Synced to Wine-1.7.17
|
reactos/dll/win32/faultrep # Synced to Wine-1.7.17
|
||||||
|
reactos/dll/win32/fltlib # Synced to Wine-1.7.27
|
||||||
reactos/dll/win32/fusion # Synced to Wine-1.7.17
|
reactos/dll/win32/fusion # Synced to Wine-1.7.17
|
||||||
reactos/dll/win32/gdiplus # Synced to Wine-1.7.17
|
reactos/dll/win32/gdiplus # Synced to Wine-1.7.17
|
||||||
reactos/dll/win32/hhctrl.ocx # Synced to Wine-1.7.17
|
reactos/dll/win32/hhctrl.ocx # Synced to Wine-1.7.17
|
||||||
|
|
Loading…
Reference in a new issue