2 * Implementation of the System File Checker (Windows File Protection)
4 * Copyright 2006 Detlef Riekenberg
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
28 #include "srrestoreptapi.h"
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(sfc
);
33 /******************************************************************
34 * SfcGetNextProtectedFile [sfc_os.@]
36 BOOL WINAPI
SfcGetNextProtectedFile(HANDLE handle
, PROTECTED_FILE_DATA
*data
)
38 FIXME("%p %p\n", handle
, data
);
40 SetLastError(ERROR_NO_MORE_FILES
);
44 /******************************************************************
45 * SfcIsFileProtected [sfc_os.@]
47 * Check, if the given File is protected by the System
50 * RpcHandle [I] This must be NULL
51 * ProtFileName [I] Filename with Path to check
54 * Failure: FALSE with GetLastError() != ERROR_FILE_NOT_FOUND
55 * Success: TRUE, when the File is Protected
56 * FALSE with GetLastError() == ERROR_FILE_NOT_FOUND,
57 * when the File is not Protected
61 * We return always the Result for: "File is not Protected"
64 BOOL WINAPI
SfcIsFileProtected(HANDLE RpcHandle
, LPCWSTR ProtFileName
)
66 static BOOL reported
= FALSE
;
69 TRACE("(%p, %s) stub\n", RpcHandle
, debugstr_w(ProtFileName
));
73 FIXME("(%p, %s) stub\n", RpcHandle
, debugstr_w(ProtFileName
));
77 SetLastError(ERROR_FILE_NOT_FOUND
);
81 /******************************************************************
82 * SfcIsKeyProtected [sfc_os.@]
84 * Check, if the given Registry Key is protected by the System
87 * hKey [I] Handle to the root registry key
88 * lpSubKey [I] Name of the subkey to check
89 * samDesired [I] The Registry View to Examine (32 or 64 bit)
92 * Failure: FALSE with GetLastError() != ERROR_FILE_NOT_FOUND
93 * Success: TRUE, when the Key is Protected
94 * FALSE with GetLastError() == ERROR_FILE_NOT_FOUND,
95 * when the Key is not Protected
98 BOOL WINAPI
SfcIsKeyProtected(HKEY hKey
, LPCWSTR lpSubKey
, REGSAM samDesired
)
100 static BOOL reported
= FALSE
;
103 TRACE("(%p, %s) stub\n", hKey
, debugstr_w(lpSubKey
));
107 FIXME("(%p, %s) stub\n", hKey
, debugstr_w(lpSubKey
));
112 SetLastError(ERROR_INVALID_HANDLE
);
116 SetLastError(ERROR_FILE_NOT_FOUND
);
120 DWORD WINAPI
SfcConnectToServer(DWORD unknown
)
122 FIXME("%lx\n", unknown
);
126 BOOL WINAPI
SfpVerifyFile(LPCSTR filename
, LPSTR error
, DWORD size
)
128 FIXME("%s: stub\n", debugstr_a(filename
));
129 SetLastError( ERROR_CALL_NOT_IMPLEMENTED
);
133 BOOL WINAPI
SRSetRestorePointA(RESTOREPOINTINFOA
*restorepoint
, STATEMGRSTATUS
*status
)
135 FIXME("%p %p\n", restorepoint
, status
);
136 status
->nStatus
= ERROR_SUCCESS
;
140 BOOL WINAPI
SRSetRestorePointW(RESTOREPOINTINFOW
*restorepoint
, STATEMGRSTATUS
*status
)
142 FIXME("%p %p\n", restorepoint
, status
);
143 status
->nStatus
= ERROR_SUCCESS
;