Author: pschweitzer
Date: Sat Aug 30 15:22:35 2008
New Revision: 35816
URL:
http://svn.reactos.org/svn/reactos?rev=35816&view=rev
Log:
- Primary implementation of sfc_os.dll.
- Linked some functions of sfc.dll to sfc_os.dll
Added:
trunk/reactos/dll/win32/sfc_os/ (with props)
trunk/reactos/dll/win32/sfc_os/precomp.h (with props)
trunk/reactos/dll/win32/sfc_os/sfc_os.c (with props)
trunk/reactos/dll/win32/sfc_os/sfc_os.rbuild (with props)
trunk/reactos/dll/win32/sfc_os/sfc_os.spec (with props)
Modified:
trunk/reactos/baseaddress.rbuild
trunk/reactos/boot/bootdata/packages/reactos.dff
trunk/reactos/dll/win32/sfc/sfc.spec
trunk/reactos/dll/win32/win32.rbuild
Modified: trunk/reactos/baseaddress.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/baseaddress.rbuild?rev=358…
==============================================================================
--- trunk/reactos/baseaddress.rbuild [iso-8859-1] (original)
+++ trunk/reactos/baseaddress.rbuild [iso-8859-1] Sat Aug 30 15:22:35 2008
@@ -149,6 +149,7 @@
<property name="BASEADDRESS_GDIPLUS" value="0x76a00000" />
<property name="BASEADDRESS_ATL" value="0x76a80000" />
<property name="BASEADDRESS_SFC" value="0x76b50000" />
+ <property name="BASEADDRESS_SFC_OS" value="0x76c10000" />
<property name="BASEADDRESS_WINTRUST" value="0x76c30000" />
<property name="BASEADDRESS_IMAGEHLP" value="0x76c90000" />
<property name="BASEADDRESS_CLUSAPI" value="0x76d10000" />
Modified: trunk/reactos/boot/bootdata/packages/reactos.dff
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/packages/rea…
==============================================================================
--- trunk/reactos/boot/bootdata/packages/reactos.dff [iso-8859-1] (original)
+++ trunk/reactos/boot/bootdata/packages/reactos.dff [iso-8859-1] Sat Aug 30 15:22:35
2008
@@ -321,6 +321,7 @@
dll\win32\serialui\serialui.dll 1
dll\win32\setupapi\setupapi.dll 1
dll\win32\sfc\sfc.dll 1
+dll\win32\sfc_os\sfc_os.dll 1
dll\win32\shdocvw\shdocvw.dll 1
dll\win32\shell32\shell32.dll 1
dll\win32\shfolder\shfolder.dll 1
Modified: trunk/reactos/dll/win32/sfc/sfc.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sfc/sfc.spec?rev…
==============================================================================
--- trunk/reactos/dll/win32/sfc/sfc.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/sfc/sfc.spec [iso-8859-1] Sat Aug 30 15:22:35 2008
@@ -10,9 +10,9 @@
@ stdcall SRSetRestorePoint (ptr ptr) SRSetRestorePointA
@ stdcall SRSetRestorePointA (ptr ptr)
@ stdcall SRSetRestorePointW (ptr ptr)
-@ stub SfcGetNextProtectedFile
-@ stub SfcIsFileProtected
+@ stdcall SfcGetNextProtectedFile (ptr ptr) sfc_os.SfcGetNextProtectedFile
+@ stdcall SfcIsFileProtected (ptr wstr) sfc_os.SfcIsFileProtected
@ stub SfcWLEventLogoff
@ stub SfcWLEventLogon
-@ stdcall SfpVerifyFile (ptr ptr long)
+@ stdcall SfpVerifyFile (str str long)
@ stdcall start (long long ptr) DllMain
Propchange: trunk/reactos/dll/win32/sfc_os/
------------------------------------------------------------------------------
--- bugtraq:logregex (added)
+++ bugtraq:logregex Sat Aug 30 15:22:35 2008
@@ -1,0 +1,2 @@
+([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))?
+(\d+)
Propchange: trunk/reactos/dll/win32/sfc_os/
------------------------------------------------------------------------------
bugtraq:message = See issue #%BUGID% for more details.
Propchange: trunk/reactos/dll/win32/sfc_os/
------------------------------------------------------------------------------
bugtraq:url =
http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: trunk/reactos/dll/win32/sfc_os/
------------------------------------------------------------------------------
tsvn:logminsize = 10
Added: trunk/reactos/dll/win32/sfc_os/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sfc_os/precomp.h…
==============================================================================
--- trunk/reactos/dll/win32/sfc_os/precomp.h (added)
+++ trunk/reactos/dll/win32/sfc_os/precomp.h [iso-8859-1] Sat Aug 30 15:22:35 2008
@@ -1,0 +1,6 @@
+#ifndef _PRECOMP_H__
+#define _PRECOMP_H__
+
+#include <windows.h>
+
+#endif
Propchange: trunk/reactos/dll/win32/sfc_os/precomp.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/sfc_os/sfc_os.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sfc_os/sfc_os.c?…
==============================================================================
--- trunk/reactos/dll/win32/sfc_os/sfc_os.c (added)
+++ trunk/reactos/dll/win32/sfc_os/sfc_os.c [iso-8859-1] Sat Aug 30 15:22:35 2008
@@ -1,0 +1,42 @@
+/*
+ * System File Checker (Windows File Protection)
+ *
+ * Copyright 2008 Pierre Schweitzer
+ *
+ * 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 "precomp.h"
+
+HINSTANCE hLibModule;
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ switch (fdwReason)
+ {
+ case DLL_PROCESS_ATTACH:
+ {
+ DisableThreadLibraryCalls(hinstDLL);
+ hLibModule = hinstDLL;
+ break;
+ }
+ case DLL_PROCESS_DETACH:
+ {
+ break;
+ }
+ }
+
+ return TRUE;
+}
Propchange: trunk/reactos/dll/win32/sfc_os/sfc_os.c
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/sfc_os/sfc_os.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sfc_os/sfc_os.rb…
==============================================================================
--- trunk/reactos/dll/win32/sfc_os/sfc_os.rbuild (added)
+++ trunk/reactos/dll/win32/sfc_os/sfc_os.rbuild [iso-8859-1] Sat Aug 30 15:22:35 2008
@@ -1,0 +1,8 @@
+<module name="sfc_os" type="win32dll"
baseaddress="${BASEADDRESS_SFC_OS}" installbase="system32"
installname="sfc_os.dll" allowwarnings="yes">
+ <importlibrary definition="sfc_os.spec.def" />
+ <include base="sfc_os">.</include>
+ <library>kernel32</library>
+ <file>sfc_os.c</file>
+ <file>sfc_os.spec</file>
+ <pch>precomp.h</pch>
+</module>
Propchange: trunk/reactos/dll/win32/sfc_os/sfc_os.rbuild
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/sfc_os/sfc_os.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sfc_os/sfc_os.sp…
==============================================================================
--- trunk/reactos/dll/win32/sfc_os/sfc_os.spec (added)
+++ trunk/reactos/dll/win32/sfc_os/sfc_os.spec [iso-8859-1] Sat Aug 30 15:22:35 2008
@@ -1,0 +1,12 @@
+@ stub sfc_os_1
+@ stub sfc_os_2
+@ stub sfc_os_3
+@ stub sfc_os_4
+@ stub sfc_os_5
+@ stub sfc_os_6
+@ stub sfc_os_7
+@ stub SfcGetNextProtectedFile
+@ stub SfcIsFileProtected
+@ stub SfcWLEventLogoff
+@ stub SfcWLEventLogon
+@ stdcall start (long long ptr) DllMain
Propchange: trunk/reactos/dll/win32/sfc_os/sfc_os.spec
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/dll/win32/win32.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/win32.rbuild?rev…
==============================================================================
--- trunk/reactos/dll/win32/win32.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/win32.rbuild [iso-8859-1] Sat Aug 30 15:22:35 2008
@@ -298,6 +298,9 @@
<directory name="sfc">
<xi:include href="sfc/sfc.rbuild" />
</directory>
+<directory name="sfc_os">
+ <xi:include href="sfc_os/sfc_os.rbuild" />
+</directory>
<directory name="shdocvw">
<xi:include href="shdocvw/shdocvw.rbuild" />
</directory>