ReactOS 0.4.15-dev-7924-g5949c20
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_IS_NAME
Definition: accctrl.h:190
@ TRUSTEE_IS_UNKNOWN
Definition: accctrl.h:176
@ TRUSTEE_IS_IMPERSONATE
Definition: accctrl.h:199
DWORD grfAccessPermissions
Definition: accctrl.h:332
TRUSTEE_A Trustee
Definition: accctrl.h:335
DWORD grfInheritance
Definition: accctrl.h:334
ACCESS_MODE grfAccessMode
Definition: accctrl.h:333
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation
Definition: accctrl.h:205
TRUSTEE_TYPE TrusteeType
Definition: accctrl.h:207
TRUSTEE_FORM TrusteeForm
Definition: accctrl.h:206
struct _TRUSTEE_A * pMultipleTrustee
Definition: accctrl.h:204
LPSTR ptstrName
Definition: accctrl.h:208
_In_ PEPROCESS _In_ KPROCESSOR_MODE AccessMode
Definition: mmfuncs.h:396

◆ 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}
DWORD grfAccessPermissions
Definition: accctrl.h:340
DWORD grfInheritance
Definition: accctrl.h:342
TRUSTEE_W Trustee
Definition: accctrl.h:343
ACCESS_MODE grfAccessMode
Definition: accctrl.h:341
LPWSTR ptstrName
Definition: accctrl.h:217
struct _TRUSTEE_W * pMultipleTrustee
Definition: accctrl.h:213
TRUSTEE_TYPE TrusteeType
Definition: accctrl.h:216
TRUSTEE_FORM TrusteeForm
Definition: accctrl.h:215
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation
Definition: accctrl.h:214

◆ BuildImpersonateTrusteeA()

VOID WINAPI BuildImpersonateTrusteeA ( PTRUSTEE_A  pTrustee,
PTRUSTEE_A  pImpersonateTrustee 
)

Definition at line 14 of file trustee.c.

16{
17 pTrustee->pMultipleTrustee = pImpersonateTrustee;
19}

◆ BuildImpersonateTrusteeW()

VOID WINAPI BuildImpersonateTrusteeW ( PTRUSTEE_W  pTrustee,
PTRUSTEE_W  pImpersonateTrustee 
)

Definition at line 26 of file trustee.c.

28{
29 pTrustee->pMultipleTrustee = pImpersonateTrustee;
31}

◆ GetMultipleTrusteeA()

PTRUSTEEA WINAPI GetMultipleTrusteeA ( PTRUSTEE_A  pTrustee)

Definition at line 82 of file trustee.c.

83{
84 return pTrustee->pMultipleTrustee;
85}

◆ GetMultipleTrusteeOperationA()

MULTIPLE_TRUSTEE_OPERATION WINAPI GetMultipleTrusteeOperationA ( PTRUSTEE_A  pTrustee)

Definition at line 102 of file trustee.c.

103{
104 return pTrustee->MultipleTrusteeOperation;
105}

◆ GetMultipleTrusteeOperationW()

MULTIPLE_TRUSTEE_OPERATION WINAPI GetMultipleTrusteeOperationW ( PTRUSTEE_W  pTrustee)

Definition at line 112 of file trustee.c.

113{
114 return pTrustee->MultipleTrusteeOperation;
115}

◆ GetMultipleTrusteeW()

PTRUSTEEW WINAPI GetMultipleTrusteeW ( PTRUSTEE_W  pTrustee)

Definition at line 92 of file trustee.c.

93{
94 return pTrustee->pMultipleTrustee;
95}