- Formatting fix

svn path=/trunk/; revision=38107
This commit is contained in:
Dmitry Chapyshev 2008-12-15 13:54:34 +00:00
parent be2c347725
commit 32dfe68057

View file

@ -6,6 +6,7 @@ extern "C" {
#endif #endif
#define AccFree LocalFree #define AccFree LocalFree
#define ACTRL_RESERVED 0x00000000 #define ACTRL_RESERVED 0x00000000
#define ACTRL_ACCESS_PROTECTED 0x00000001 #define ACTRL_ACCESS_PROTECTED 0x00000001
#define ACTRL_ACCESS_ALLOWED 0x00000001 #define ACTRL_ACCESS_ALLOWED 0x00000001
@ -29,11 +30,13 @@ extern "C" {
#define ACTRL_FILE_READ_ATTRIB 0x00000080 #define ACTRL_FILE_READ_ATTRIB 0x00000080
#define ACTRL_FILE_WRITE_ATTRIB 0x00000100 #define ACTRL_FILE_WRITE_ATTRIB 0x00000100
#define ACTRL_FILE_CREATE_PIPE 0x00000200 #define ACTRL_FILE_CREATE_PIPE 0x00000200
#define ACTRL_DIR_LIST 0x00000001 #define ACTRL_DIR_LIST 0x00000001
#define ACTRL_DIR_CREATE_OBJECT 0x00000002 #define ACTRL_DIR_CREATE_OBJECT 0x00000002
#define ACTRL_DIR_CREATE_CHILD 0x00000004 #define ACTRL_DIR_CREATE_CHILD 0x00000004
#define ACTRL_DIR_DELETE_CHILD 0x00000040 #define ACTRL_DIR_DELETE_CHILD 0x00000040
#define ACTRL_DIR_TRAVERSE 0x00000020 #define ACTRL_DIR_TRAVERSE 0x00000020
#define ACTRL_KERNEL_TERMINATE 0x00000001 #define ACTRL_KERNEL_TERMINATE 0x00000001
#define ACTRL_KERNEL_THREAD 0x00000002 #define ACTRL_KERNEL_THREAD 0x00000002
#define ACTRL_KERNEL_VM 0x00000004 #define ACTRL_KERNEL_VM 0x00000004
@ -50,11 +53,13 @@ extern "C" {
#define ACTRL_KERNEL_TOKEN 0x00002000 #define ACTRL_KERNEL_TOKEN 0x00002000
#define ACTRL_KERNEL_IMPERSONATE 0x00004000 #define ACTRL_KERNEL_IMPERSONATE 0x00004000
#define ACTRL_KERNEL_DIMPERSONATE 0x00008000 #define ACTRL_KERNEL_DIMPERSONATE 0x00008000
#define ACTRL_PRINT_SADMIN 0x00000001 #define ACTRL_PRINT_SADMIN 0x00000001
#define ACTRL_PRINT_SLIST 0x00000002 #define ACTRL_PRINT_SLIST 0x00000002
#define ACTRL_PRINT_PADMIN 0x00000004 #define ACTRL_PRINT_PADMIN 0x00000004
#define ACTRL_PRINT_PUSE 0x00000008 #define ACTRL_PRINT_PUSE 0x00000008
#define ACTRL_PRINT_JADMIN 0x00000010 #define ACTRL_PRINT_JADMIN 0x00000010
#define ACTRL_SVC_GET_INFO 0x00000001 #define ACTRL_SVC_GET_INFO 0x00000001
#define ACTRL_SVC_SET_INFO 0x00000002 #define ACTRL_SVC_SET_INFO 0x00000002
#define ACTRL_SVC_STATUS 0x00000004 #define ACTRL_SVC_STATUS 0x00000004
@ -64,12 +69,14 @@ extern "C" {
#define ACTRL_SVC_PAUSE 0x00000040 #define ACTRL_SVC_PAUSE 0x00000040
#define ACTRL_SVC_INTERROGATE 0x00000080 #define ACTRL_SVC_INTERROGATE 0x00000080
#define ACTRL_SVC_UCONTROL 0x00000100 #define ACTRL_SVC_UCONTROL 0x00000100
#define ACTRL_REG_QUERY 0x00000001 #define ACTRL_REG_QUERY 0x00000001
#define ACTRL_REG_SET 0x00000002 #define ACTRL_REG_SET 0x00000002
#define ACTRL_REG_CREATE_CHILD 0x00000004 #define ACTRL_REG_CREATE_CHILD 0x00000004
#define ACTRL_REG_LIST 0x00000008 #define ACTRL_REG_LIST 0x00000008
#define ACTRL_REG_NOTIFY 0x00000010 #define ACTRL_REG_NOTIFY 0x00000010
#define ACTRL_REG_LINK 0x00000020 #define ACTRL_REG_LINK 0x00000020
#define ACTRL_WIN_CLIPBRD 0x00000001 #define ACTRL_WIN_CLIPBRD 0x00000001
#define ACTRL_WIN_GLOBAL_ATOMS 0x00000002 #define ACTRL_WIN_GLOBAL_ATOMS 0x00000002
#define ACTRL_WIN_CREATE 0x00000004 #define ACTRL_WIN_CREATE 0x00000004
@ -79,238 +86,300 @@ extern "C" {
#define ACTRL_WIN_WRITE_ATTRIBS 0x00000040 #define ACTRL_WIN_WRITE_ATTRIBS 0x00000040
#define ACTRL_WIN_SCREEN 0x00000080 #define ACTRL_WIN_SCREEN 0x00000080
#define ACTRL_WIN_EXIT 0x00000100 #define ACTRL_WIN_EXIT 0x00000100
#define ACTRL_ACCESS_NO_OPTIONS 0x00000000 #define ACTRL_ACCESS_NO_OPTIONS 0x00000000
#define ACTRL_ACCESS_SUPPORTS_OBJECT_ENTRIES 0x00000001 #define ACTRL_ACCESS_SUPPORTS_OBJECT_ENTRIES 0x00000001
#define ACCCTRL_DEFAULT_PROVIDERA "Windows NT Access Provider" #define ACCCTRL_DEFAULT_PROVIDERA "Windows NT Access Provider"
#define ACCCTRL_DEFAULT_PROVIDERW L"Windows NT Access Provider" #define ACCCTRL_DEFAULT_PROVIDERW L"Windows NT Access Provider"
#define TRUSTEE_ACCESS_ALLOWED 0x00000001L #define TRUSTEE_ACCESS_ALLOWED 0x00000001L
#define TRUSTEE_ACCESS_READ 0x00000002L #define TRUSTEE_ACCESS_READ 0x00000002L
#define TRUSTEE_ACCESS_WRITE 0x00000004L #define TRUSTEE_ACCESS_WRITE 0x00000004L
#define TRUSTEE_ACCESS_EXPLICIT 0x00000001L #define TRUSTEE_ACCESS_EXPLICIT 0x00000001L
#define TRUSTEE_ACCESS_READ_WRITE (TRUSTEE_ACCESS_READ | TRUSTEE_ACCESS_WRITE) #define TRUSTEE_ACCESS_READ_WRITE (TRUSTEE_ACCESS_READ | TRUSTEE_ACCESS_WRITE)
#define TRUSTEE_ACCESS_ALL 0xFFFFFFFFL #define TRUSTEE_ACCESS_ALL 0xFFFFFFFFL
#define NO_INHERITANCE 0x0
#define SUB_OBJECTS_ONLY_INHERIT 0x1 #define NO_INHERITANCE 0x0
#define SUB_CONTAINERS_ONLY_INHERIT 0x2 #define SUB_OBJECTS_ONLY_INHERIT 0x1
#define SUB_CONTAINERS_ONLY_INHERIT 0x2
#define SUB_CONTAINERS_AND_OBJECTS_INHERIT 0x3 #define SUB_CONTAINERS_AND_OBJECTS_INHERIT 0x3
#define INHERIT_NO_PROPAGATE 0x4 #define INHERIT_NO_PROPAGATE 0x4
#define INHERIT_ONLY 0x8 #define INHERIT_ONLY 0x8
#define INHERITED_ACCESS_ENTRY 0x10 #define INHERITED_ACCESS_ENTRY 0x10
#define INHERITED_PARENT 0x10000000 #define INHERITED_PARENT 0x10000000
#define INHERITED_GRANDPARENT 0x20000000 #define INHERITED_GRANDPARENT 0x20000000
#define SI_EDIT_PERMS 0x00000000 #define SI_EDIT_PERMS 0x00000000
#define SI_EDIT_OWNER 0x00000001 #define SI_EDIT_OWNER 0x00000001
#define SI_EDIT_AUDITS 0x00000002 #define SI_EDIT_AUDITS 0x00000002
#define SI_CONTAINER 0x00000004 #define SI_CONTAINER 0x00000004
#define SI_READONLY 0x00000008 #define SI_READONLY 0x00000008
#define SI_ADVANCED 0x00000010 #define SI_ADVANCED 0x00000010
#define SI_RESET 0x00000020 #define SI_RESET 0x00000020
#define SI_OWNER_READONLY 0x00000040 #define SI_OWNER_READONLY 0x00000040
#define SI_EDIT_PROPERTIES 0x00000080 #define SI_EDIT_PROPERTIES 0x00000080
#define SI_OWNER_RECURSE 0x00000100 #define SI_OWNER_RECURSE 0x00000100
#define SI_NO_ACL_PROTECT 0x00000200 #define SI_NO_ACL_PROTECT 0x00000200
#define SI_NO_TREE_APPLY 0x00000400 #define SI_NO_TREE_APPLY 0x00000400
#define SI_PAGE_TITLE 0x00000800 #define SI_PAGE_TITLE 0x00000800
#define SI_SERVER_IS_DC 0x00001000 #define SI_SERVER_IS_DC 0x00001000
#define SI_RESET_DACL_TREE 0x00004000 #define SI_RESET_DACL_TREE 0x00004000
#define SI_RESET_SACL_TREE 0x00008000 #define SI_RESET_SACL_TREE 0x00008000
#define SI_OBJECT_GUID 0x00010000 #define SI_OBJECT_GUID 0x00010000
#define SI_EDIT_EFFECTIVE 0x00020000 #define SI_EDIT_EFFECTIVE 0x00020000
#define SI_RESET_DACL 0x00040000 #define SI_RESET_DACL 0x00040000
#define SI_RESET_SACL 0x00080000 #define SI_RESET_SACL 0x00080000
#define SI_RESET_OWNER 0x00100000 #define SI_RESET_OWNER 0x00100000
#define SI_NO_ADDITIONAL_PERMISSION 0x00200000 #define SI_NO_ADDITIONAL_PERMISSION 0x00200000
#define SI_MAY_WRITE 0x10000000 #define SI_MAY_WRITE 0x10000000
#define SI_EDIT_ALL (SI_EDIT_OWNER |SI_EDIT_PERMS | SI_EDIT_AUDITS) #define SI_EDIT_ALL (SI_EDIT_OWNER |SI_EDIT_PERMS | SI_EDIT_AUDITS)
#define SI_ACCESS_SPECIFIC 0x00010000 #define SI_ACCESS_SPECIFIC 0x00010000
#define SI_ACCESS_GENERAL 0x00020000 #define SI_ACCESS_GENERAL 0x00020000
#define SI_ACCESS_CONTAINER 0x00040000 #define SI_ACCESS_CONTAINER 0x00040000
#define SI_ACCESS_PROPERTY 0x00080000 #define SI_ACCESS_PROPERTY 0x00080000
typedef ULONG INHERIT_FLAGS, *PINHERIT_FLAGS; typedef ULONG INHERIT_FLAGS, *PINHERIT_FLAGS;
typedef ULONG ACCESS_RIGHTS, *PACCESS_RIGHTS; typedef ULONG ACCESS_RIGHTS, *PACCESS_RIGHTS;
typedef enum _ACCESS_MODE { typedef enum _ACCESS_MODE
NOT_USED_ACCESS = 0, {
GRANT_ACCESS, NOT_USED_ACCESS = 0,
SET_ACCESS, GRANT_ACCESS,
DENY_ACCESS, SET_ACCESS,
REVOKE_ACCESS, DENY_ACCESS,
SET_AUDIT_SUCCESS, REVOKE_ACCESS,
SET_AUDIT_FAILURE SET_AUDIT_SUCCESS,
SET_AUDIT_FAILURE
} ACCESS_MODE; } ACCESS_MODE;
typedef enum _SE_OBJECT_TYPE {
SE_UNKNOWN_OBJECT_TYPE = 0, typedef enum _SE_OBJECT_TYPE
SE_FILE_OBJECT, {
SE_SERVICE, SE_UNKNOWN_OBJECT_TYPE = 0,
SE_PRINTER, SE_FILE_OBJECT,
SE_REGISTRY_KEY, SE_SERVICE,
SE_LMSHARE, SE_PRINTER,
SE_KERNEL_OBJECT, SE_REGISTRY_KEY,
SE_WINDOW_OBJECT, SE_LMSHARE,
SE_DS_OBJECT, SE_KERNEL_OBJECT,
SE_DS_OBJECT_ALL, SE_WINDOW_OBJECT,
SE_PROVIDER_DEFINED_OBJECT, SE_DS_OBJECT,
SE_WMIGUID_OBJECT, SE_DS_OBJECT_ALL,
SE_REGISTRY_WOW64_32KEY SE_PROVIDER_DEFINED_OBJECT,
SE_WMIGUID_OBJECT,
SE_REGISTRY_WOW64_32KEY
} SE_OBJECT_TYPE; } SE_OBJECT_TYPE;
typedef enum _TRUSTEE_TYPE {
TRUSTEE_IS_UNKNOWN, typedef enum _TRUSTEE_TYPE
TRUSTEE_IS_USER, {
TRUSTEE_IS_GROUP, TRUSTEE_IS_UNKNOWN,
TRUSTEE_IS_DOMAIN, TRUSTEE_IS_USER,
TRUSTEE_IS_ALIAS, TRUSTEE_IS_GROUP,
TRUSTEE_IS_WELL_KNOWN_GROUP, TRUSTEE_IS_DOMAIN,
TRUSTEE_IS_DELETED, TRUSTEE_IS_ALIAS,
TRUSTEE_IS_INVALID, TRUSTEE_IS_WELL_KNOWN_GROUP,
TRUSTEE_IS_COMPUTER TRUSTEE_IS_DELETED,
TRUSTEE_IS_INVALID,
TRUSTEE_IS_COMPUTER
} TRUSTEE_TYPE; } TRUSTEE_TYPE;
typedef enum _TRUSTEE_FORM {
TRUSTEE_IS_SID, typedef enum _TRUSTEE_FORM
TRUSTEE_IS_NAME, {
TRUSTEE_BAD_FORM, TRUSTEE_IS_SID,
TRUSTEE_IS_OBJECTS_AND_SID, TRUSTEE_IS_NAME,
TRUSTEE_IS_OBJECTS_AND_NAME TRUSTEE_BAD_FORM,
TRUSTEE_IS_OBJECTS_AND_SID,
TRUSTEE_IS_OBJECTS_AND_NAME
} TRUSTEE_FORM; } TRUSTEE_FORM;
typedef enum _MULTIPLE_TRUSTEE_OPERATION {
NO_MULTIPLE_TRUSTEE, typedef enum _MULTIPLE_TRUSTEE_OPERATION
TRUSTEE_IS_IMPERSONATE {
NO_MULTIPLE_TRUSTEE,
TRUSTEE_IS_IMPERSONATE
} MULTIPLE_TRUSTEE_OPERATION; } MULTIPLE_TRUSTEE_OPERATION;
typedef struct _TRUSTEE_A {
struct _TRUSTEE_A *pMultipleTrustee; typedef struct _TRUSTEE_A
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation; {
TRUSTEE_FORM TrusteeForm; struct _TRUSTEE_A *pMultipleTrustee;
TRUSTEE_TYPE TrusteeType; MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation;
LPSTR ptstrName; TRUSTEE_FORM TrusteeForm;
TRUSTEE_TYPE TrusteeType;
LPSTR ptstrName;
} TRUSTEE_A, *PTRUSTEE_A, TRUSTEEA, *PTRUSTEEA; } TRUSTEE_A, *PTRUSTEE_A, TRUSTEEA, *PTRUSTEEA;
typedef struct _TRUSTEE_W {
struct _TRUSTEE_W *pMultipleTrustee; typedef struct _TRUSTEE_W
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation; {
TRUSTEE_FORM TrusteeForm; struct _TRUSTEE_W *pMultipleTrustee;
TRUSTEE_TYPE TrusteeType; MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation;
LPWSTR ptstrName; TRUSTEE_FORM TrusteeForm;
TRUSTEE_TYPE TrusteeType;
LPWSTR ptstrName;
} TRUSTEE_W, *PTRUSTEE_W, TRUSTEEW, *PTRUSTEEW; } TRUSTEE_W, *PTRUSTEE_W, TRUSTEEW, *PTRUSTEEW;
typedef struct _ACTRL_ACCESS_ENTRYA {
TRUSTEE_A Trustee; typedef struct _ACTRL_ACCESS_ENTRYA
ULONG fAccessFlags; {
ACCESS_RIGHTS Access; TRUSTEE_A Trustee;
ACCESS_RIGHTS ProvSpecificAccess; ULONG fAccessFlags;
INHERIT_FLAGS Inheritance; ACCESS_RIGHTS Access;
LPCSTR lpInheritProperty; ACCESS_RIGHTS ProvSpecificAccess;
INHERIT_FLAGS Inheritance;
LPCSTR lpInheritProperty;
} ACTRL_ACCESS_ENTRYA, *PACTRL_ACCESS_ENTRYA; } ACTRL_ACCESS_ENTRYA, *PACTRL_ACCESS_ENTRYA;
typedef struct _ACTRL_ACCESS_ENTRYW {
TRUSTEE_W Trustee; typedef struct _ACTRL_ACCESS_ENTRYW
ULONG fAccessFlags; {
ACCESS_RIGHTS Access; TRUSTEE_W Trustee;
ACCESS_RIGHTS ProvSpecificAccess; ULONG fAccessFlags;
INHERIT_FLAGS Inheritance; ACCESS_RIGHTS Access;
LPCWSTR lpInheritProperty; ACCESS_RIGHTS ProvSpecificAccess;
INHERIT_FLAGS Inheritance;
LPCWSTR lpInheritProperty;
} ACTRL_ACCESS_ENTRYW, *PACTRL_ACCESS_ENTRYW; } ACTRL_ACCESS_ENTRYW, *PACTRL_ACCESS_ENTRYW;
typedef struct _ACTRL_ACCESS_ENTRY_LISTA {
ULONG cEntries; typedef struct _ACTRL_ACCESS_ENTRY_LISTA
ACTRL_ACCESS_ENTRYA *pAccessList; {
ULONG cEntries;
ACTRL_ACCESS_ENTRYA *pAccessList;
} ACTRL_ACCESS_ENTRY_LISTA, *PACTRL_ACCESS_ENTRY_LISTA; } ACTRL_ACCESS_ENTRY_LISTA, *PACTRL_ACCESS_ENTRY_LISTA;
typedef struct _ACTRL_ACCESS_ENTRY_LISTW {
ULONG cEntries; typedef struct _ACTRL_ACCESS_ENTRY_LISTW
ACTRL_ACCESS_ENTRYW *pAccessList; {
ULONG cEntries;
ACTRL_ACCESS_ENTRYW *pAccessList;
} ACTRL_ACCESS_ENTRY_LISTW, *PACTRL_ACCESS_ENTRY_LISTW; } ACTRL_ACCESS_ENTRY_LISTW, *PACTRL_ACCESS_ENTRY_LISTW;
typedef struct _ACTRL_PROPERTY_ENTRYA {
LPCSTR lpProperty; typedef struct _ACTRL_PROPERTY_ENTRYA
PACTRL_ACCESS_ENTRY_LISTA pAccessEntryList; {
ULONG fListFlags; LPCSTR lpProperty;
PACTRL_ACCESS_ENTRY_LISTA pAccessEntryList;
ULONG fListFlags;
} ACTRL_PROPERTY_ENTRYA, *PACTRL_PROPERTY_ENTRYA; } ACTRL_PROPERTY_ENTRYA, *PACTRL_PROPERTY_ENTRYA;
typedef struct _ACTRL_PROPERTY_ENTRYW {
LPCWSTR lpProperty; typedef struct _ACTRL_PROPERTY_ENTRYW
PACTRL_ACCESS_ENTRY_LISTW pAccessEntryList; {
ULONG fListFlags; LPCWSTR lpProperty;
PACTRL_ACCESS_ENTRY_LISTW pAccessEntryList;
ULONG fListFlags;
} ACTRL_PROPERTY_ENTRYW, *PACTRL_PROPERTY_ENTRYW; } ACTRL_PROPERTY_ENTRYW, *PACTRL_PROPERTY_ENTRYW;
typedef struct _ACTRL_ALISTA {
ULONG cEntries; typedef struct _ACTRL_ALISTA
PACTRL_PROPERTY_ENTRYA pPropertyAccessList; {
ULONG cEntries;
PACTRL_PROPERTY_ENTRYA pPropertyAccessList;
} ACTRL_ACCESSA, *PACTRL_ACCESSA, ACTRL_AUDITA, *PACTRL_AUDITA; } ACTRL_ACCESSA, *PACTRL_ACCESSA, ACTRL_AUDITA, *PACTRL_AUDITA;
typedef struct _ACTRL_ALISTW {
ULONG cEntries; typedef struct _ACTRL_ALISTW
PACTRL_PROPERTY_ENTRYW pPropertyAccessList; {
ULONG cEntries;
PACTRL_PROPERTY_ENTRYW pPropertyAccessList;
} ACTRL_ACCESSW, *PACTRL_ACCESSW, ACTRL_AUDITW, *PACTRL_AUDITW; } ACTRL_ACCESSW, *PACTRL_ACCESSW, ACTRL_AUDITW, *PACTRL_AUDITW;
typedef struct _TRUSTEE_ACCESSA {
LPSTR lpProperty; typedef struct _TRUSTEE_ACCESSA
ACCESS_RIGHTS Access; {
ULONG fAccessFlags; LPSTR lpProperty;
ULONG fReturnedAccess; ACCESS_RIGHTS Access;
ULONG fAccessFlags;
ULONG fReturnedAccess;
} TRUSTEE_ACCESSA, *PTRUSTEE_ACCESSA; } TRUSTEE_ACCESSA, *PTRUSTEE_ACCESSA;
typedef struct _TRUSTEE_ACCESSW {
LPWSTR lpProperty; typedef struct _TRUSTEE_ACCESSW
ACCESS_RIGHTS Access; {
ULONG fAccessFlags; LPWSTR lpProperty;
ULONG fReturnedAccess; ACCESS_RIGHTS Access;
ULONG fAccessFlags;
ULONG fReturnedAccess;
} TRUSTEE_ACCESSW, *PTRUSTEE_ACCESSW; } TRUSTEE_ACCESSW, *PTRUSTEE_ACCESSW;
typedef struct _ACTRL_OVERLAPPED {
_ANONYMOUS_UNION typedef struct _ACTRL_OVERLAPPED
union { {
PVOID Provider; _ANONYMOUS_UNION
ULONG Reserved1; union
} DUMMYUNIONNAME; {
ULONG Reserved2; PVOID Provider;
HANDLE hEvent; ULONG Reserved1;
} DUMMYUNIONNAME;
ULONG Reserved2;
HANDLE hEvent;
} ACTRL_OVERLAPPED, *PACTRL_OVERLAPPED; } ACTRL_OVERLAPPED, *PACTRL_OVERLAPPED;
typedef struct _ACTRL_ACCESS_INFOA {
ULONG fAccessPermission; typedef struct _ACTRL_ACCESS_INFOA
LPSTR lpAccessPermissionName; {
ULONG fAccessPermission;
LPSTR lpAccessPermissionName;
} ACTRL_ACCESS_INFOA, *PACTRL_ACCESS_INFOA; } ACTRL_ACCESS_INFOA, *PACTRL_ACCESS_INFOA;
typedef struct _ACTRL_ACCESS_INFOW {
ULONG fAccessPermission; typedef struct _ACTRL_ACCESS_INFOW
LPWSTR lpAccessPermissionName; {
ULONG fAccessPermission;
LPWSTR lpAccessPermissionName;
} ACTRL_ACCESS_INFOW, *PACTRL_ACCESS_INFOW; } ACTRL_ACCESS_INFOW, *PACTRL_ACCESS_INFOW;
typedef struct _ACTRL_CONTROL_INFOA {
LPSTR lpControlId; typedef struct _ACTRL_CONTROL_INFOA
LPSTR lpControlName; {
LPSTR lpControlId;
LPSTR lpControlName;
} ACTRL_CONTROL_INFOA, *PACTRL_CONTROL_INFOA; } ACTRL_CONTROL_INFOA, *PACTRL_CONTROL_INFOA;
typedef struct _ACTRL_CONTROL_INFOW {
LPWSTR lpControlId; typedef struct _ACTRL_CONTROL_INFOW
LPWSTR lpControlName; {
LPWSTR lpControlId;
LPWSTR lpControlName;
} ACTRL_CONTROL_INFOW, *PACTRL_CONTROL_INFOW; } ACTRL_CONTROL_INFOW, *PACTRL_CONTROL_INFOW;
typedef struct _EXPLICIT_ACCESS_A {
DWORD grfAccessPermissions; typedef struct _EXPLICIT_ACCESS_A
ACCESS_MODE grfAccessMode; {
DWORD grfInheritance; DWORD grfAccessPermissions;
TRUSTEE_A Trustee; ACCESS_MODE grfAccessMode;
DWORD grfInheritance;
TRUSTEE_A Trustee;
} EXPLICIT_ACCESS_A, *PEXPLICIT_ACCESS_A, EXPLICIT_ACCESSA, *PEXPLICIT_ACCESSA; } EXPLICIT_ACCESS_A, *PEXPLICIT_ACCESS_A, EXPLICIT_ACCESSA, *PEXPLICIT_ACCESSA;
typedef struct _EXPLICIT_ACCESS_W {
DWORD grfAccessPermissions; typedef struct _EXPLICIT_ACCESS_W
ACCESS_MODE grfAccessMode; {
DWORD grfInheritance; DWORD grfAccessPermissions;
TRUSTEE_W Trustee; ACCESS_MODE grfAccessMode;
DWORD grfInheritance;
TRUSTEE_W Trustee;
} EXPLICIT_ACCESS_W, *PEXPLICIT_ACCESS_W, EXPLICIT_ACCESSW, *PEXPLICIT_ACCESSW; } EXPLICIT_ACCESS_W, *PEXPLICIT_ACCESS_W, EXPLICIT_ACCESSW, *PEXPLICIT_ACCESSW;
typedef struct _OBJECTS_AND_SID {
DWORD ObjectsPresent; typedef struct _OBJECTS_AND_SID
GUID ObjectTypeGuid; {
GUID InheritedObjectTypeGuid; DWORD ObjectsPresent;
SID * pSid; GUID ObjectTypeGuid;
GUID InheritedObjectTypeGuid;
SID *pSid;
} OBJECTS_AND_SID, *POBJECTS_AND_SID; } OBJECTS_AND_SID, *POBJECTS_AND_SID;
typedef struct _OBJECTS_AND_NAME_A {
DWORD ObjectsPresent; typedef struct _OBJECTS_AND_NAME_A
SE_OBJECT_TYPE ObjectType; {
LPSTR ObjectTypeName; DWORD ObjectsPresent;
LPSTR InheritedObjectTypeName; SE_OBJECT_TYPE ObjectType;
LPSTR ptstrName; LPSTR ObjectTypeName;
LPSTR InheritedObjectTypeName;
LPSTR ptstrName;
} OBJECTS_AND_NAME_A, *POBJECTS_AND_NAME_A; } OBJECTS_AND_NAME_A, *POBJECTS_AND_NAME_A;
typedef struct _OBJECTS_AND_NAME_W {
DWORD ObjectsPresent; typedef struct _OBJECTS_AND_NAME_W
SE_OBJECT_TYPE ObjectType; {
LPWSTR ObjectTypeName; DWORD ObjectsPresent;
LPWSTR InheritedObjectTypeName; SE_OBJECT_TYPE ObjectType;
LPWSTR ptstrName; LPWSTR ObjectTypeName;
LPWSTR InheritedObjectTypeName;
LPWSTR ptstrName;
} OBJECTS_AND_NAME_W, *POBJECTS_AND_NAME_W; } OBJECTS_AND_NAME_W, *POBJECTS_AND_NAME_W;
#if (_WIN32_WINNT >= 0x0501) #if (_WIN32_WINNT >= 0x0501)
typedef struct { typedef struct
LONG GenerationGap; {
LPSTR AncestorName; LONG GenerationGap;
LPSTR AncestorName;
} INHERITED_FROMA, *PINHERITED_FROMA; } INHERITED_FROMA, *PINHERITED_FROMA;
typedef struct {
LONG GenerationGap; typedef struct
LPWSTR AncestorName; {
LONG GenerationGap;
LPWSTR AncestorName;
} INHERITED_FROMW, *PINHERITED_FROMW; } INHERITED_FROMW, *PINHERITED_FROMW;
#endif /* (_WIN32_WINNT >= 0x0501) */ #endif /* (_WIN32_WINNT >= 0x0501) */
@ -323,6 +392,7 @@ typedef struct _SI_OBJECT_INFO
LPWSTR pszPageTitle; LPWSTR pszPageTitle;
GUID guidObjectType; GUID guidObjectType;
} SI_OBJECT_INFO, *PSI_OBJECT_INFO; } SI_OBJECT_INFO, *PSI_OBJECT_INFO;
typedef struct _SI_ACCESS typedef struct _SI_ACCESS
{ {
const GUID *pguid; const GUID *pguid;
@ -330,15 +400,17 @@ typedef struct _SI_ACCESS
LPCWSTR pszName; LPCWSTR pszName;
DWORD dwFlags; DWORD dwFlags;
} SI_ACCESS, *PSI_ACCESS; } SI_ACCESS, *PSI_ACCESS;
typedef struct _SI_INHERIT_TYPE typedef struct _SI_INHERIT_TYPE
{ {
const GUID *pguid; const GUID *pguid;
ULONG dwFlags; ULONG dwFlags;
LPCWSTR pszName; LPCWSTR pszName;
} SI_INHERIT_TYPE, *PSI_INHERIT_TYPE; } SI_INHERIT_TYPE, *PSI_INHERIT_TYPE;
typedef enum _SI_PAGE_TYPE typedef enum _SI_PAGE_TYPE
{ {
SI_PAGE_PERM = 0, SI_PAGE_PERM = 0,
SI_PAGE_ADVPERM, SI_PAGE_ADVPERM,
SI_PAGE_AUDIT, SI_PAGE_AUDIT,
SI_PAGE_OWNER SI_PAGE_OWNER
@ -359,15 +431,15 @@ typedef enum _PROG_INVOKE_SETTING
} PROG_INVOKE_SETTING, *PPROG_INVOKE_SETTING; } PROG_INVOKE_SETTING, *PPROG_INVOKE_SETTING;
typedef VOID (WINAPI *FN_PROGRESSW)(LPWSTR pObjectName, typedef VOID (WINAPI *FN_PROGRESSW)(LPWSTR pObjectName,
DWORD Status, DWORD Status,
PPROG_INVOKE_SETTING pInvokeSetting, PPROG_INVOKE_SETTING pInvokeSetting,
PVOID Args, PVOID Args,
BOOL SecuritySet); BOOL SecuritySet);
typedef VOID (WINAPI *FN_PROGRESSA)(LPSTR pObjectName, typedef VOID (WINAPI *FN_PROGRESSA)(LPSTR pObjectName,
DWORD Status, DWORD Status,
PPROG_INVOKE_SETTING pInvokeSetting, PPROG_INVOKE_SETTING pInvokeSetting,
PVOID Args, PVOID Args,
BOOL SecuritySet); BOOL SecuritySet);
#ifdef UNICODE #ifdef UNICODE
#define ACCCTRL_DEFAULT_PROVIDER ACCCTRL_DEFAULT_PROVIDERW #define ACCCTRL_DEFAULT_PROVIDER ACCCTRL_DEFAULT_PROVIDERW
@ -383,6 +455,7 @@ typedef EXPLICIT_ACCESS_W EXPLICIT_ACCESS_, *PEXPLICIT_ACCESS_;
typedef EXPLICIT_ACCESSW EXPLICIT_ACCESS, *PEXPLICIT_ACCESS; typedef EXPLICIT_ACCESSW EXPLICIT_ACCESS, *PEXPLICIT_ACCESS;
typedef TRUSTEE_ACCESSW TRUSTEE_ACCESS, *PTRUSTEE_ACCESS; typedef TRUSTEE_ACCESSW TRUSTEE_ACCESS, *PTRUSTEE_ACCESS;
typedef OBJECTS_AND_NAME_W OBJECTS_AND_NAME_, *POBJECTS_AND_NAME_; typedef OBJECTS_AND_NAME_W OBJECTS_AND_NAME_, *POBJECTS_AND_NAME_;
#if (_WIN32_WINNT >= 0x0501) #if (_WIN32_WINNT >= 0x0501)
typedef INHERITED_FROMW INHERITED_FROM, *PINHERITED_FROM; typedef INHERITED_FROMW INHERITED_FROM, *PINHERITED_FROM;
typedef FN_PROGRESSW FN_PROGRESS; typedef FN_PROGRESSW FN_PROGRESS;
@ -402,14 +475,17 @@ typedef EXPLICIT_ACCESS_A EXPLICIT_ACCESS_, *PEXPLICIT_ACCESS_;
typedef EXPLICIT_ACCESSA EXPLICIT_ACCESS, *PEXPLICIT_ACCESS; typedef EXPLICIT_ACCESSA EXPLICIT_ACCESS, *PEXPLICIT_ACCESS;
typedef TRUSTEE_ACCESSA TRUSTEE_ACCESS, *PTRUSTEE_ACCESS; typedef TRUSTEE_ACCESSA TRUSTEE_ACCESS, *PTRUSTEE_ACCESS;
typedef OBJECTS_AND_NAME_A OBJECTS_AND_NAME_, *POBJECTS_AND_NAME_; typedef OBJECTS_AND_NAME_A OBJECTS_AND_NAME_, *POBJECTS_AND_NAME_;
#if (_WIN32_WINNT >= 0x0501) #if (_WIN32_WINNT >= 0x0501)
typedef INHERITED_FROMA INHERITED_FROM, *PINHERITED_FROM; typedef INHERITED_FROMA INHERITED_FROM, *PINHERITED_FROM;
typedef FN_PROGRESSA FN_PROGRESS; typedef FN_PROGRESSA FN_PROGRESS;
#define HAS_FN_PROGRESSA #define HAS_FN_PROGRESSA
#endif #endif /* (_WIN32_WINNT >= 0x0501) */
#endif /* UNICODE */ #endif /* UNICODE */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif
#endif /* _ACCCTRL_H */