<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" />
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
@ 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
\ No newline at end of file
--- /dev/null
+#ifndef _PRECOMP_H__
+#define _PRECOMP_H__
+
+#include <windows.h>
+
+#endif
--- /dev/null
+/*
+ * 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;
+}
--- /dev/null
+<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>
--- /dev/null
+@ 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
\ No newline at end of file
<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>