ReactOS  0.4.13-dev-249-gcba1a2f
trustee.c File Reference
#include <advapi32.h>
Include dependency graph for trustee.c:

Go to the source code of this file.

Functions

VOID WINAPI BuildImpersonateTrusteeA (PTRUSTEE_A pTrustee, PTRUSTEE_A pImpersonateTrustee)
 
VOID WINAPI BuildImpersonateTrusteeW (PTRUSTEE_W pTrustee, PTRUSTEE_W pImpersonateTrustee)
 
VOID WINAPI BuildImpersonateExplicitAccessWithNameA (PEXPLICIT_ACCESS_A pExplicitAccess, LPSTR pTrusteeName, PTRUSTEE_A pTrustee, DWORD AccessPermissions, ACCESS_MODE AccessMode, DWORD Inheritance)
 
VOID WINAPI BuildImpersonateExplicitAccessWithNameW (PEXPLICIT_ACCESS_W pExplicitAccess, LPWSTR pTrusteeName, PTRUSTEE_W pTrustee, DWORD AccessPermissions, ACCESS_MODE AccessMode, DWORD Inheritance)
 
PTRUSTEEA WINAPI GetMultipleTrusteeA (PTRUSTEE_A pTrustee)
 
PTRUSTEEW WINAPI GetMultipleTrusteeW (PTRUSTEE_W pTrustee)
 
MULTIPLE_TRUSTEE_OPERATION WINAPI GetMultipleTrusteeOperationA (PTRUSTEE_A pTrustee)
 
MULTIPLE_TRUSTEE_OPERATION WINAPI GetMultipleTrusteeOperationW (PTRUSTEE_W pTrustee)
 

Function Documentation

◆ BuildImpersonateExplicitAccessWithNameA()

VOID WINAPI BuildImpersonateExplicitAccessWithNameA ( PEXPLICIT_ACCESS_A  pExplicitAccess,
LPSTR  pTrusteeName,
PTRUSTEE_A  pTrustee,
DWORD  AccessPermissions,
ACCESS_MODE  AccessMode,
DWORD  Inheritance 
)

Definition at line 37 of file trustee.c.

43 {
44  pExplicitAccess->grfAccessPermissions = AccessPermissions;
45  pExplicitAccess->grfAccessMode = AccessMode;
46  pExplicitAccess->grfInheritance = Inheritance;
47 
48  pExplicitAccess->Trustee.pMultipleTrustee = pTrustee;
50  pExplicitAccess->Trustee.TrusteeForm = TRUSTEE_IS_NAME;
51  pExplicitAccess->Trustee.TrusteeType = TRUSTEE_IS_UNKNOWN;
52  pExplicitAccess->Trustee.ptstrName = pTrusteeName;
53 }
TRUSTEE_TYPE TrusteeType
Definition: accctrl.h:207
ACCESS_MODE grfAccessMode
Definition: accctrl.h:333
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation
Definition: accctrl.h:205
struct _TRUSTEE_A * pMultipleTrustee
Definition: accctrl.h:204
TRUSTEE_A Trustee
Definition: accctrl.h:335
LPSTR ptstrName
Definition: accctrl.h:208
_In_ PEPROCESS _In_ KPROCESSOR_MODE AccessMode
Definition: mmfuncs.h:396
DWORD grfInheritance
Definition: accctrl.h:334
DWORD grfAccessPermissions
Definition: accctrl.h:332
TRUSTEE_FORM TrusteeForm
Definition: accctrl.h:206

◆ BuildImpersonateExplicitAccessWithNameW()

VOID WINAPI BuildImpersonateExplicitAccessWithNameW ( PEXPLICIT_ACCESS_W  pExplicitAccess,
LPWSTR  pTrusteeName,
PTRUSTEE_W  pTrustee,
DWORD  AccessPermissions,
ACCESS_MODE  AccessMode,
DWORD  Inheritance 
)

Definition at line 60 of file trustee.c.

66 {
67  pExplicitAccess->grfAccessPermissions = AccessPermissions;
68  pExplicitAccess->grfAccessMode = AccessMode;
69  pExplicitAccess->grfInheritance = Inheritance;
70 
71  pExplicitAccess->Trustee.pMultipleTrustee = pTrustee;
73  pExplicitAccess->Trustee.TrusteeForm = TRUSTEE_IS_NAME;
74  pExplicitAccess->Trustee.TrusteeType = TRUSTEE_IS_UNKNOWN;
75  pExplicitAccess->Trustee.ptstrName = pTrusteeName;
76 }
TRUSTEE_FORM TrusteeForm
Definition: accctrl.h:215
TRUSTEE_TYPE TrusteeType
Definition: accctrl.h:216
_In_ PEPROCESS _In_ KPROCESSOR_MODE AccessMode
Definition: mmfuncs.h:396
DWORD grfInheritance
Definition: accctrl.h:342
ACCESS_MODE grfAccessMode
Definition: accctrl.h:341
struct _TRUSTEE_W * pMultipleTrustee
Definition: accctrl.h:213
TRUSTEE_W Trustee
Definition: accctrl.h:343
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation
Definition: accctrl.h:214
LPWSTR ptstrName
Definition: accctrl.h:217
DWORD grfAccessPermissions
Definition: accctrl.h:340

◆ BuildImpersonateTrusteeA()

VOID WINAPI BuildImpersonateTrusteeA ( PTRUSTEE_A  pTrustee,
PTRUSTEE_A  pImpersonateTrustee 
)

Definition at line 14 of file trustee.c.

16 {
17  pTrustee->pMultipleTrustee = pImpersonateTrustee;
19 }
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation
Definition: accctrl.h:205
struct _TRUSTEE_A * pMultipleTrustee
Definition: accctrl.h:204

◆ BuildImpersonateTrusteeW()

VOID WINAPI BuildImpersonateTrusteeW ( PTRUSTEE_W  pTrustee,
PTRUSTEE_W  pImpersonateTrustee 
)

Definition at line 26 of file trustee.c.

28 {
29  pTrustee->pMultipleTrustee = pImpersonateTrustee;
31 }
struct _TRUSTEE_W * pMultipleTrustee
Definition: accctrl.h:213
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation
Definition: accctrl.h:214

◆ GetMultipleTrusteeA()

PTRUSTEEA WINAPI GetMultipleTrusteeA ( PTRUSTEE_A  pTrustee)

Definition at line 82 of file trustee.c.

83 {
84  return pTrustee->pMultipleTrustee;
85 }
struct _TRUSTEE_A * pMultipleTrustee
Definition: accctrl.h:204

◆ GetMultipleTrusteeOperationA()

MULTIPLE_TRUSTEE_OPERATION WINAPI GetMultipleTrusteeOperationA ( PTRUSTEE_A  pTrustee)

Definition at line 102 of file trustee.c.

103 {
104  return pTrustee->MultipleTrusteeOperation;
105 }
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation
Definition: accctrl.h:205

◆ GetMultipleTrusteeOperationW()

MULTIPLE_TRUSTEE_OPERATION WINAPI GetMultipleTrusteeOperationW ( PTRUSTEE_W  pTrustee)

Definition at line 112 of file trustee.c.

113 {
114  return pTrustee->MultipleTrusteeOperation;
115 }
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation
Definition: accctrl.h:214

◆ GetMultipleTrusteeW()

PTRUSTEEW WINAPI GetMultipleTrusteeW ( PTRUSTEE_W  pTrustee)

Definition at line 92 of file trustee.c.

93 {
94  return pTrustee->pMultipleTrustee;
95 }
struct _TRUSTEE_W * pMultipleTrustee
Definition: accctrl.h:213