sfc: Add sfc.dll with a stub for SfcIsFileProtected.

This commit is contained in:
Detlef Riekenberg 2006-02-14 16:53:03 +01:00 committed by Alexandre Julliard
parent 79b267d5c0
commit aa318d1e3b
8 changed files with 89 additions and 1 deletions

View File

@ -128,6 +128,7 @@ DLLs (under dlls/):
sensapi/ - System Event Notification Service
serialui/ - Serial port property pages
setupapi/ - Setup interface
sfc/ - System File Checker (Windows File Protection)
shdocvw/ - Shell document object and control
shell32/ - COM object implementing shell views
shfolder/ - Shell folder service

3
configure vendored

File diff suppressed because one or more lines are too long

View File

@ -1590,6 +1590,7 @@ dlls/sensapi/Makefile
dlls/serialui/Makefile
dlls/setupapi/Makefile
dlls/setupapi/tests/Makefile
dlls/sfc/Makefile
dlls/shdocvw/Makefile
dlls/shdocvw/tests/Makefile
dlls/shell32/Makefile

View File

@ -127,6 +127,7 @@ BASEDIRS = \
sensapi \
serialui \
setupapi \
sfc \
shdocvw \
shell32 \
shfolder \
@ -379,6 +380,7 @@ SYMLINKS_SO = \
sensapi.dll.so \
serialui.dll.so \
setupapi.dll.so \
sfc.dll.so \
shdocvw.dll.so \
shell32.dll.so \
shfolder.dll.so \
@ -852,6 +854,9 @@ setupapi.dll.so: setupapi/setupapi.dll.so
setupx.dll.so : setupapi.dll.so
$(RM) $@ && $(LN_S) setupapi.dll.so $@
sfc.dll.so: sfc/sfc.dll.so
$(RM) $@ && $(LN_S) sfc/sfc.dll.so $@
shdocvw.dll.so: shdocvw/shdocvw.dll.so
$(RM) $@ && $(LN_S) shdocvw/shdocvw.dll.so $@
@ -1163,6 +1168,7 @@ IMPORT_LIBS = \
sensapi/libsensapi.$(IMPLIBEXT) \
serialui/libserialui.$(IMPLIBEXT) \
setupapi/libsetupapi.$(IMPLIBEXT) \
sfc/libsfc.$(IMPLIBEXT) \
shdocvw/libshdocvw.$(IMPLIBEXT) \
shell32/libshell32.$(IMPLIBEXT) \
shfolder/libshfolder.$(IMPLIBEXT) \
@ -1438,6 +1444,9 @@ serialui/libserialui.$(IMPLIBEXT): serialui/serialui.spec $(WINEBUILD)
setupapi/libsetupapi.$(IMPLIBEXT): setupapi/setupapi.spec $(WINEBUILD)
@cd setupapi && $(MAKE) libsetupapi.$(IMPLIBEXT)
sfc/libsfc.$(IMPLIBEXT): sfc/sfc.spec $(WINEBUILD)
@cd sfc && $(MAKE) libsfc.$(IMPLIBEXT)
shdocvw/libshdocvw.$(IMPLIBEXT): shdocvw/shdocvw.spec $(WINEBUILD)
@cd shdocvw && $(MAKE) libshdocvw.$(IMPLIBEXT)
@ -1689,6 +1698,7 @@ security/security.dll.so: security
sensapi/sensapi.dll.so: sensapi
serialui/serialui.dll.so: serialui
setupapi/setupapi.dll.so: setupapi
sfc/sfc.dll.so: sfc
shdocvw/shdocvw.dll.so: shdocvw
shell32/shell32.dll.so: shell32
shfolder/shfolder.dll.so: shfolder

2
dlls/sfc/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
Makefile
libsfc.def

13
dlls/sfc/Makefile.in Normal file
View File

@ -0,0 +1,13 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = sfc.dll
IMPORTLIB = libsfc.$(IMPLIBEXT)
IMPORTS = kernel32
C_SRCS = sfc_main.c
@MAKE_DLL_RULES@
### Dependencies:

2
dlls/sfc/sfc.spec Normal file
View File

@ -0,0 +1,2 @@
@ stub SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr)

58
dlls/sfc/sfc_main.c Normal file
View File

@ -0,0 +1,58 @@
/*
* Implementation of the System File Checker (Windows File Protection)
*
* Copyright 2006 Detlef Riekenberg
*
* This file contains only stubs to get the localspl.dll up and running
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "sfc.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(sfc);
/******************************************************************
* SfcIsFileProtected [SFC.@]
*
* Check, if the given File is protected by the System
*
* PARAMS
* RpcHandle [I] This must be NULL
* ProtFileName [I] Filename with Path to check
*
* RETURNS
* Failure: FALSE with GetLastError() != ERROR_FILE_NOT_FOUND
* Success: TRUE, when the File is Protected
* FALSE with GetLastError() == ERROR_FILE_NOT_FOUND,
* when the File is not Protected
*
*
* BUGS
* We return always the Result for: "File is not Protected"
*
*/
BOOL WINAPI SfcIsFileProtected(HANDLE RpcHandle, LPCWSTR ProtFileName)
{
FIXME("(%p, %s) stub\n", RpcHandle, debugstr_w(ProtFileName));
SetLastError(ERROR_FILE_NOT_FOUND);
return FALSE;
}