rpcrt4: Pass WT_EXECUTELONGFUNCTION to QueueUserWorkItem since the
[wine] / dlls / sfc / sfc_main.c
1 /*
2  * Implementation of the System File Checker (Windows File Protection)
3  *
4  * Copyright 2006 Detlef Riekenberg
5  *
6  * This file contains only stubs to get the localspl.dll up and running
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21  */
22
23 #include <stdarg.h>
24
25 #include "windef.h"
26 #include "winbase.h"
27 #include "winerror.h"
28 #include "sfc.h"
29 #include "wine/debug.h"
30
31 WINE_DEFAULT_DEBUG_CHANNEL(sfc);
32
33 /******************************************************************
34  *              SfcIsFileProtected     [SFC.@]
35  *
36  * Check, if the given File is protected by the System
37  *
38  * PARAMS
39  *  RpcHandle    [I] This must be NULL
40  *  ProtFileName [I] Filename with Path to check
41  *
42  * RETURNS
43  *  Failure: FALSE with GetLastError() != ERROR_FILE_NOT_FOUND
44  *  Success: TRUE, when the File is Protected
45  *           FALSE with GetLastError() == ERROR_FILE_NOT_FOUND,
46  *           when the File is not Protected
47  *
48  *
49  * BUGS
50  *  We return always the Result for: "File is not Protected"
51  *
52  */
53 BOOL WINAPI SfcIsFileProtected(HANDLE RpcHandle, LPCWSTR ProtFileName)
54 {
55     static BOOL reported = FALSE;
56
57     if (reported) {
58         TRACE("(%p, %s) stub\n", RpcHandle, debugstr_w(ProtFileName));
59     }
60     else
61     {
62         FIXME("(%p, %s) stub\n", RpcHandle, debugstr_w(ProtFileName));
63         reported = TRUE;
64     }
65
66     SetLastError(ERROR_FILE_NOT_FOUND);
67     return FALSE;
68 }