Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8021d449
Commit
8021d449
authored
Mar 06, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Add a stub implementation of SaferIdentifyLevel.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
98ea906b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
3 deletions
+40
-3
advapi32.spec
dlls/advapi32/advapi32.spec
+1
-1
security.c
dlls/advapi32/security.c
+11
-0
winsafer.h
include/winsafer.h
+28
-2
No files found.
dlls/advapi32/advapi32.spec
View file @
8021d449
...
...
@@ -717,7 +717,7 @@
@ stdcall SaferCreateLevel(long long long ptr ptr)
# @ stub SaferGetLevelInformation
@ stdcall SaferGetPolicyInformation(long long long ptr ptr ptr)
# @ stub SaferIdentifyLevel
@ stdcall SaferIdentifyLevel(long ptr ptr ptr)
# @ stub SaferRecordEventLogEntry
@ stdcall SaferSetLevelInformation(ptr long ptr long)
# @ stub SaferSetPolicyInformation
...
...
dlls/advapi32/security.c
View file @
8021d449
...
...
@@ -6185,6 +6185,17 @@ BOOL WINAPI SaferGetPolicyInformation(DWORD scope, SAFER_POLICY_INFO_CLASS class
}
/******************************************************************************
* SaferIdentifyLevel [ADVAPI32.@]
*/
BOOL
WINAPI
SaferIdentifyLevel
(
DWORD
count
,
SAFER_CODE_PROPERTIES
*
properties
,
SAFER_LEVEL_HANDLE
*
handle
,
void
*
reserved
)
{
FIXME
(
"(%u %p %p %p) stub
\n
"
,
count
,
properties
,
handle
,
reserved
);
*
handle
=
(
SAFER_LEVEL_HANDLE
)
0xdeadbeef
;
return
TRUE
;
}
/******************************************************************************
* SaferSetLevelInformation [ADVAPI32.@]
*/
BOOL
WINAPI
SaferSetLevelInformation
(
SAFER_LEVEL_HANDLE
handle
,
SAFER_OBJECT_INFO_CLASS
infotype
,
...
...
include/winsafer.h
View file @
8021d449
...
...
@@ -30,6 +30,32 @@ extern "C" {
DECLARE_HANDLE
(
SAFER_LEVEL_HANDLE
);
#define SAFER_MAX_HASH_SIZE 64
#include <pshpack8.h>
typedef
struct
_SAFER_CODE_PROPERTIES_V2
{
DWORD
cbSize
;
DWORD
dwCheckFlags
;
LPCWSTR
ImagePath
;
HANDLE
hImageFileHandle
;
DWORD
UrlZoneId
;
BYTE
ImageHash
[
SAFER_MAX_HASH_SIZE
];
DWORD
dwImageHashSize
;
LARGE_INTEGER
ImageSize
;
ALG_ID
HashAlgorithm
;
LPBYTE
pByteBlock
;
HWND
hWndParent
;
DWORD
dwWVTUIChoice
;
LPCWSTR
PackageMoniker
;
LPCWSTR
PackagePublisher
;
LPCWSTR
PackageName
;
ULONG64
PackageVersion
;
BOOL
PackageIsFramework
;
}
SAFER_CODE_PROPERTIES_V2
,
*
PSAFER_CODE_PROPERTIES_V2
;
typedef
SAFER_CODE_PROPERTIES_V2
SAFER_CODE_PROPERTIES
,
*
PSAFER_CODE_PROPERTIES
;
#include <poppack.h>
#define SAFER_SCOPEID_MACHINE 1
#define SAFER_SCOPEID_USER 2
...
...
@@ -41,8 +67,6 @@ DECLARE_HANDLE(SAFER_LEVEL_HANDLE);
#define SAFER_LEVEL_OPEN 1
WINADVAPI
BOOL
WINAPI
SaferCreateLevel
(
DWORD
,
DWORD
,
DWORD
,
SAFER_LEVEL_HANDLE
*
,
LPVOID
);
typedef
enum
_SAFER_POLICY_INFO_CLASS
{
SaferPolicyLevelList
=
1
,
SaferPolicyEnableTransparentEnforcement
,
...
...
@@ -70,7 +94,9 @@ typedef enum _SAFER_OBJECT_INFO_CLASS {
SaferObjectExtendedError
}
SAFER_OBJECT_INFO_CLASS
;
WINADVAPI
BOOL
WINAPI
SaferCreateLevel
(
DWORD
,
DWORD
,
DWORD
,
SAFER_LEVEL_HANDLE
*
,
LPVOID
);
WINADVAPI
BOOL
WINAPI
SaferGetPolicyInformation
(
DWORD
,
SAFER_POLICY_INFO_CLASS
,
DWORD
,
PVOID
,
PDWORD
,
LPVOID
);
WINADVAPI
BOOL
WINAPI
SaferIdentifyLevel
(
DWORD
,
PSAFER_CODE_PROPERTIES
,
SAFER_LEVEL_HANDLE
*
,
LPVOID
);
WINADVAPI
BOOL
WINAPI
SaferSetLevelInformation
(
SAFER_LEVEL_HANDLE
,
SAFER_OBJECT_INFO_CLASS
,
LPVOID
,
DWORD
);
#ifdef __cplusplus
...
...
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