#include <guiddef.h>
#include <wincrypt.h>
#include <pshpack8.h>
#include <poppack.h>
Go to the source code of this file.
|
enum | _SAFER_OBJECT_INFO_CLASS {
SaferObjectLevelId = 1
, SaferObjectScopeId = 2
, SaferObjectFriendlyName = 3
, SaferObjectDescription = 4
,
SaferObjectBuiltin = 5
, SaferObjectDisallowed = 6
, SaferObjectDisableMaxPrivilege = 7
, SaferObjectInvertDeletedPrivileges = 8
,
SaferObjectDeletedPrivileges = 9
, SaferObjectDefaultOwner = 10
, SaferObjectSidsToDisable = 11
, SaferObjectRestrictedSidsInverted = 12
,
SaferObjectRestrictedSidsAdded = 13
, SaferObjectAllIdentificationGuids = 14
, SaferObjectSingleIdentification = 15
, SaferObjectExtendedError = 16
} |
|
enum | _SAFER_POLICY_INFO_CLASS {
SaferPolicyLevelList = 1
, SaferPolicyEnableTransparentEnforcement = 2
, SaferPolicyDefaultLevel = 3
, SaferPolicyEvaluateUserScope = 4
,
SaferPolicyScopeFlags = 5
, SaferPolicyDefaultLevelFlags = 6
, SaferPolicyAuthenticodeEnabled = 7
} |
|
enum | _SAFER_IDENTIFICATION_TYPES {
SaferIdentityDefault = 0
, SaferIdentityTypeImageName = 1
, SaferIdentityTypeImageHash = 2
, SaferIdentityTypeUrlZone = 3
,
SaferIdentityTypeCertificate = 4
} |
|
|
| DECLARE_HANDLE (SAFER_LEVEL_HANDLE) |
|
WINADVAPI BOOL WINAPI | SaferCloseLevel (_In_ SAFER_LEVEL_HANDLE hLevelHandle) |
|
WINADVAPI BOOL WINAPI | SaferComputeTokenFromLevel (_In_ SAFER_LEVEL_HANDLE LevelHandle, _In_opt_ HANDLE InAccessToken, _Out_ PHANDLE OutAccessToken, _In_ DWORD dwFlags, _Inout_opt_ PVOID pReserved) |
|
WINADVAPI BOOL WINAPI | SaferCreateLevel (_In_ DWORD dwScopeId, _In_ DWORD dwLevelId, _In_ DWORD OpenFlags, _Outptr_ SAFER_LEVEL_HANDLE *pLevelHandle, _Reserved_ PVOID pReserved) |
|
WINADVAPI BOOL WINAPI | SaferGetLevelInformation (_In_ SAFER_LEVEL_HANDLE LevelHandle, _In_ SAFER_OBJECT_INFO_CLASS dwInfoType, _Out_writes_bytes_opt_(dwInBufferSize) PVOID pQueryBuffer, _In_ DWORD dwInBufferSize, _Out_ PDWORD pdwOutBufferSize) |
|
WINADVAPI BOOL WINAPI | SaferGetPolicyInformation (_In_ DWORD dwScopeId, _In_ SAFER_POLICY_INFO_CLASS SaferPolicyInfoClass, _In_ DWORD InfoBufferSize, _Out_writes_bytes_opt_(InfoBufferSize) PVOID InfoBuffer, _Out_ PDWORD InfoBufferRetSize, _Reserved_ PVOID pReserved) |
|
WINADVAPI BOOL WINAPI | SaferIdentifyLevel (_In_ DWORD dwNumProperties, _In_reads_opt_(dwNumProperties) PSAFER_CODE_PROPERTIES pCodeProperties, _Outptr_ SAFER_LEVEL_HANDLE *pLevelHandle, _Reserved_ PVOID pReserved) |
|
WINADVAPI BOOL WINAPI | SaferiIsExecutableFileType (_In_ PCWSTR szFullPath, _In_ BOOLEAN bFromShellExecute) |
|
WINADVAPI BOOL WINAPI | SaferRecordEventLogEntry (_In_ SAFER_LEVEL_HANDLE hLevel, _In_ PCWSTR szTargetPath, _Reserved_ PVOID pReserved) |
|
WINADVAPI BOOL WINAPI | SaferSetLevelInformation (_In_ SAFER_LEVEL_HANDLE LevelHandle, _In_ SAFER_OBJECT_INFO_CLASS dwInfoType, _In_reads_bytes_(dwInBufferSize) PVOID pQueryBuffer, _In_ DWORD dwInBufferSize) |
|
WINADVAPI BOOL WINAPI | SaferSetPolicyInformation (_In_ DWORD dwScopeId, _In_ SAFER_POLICY_INFO_CLASS SaferPolicyInfoClass, _In_ DWORD InfoBufferSize, _In_reads_bytes_(InfoBufferSize) PVOID InfoBuffer, _Reserved_ PVOID pReserved) |
|
◆ _WINSAFER_H
◆ SAFER_CRITERIA_APPX_PACKAGE
#define SAFER_CRITERIA_APPX_PACKAGE 0x0020 |
◆ SAFER_CRITERIA_AUTHENTICODE
#define SAFER_CRITERIA_AUTHENTICODE 0x0008 |
◆ SAFER_CRITERIA_IMAGEHASH
#define SAFER_CRITERIA_IMAGEHASH 0x0004 |
◆ SAFER_CRITERIA_IMAGEPATH
#define SAFER_CRITERIA_IMAGEPATH 0x0001 |
◆ SAFER_CRITERIA_IMAGEPATH_NT
#define SAFER_CRITERIA_IMAGEPATH_NT 0x1000 |
◆ SAFER_CRITERIA_NOSIGNEDHASH
#define SAFER_CRITERIA_NOSIGNEDHASH 0x0002 |
◆ SAFER_CRITERIA_URLZONE
#define SAFER_CRITERIA_URLZONE 0x0010 |
◆ SAFER_LEVEL_OPEN
◆ SAFER_LEVELID_CONSTRAINED
#define SAFER_LEVELID_CONSTRAINED 0x10000 |
◆ SAFER_LEVELID_DISALLOWED
#define SAFER_LEVELID_DISALLOWED 0x00000 |
◆ SAFER_LEVELID_FULLYTRUSTED
#define SAFER_LEVELID_FULLYTRUSTED 0x40000 |
◆ SAFER_LEVELID_NORMALUSER
#define SAFER_LEVELID_NORMALUSER 0x20000 |
◆ SAFER_LEVELID_UNTRUSTED
#define SAFER_LEVELID_UNTRUSTED 0x01000 |
◆ SAFER_MAX_DESCRIPTION_SIZE
#define SAFER_MAX_DESCRIPTION_SIZE 256 |
◆ SAFER_MAX_FRIENDLYNAME_SIZE
#define SAFER_MAX_FRIENDLYNAME_SIZE 256 |
◆ SAFER_MAX_HASH_SIZE
#define SAFER_MAX_HASH_SIZE 64 |
◆ SAFER_POLICY_BLOCK_CLIENT_UI
#define SAFER_POLICY_BLOCK_CLIENT_UI 0x00002000 |
◆ SAFER_POLICY_HASH_DUPLICATE
#define SAFER_POLICY_HASH_DUPLICATE 0x00040000 |
◆ SAFER_POLICY_JOBID_CONSTRAINED
#define SAFER_POLICY_JOBID_CONSTRAINED 0x04000000 |
◆ SAFER_POLICY_JOBID_MASK
#define SAFER_POLICY_JOBID_MASK 0xFF000000 |
◆ SAFER_POLICY_JOBID_UNTRUSTED
#define SAFER_POLICY_JOBID_UNTRUSTED 0x03000000 |
◆ SAFER_POLICY_ONLY_AUDIT
#define SAFER_POLICY_ONLY_AUDIT 0x00001000 |
◆ SAFER_POLICY_ONLY_EXES
#define SAFER_POLICY_ONLY_EXES 0x00010000 |
◆ SAFER_POLICY_SANDBOX_INERT
#define SAFER_POLICY_SANDBOX_INERT 0x00020000 |
◆ SAFER_POLICY_UIFLAGS_HIDDEN
#define SAFER_POLICY_UIFLAGS_HIDDEN 0x00000004 |
◆ SAFER_POLICY_UIFLAGS_INFORMATION_PROMPT
#define SAFER_POLICY_UIFLAGS_INFORMATION_PROMPT 0x00000001 |
◆ SAFER_POLICY_UIFLAGS_MASK
#define SAFER_POLICY_UIFLAGS_MASK 0x000000FF |
◆ SAFER_POLICY_UIFLAGS_OPTION_PROMPT
#define SAFER_POLICY_UIFLAGS_OPTION_PROMPT 0x00000002 |
◆ SAFER_SCOPEID_MACHINE
#define SAFER_SCOPEID_MACHINE 1 |
◆ SAFER_SCOPEID_USER
◆ SAFER_TOKEN_COMPARE_ONLY
#define SAFER_TOKEN_COMPARE_ONLY 0x2 |
◆ SAFER_TOKEN_MAKE_INERT
#define SAFER_TOKEN_MAKE_INERT 0x4 |
◆ SAFER_TOKEN_NULL_IF_EQUAL
#define SAFER_TOKEN_NULL_IF_EQUAL 0x1 |
◆ SAFER_TOKEN_WANT_FLAGS
#define SAFER_TOKEN_WANT_FLAGS 0x8 |
◆ SRP_POLICY_APPX
#define SRP_POLICY_APPX L"APPX" |
◆ SRP_POLICY_DLL
◆ SRP_POLICY_EXE
◆ SRP_POLICY_MSI
◆ SRP_POLICY_NOV2
#define SRP_POLICY_NOV2 L"IGNORESRPV2" |
◆ SRP_POLICY_SCRIPT
#define SRP_POLICY_SCRIPT L"SCRIPT" |
◆ SRP_POLICY_SHELL
#define SRP_POLICY_SHELL L"SHELL" |
◆ SRP_POLICY_WLDPMSI
#define SRP_POLICY_WLDPMSI L"WLDPMSI" |
◆ SRP_POLICY_WLDPSCRIPT
#define SRP_POLICY_WLDPSCRIPT L"WLDPSCRIPT" |
◆ PSAFER_CODE_PROPERTIES
◆ PSAFER_CODE_PROPERTIES_V1
◆ PSAFER_CODE_PROPERTIES_V2
◆ PSAFER_HASH_IDENTIFICATION
◆ PSAFER_HASH_IDENTIFICATION2
◆ PSAFER_IDENTIFICATION_HEADER
◆ PSAFER_PATHNAME_IDENTIFICATION
◆ PSAFER_URLZONE_IDENTIFICATION
◆ SAFER_CODE_PROPERTIES
◆ SAFER_CODE_PROPERTIES_V1
◆ SAFER_CODE_PROPERTIES_V2
◆ SAFER_HASH_IDENTIFICATION
◆ SAFER_HASH_IDENTIFICATION2
◆ SAFER_IDENTIFICATION_HEADER
◆ SAFER_IDENTIFICATION_TYPES
◆ SAFER_OBJECT_INFO_CLASS
◆ SAFER_PATHNAME_IDENTIFICATION
◆ SAFER_POLICY_INFO_CLASS
◆ SAFER_URLZONE_IDENTIFICATION
◆ _SAFER_IDENTIFICATION_TYPES
Enumerator |
---|
SaferIdentityDefault | |
SaferIdentityTypeImageName | |
SaferIdentityTypeImageHash | |
SaferIdentityTypeUrlZone | |
SaferIdentityTypeCertificate | |
Definition at line 145 of file winsafer.h.
146{
@ SaferIdentityTypeUrlZone
@ SaferIdentityTypeCertificate
@ SaferIdentityTypeImageHash
@ SaferIdentityTypeImageName
enum _SAFER_IDENTIFICATION_TYPES SAFER_IDENTIFICATION_TYPES
◆ _SAFER_OBJECT_INFO_CLASS
Enumerator |
---|
SaferObjectLevelId | |
SaferObjectScopeId | |
SaferObjectFriendlyName | |
SaferObjectDescription | |
SaferObjectBuiltin | |
SaferObjectDisallowed | |
SaferObjectDisableMaxPrivilege | |
SaferObjectInvertDeletedPrivileges | |
SaferObjectDeletedPrivileges | |
SaferObjectDefaultOwner | |
SaferObjectSidsToDisable | |
SaferObjectRestrictedSidsInverted | |
SaferObjectRestrictedSidsAdded | |
SaferObjectAllIdentificationGuids | |
SaferObjectSingleIdentification | |
SaferObjectExtendedError | |
Definition at line 114 of file winsafer.h.
115{
@ SaferObjectRestrictedSidsInverted
@ SaferObjectSidsToDisable
@ SaferObjectDisableMaxPrivilege
@ SaferObjectInvertDeletedPrivileges
@ SaferObjectDeletedPrivileges
@ SaferObjectDefaultOwner
@ SaferObjectExtendedError
@ SaferObjectAllIdentificationGuids
@ SaferObjectRestrictedSidsAdded
@ SaferObjectSingleIdentification
@ SaferObjectFriendlyName
enum _SAFER_OBJECT_INFO_CLASS SAFER_OBJECT_INFO_CLASS
◆ _SAFER_POLICY_INFO_CLASS
Enumerator |
---|
SaferPolicyLevelList | |
SaferPolicyEnableTransparentEnforcement | |
SaferPolicyDefaultLevel | |
SaferPolicyEvaluateUserScope | |
SaferPolicyScopeFlags | |
SaferPolicyDefaultLevelFlags | |
SaferPolicyAuthenticodeEnabled | |
Definition at line 134 of file winsafer.h.
135{
@ SaferPolicyEnableTransparentEnforcement
@ SaferPolicyDefaultLevel
@ SaferPolicyEvaluateUserScope
@ SaferPolicyAuthenticodeEnabled
@ SaferPolicyDefaultLevelFlags
enum _SAFER_POLICY_INFO_CLASS SAFER_POLICY_INFO_CLASS
◆ DECLARE_HANDLE()
DECLARE_HANDLE |
( |
SAFER_LEVEL_HANDLE |
| ) |
|
◆ SaferCloseLevel()
Definition at line 80 of file safer.c.
82{
83 FIXME(
"(%p) stub\n", hLevelHandle);
84 if (hLevelHandle != (SAFER_LEVEL_HANDLE)0x42)
85 {
88 }
90}
#define ERROR_INVALID_HANDLE
Referenced by START_TEST().
◆ SaferComputeTokenFromLevel()
Definition at line 150 of file safer.c.
156{
157 FIXME(
"(%p, %p, %p, 0x%lx, %p) stub\n", LevelHandle, InAccessToken, OutAccessToken,
dwFlags, pReserved);
160}
#define UlongToHandle(ul)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define SAFER_TOKEN_NULL_IF_EQUAL
◆ SaferCreateLevel()
Definition at line 23 of file safer.c.
29{
30 FIXME(
"(%lu, %lu, %lu, %p, %p) stub\n", dwScopeId, dwLevelId, OpenFlags, pLevelHandle, pReserved);
31 *pLevelHandle = (SAFER_LEVEL_HANDLE)0x42;
33}
◆ SaferGetLevelInformation()
◆ SaferGetPolicyInformation()
Definition at line 119 of file safer.c.
126{
127 FIXME(
"(%lu, %d, %lu, %p, %p, %p) stub\n", dwScopeId, SaferPolicyInfoClass, InfoBufferSize, InfoBuffer, InfoBufferRetSize, pReserved);
130}
#define ERROR_CALL_NOT_IMPLEMENTED
◆ SaferIdentifyLevel()
Definition at line 43 of file safer.c.
48{
50
51 if (pLevelHandle ==
NULL)
52 {
55 }
56
57 for (
i = 0;
i < dwNumProperties;
i++)
58 {
60 {
63 }
64 }
65
66 FIXME(
"(%lu, %p, %p, %p) stub\n", dwNumProperties, pCodeProperties, pLevelHandle, pReserved);
67
68 *pLevelHandle = (SAFER_LEVEL_HANDLE)0x42;
70}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
◆ SaferiIsExecutableFileType()
◆ SaferRecordEventLogEntry()
◆ SaferSetLevelInformation()
◆ SaferSetPolicyInformation()