Commit 7dbe9a67 authored by Glenn Wurster's avatar Glenn Wurster Committed by Alexandre Julliard

sfc_os: Add stub implementation for SfcIsKeyProtected.

parent 3e1fcc0e
@ stub SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr) sfc_os.SfcIsFileProtected
@ stdcall SfcIsKeyProtected(long wstr long) sfc_os.SfcIsKeyProtected
......@@ -84,3 +84,42 @@ BOOL WINAPI SfcIsFileProtected(HANDLE RpcHandle, LPCWSTR ProtFileName)
SetLastError(ERROR_FILE_NOT_FOUND);
return FALSE;
}
/******************************************************************
* SfcIsKeyProtected [sfc_os.@]
*
* Check, if the given Registry Key is protected by the System
*
* PARAMS
* hKey [I] Handle to the root registry key
* lpSubKey [I] Name of the subkey to check
* samDesired [I] The Registry View to Examine (32 or 64 bit)
*
* RETURNS
* Failure: FALSE with GetLastError() != ERROR_FILE_NOT_FOUND
* Success: TRUE, when the Key is Protected
* FALSE with GetLastError() == ERROR_FILE_NOT_FOUND,
* when the Key is not Protected
*
*/
BOOL WINAPI SfcIsKeyProtected(HKEY hKey, LPCWSTR lpSubKey, REGSAM samDesired)
{
static BOOL reported = FALSE;
if (reported) {
TRACE("(%p, %s) stub\n", hKey, debugstr_w(lpSubKey));
}
else
{
FIXME("(%p, %s) stub\n", hKey, debugstr_w(lpSubKey));
reported = TRUE;
}
if( !hKey ) {
SetLastError(ERROR_INVALID_HANDLE);
return FALSE;
}
SetLastError(ERROR_FILE_NOT_FOUND);
return FALSE;
}
@ stub SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr)
@ stdcall SfcIsKeyProtected(long wstr long)
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