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

sfc: Forward SfcIsFileProtected to sfc_os.dll.

parent 161897e1
@ stub SfcGetNextProtectedFile @ stub SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr) @ stdcall SfcIsFileProtected(ptr wstr) sfc_os.SfcIsFileProtected
...@@ -20,49 +20,35 @@ ...@@ -20,49 +20,35 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
/*
* Moved to sfc_os.dll since XP
*
*/
#include <stdarg.h> #include <stdarg.h>
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
#include "sfc.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(sfc); WINE_DEFAULT_DEBUG_CHANNEL(sfc);
/****************************************************************** /******************************************************************
* SfcIsFileProtected [SFC.@] * DllMain
*
* 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) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ {
static BOOL reported = FALSE; TRACE("(%p, %d, %p)\n",hinstDLL, fdwReason, lpvReserved);
if (reported) { switch(fdwReason)
TRACE("(%p, %s) stub\n", RpcHandle, debugstr_w(ProtFileName));
}
else
{ {
FIXME("(%p, %s) stub\n", RpcHandle, debugstr_w(ProtFileName)); case DLL_WINE_PREATTACH:
reported = TRUE; return FALSE; /* prefer native version */
}
SetLastError(ERROR_FILE_NOT_FOUND); case DLL_PROCESS_ATTACH:
return FALSE; DisableThreadLibraryCalls( hinstDLL );
break;
}
return TRUE;
} }
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