Skip to content

Commit

Permalink
Add support for TokenUIAccess flag in SetTokenInformation.
Browse files Browse the repository at this point in the history
The information for this flag is a DWORD that is interpreted as a
boolean value.
  • Loading branch information
petur-keystrike committed Feb 16, 2024
1 parent 3e9da59 commit a473979
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions win32/src/win32security.i
Original file line number Diff line number Diff line change
Expand Up @@ -2367,6 +2367,7 @@ static PyObject *PySetTokenInformation(PyObject *self, PyObject *args)
#ifdef _WIN32_WINNT_LONGHORN // Vista info types related to UAC
case TokenVirtualizationEnabled: // @flag TokenVirtualizationEnabled|Boolean
case TokenVirtualizationAllowed: // @flag TokenVirtualizationAllowed|Boolean
case TokenUIAccess: // @flag TokenUIAccess|Boolean
#endif
bufsize = sizeof(DWORD);
buf=malloc(bufsize);
Expand Down

0 comments on commit a473979

Please sign in to comment.