Home
last modified time | relevance | path

Searched refs:TokenPriv (Results 1 – 2 of 2) sorted by relevance

/reactos/modules/rostests/apitests/ntdll/
H A DNtDuplicateToken.c35 TOKEN_PRIVILEGES TokenPriv; in DisablePrivilege() local
46 TokenPriv.PrivilegeCount = 1; in DisablePrivilege()
47 TokenPriv.Privileges[0].Luid = PrivLuid; in DisablePrivilege()
48 TokenPriv.Privileges[0].Attributes = 0; in DisablePrivilege()
52 &TokenPriv, in DisablePrivilege()
/reactos/dll/win32/userenv/
H A Dprofile.c68 TOKEN_PRIVILEGES TokenPriv; in AcquireRemoveRestorePrivilege() local
76 TokenPriv.PrivilegeCount = 1; in AcquireRemoveRestorePrivilege()
77 TokenPriv.Privileges[0].Attributes = (bAcquire ? SE_PRIVILEGE_ENABLED : 0); in AcquireRemoveRestorePrivilege()
79 if (LookupPrivilegeValue(NULL, SE_RESTORE_NAME, &TokenPriv.Privileges[0].Luid)) in AcquireRemoveRestorePrivilege()
81 bRet = AdjustTokenPrivileges(Token, FALSE, &TokenPriv, 0, NULL, NULL); in AcquireRemoveRestorePrivilege()