Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7dbe9a67
Commit
7dbe9a67
authored
Jun 01, 2007
by
Glenn Wurster
Committed by
Alexandre Julliard
Jun 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfc_os: Add stub implementation for SfcIsKeyProtected.
parent
3e1fcc0e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
sfc.spec
dlls/sfc/sfc.spec
+1
-0
sfc_os.c
dlls/sfc_os/sfc_os.c
+39
-0
sfc_os.spec
dlls/sfc_os/sfc_os.spec
+1
-0
No files found.
dlls/sfc/sfc.spec
View file @
7dbe9a67
@ stub SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr) sfc_os.SfcIsFileProtected
@ stdcall SfcIsKeyProtected(long wstr long) sfc_os.SfcIsKeyProtected
dlls/sfc_os/sfc_os.c
View file @
7dbe9a67
...
...
@@ -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
;
}
dlls/sfc_os/sfc_os.spec
View file @
7dbe9a67
@ stub SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr)
@ stdcall SfcIsKeyProtected(long wstr long)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment