Commit aa318d1e authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

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

parent 79b267d5
......@@ -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
......
......@@ -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
......
......@@ -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
......
Makefile
libsfc.def
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:
@ stub SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr)
/*
* 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment