CreateProcessAsUser
CreateProcessAsUser copied to clipboard
Fix order of ImpersonationLevel and TokenType in DuplicateTokenEx
Thanks for the great library.
The order of these two ints is wrong. This is just a minor inconvenience, as the calls have them in the correct order.
Okay, I am now having trouble getting DuplicateTokenEx to work for me when trying to duplicate the token for the current process, which made me look into the MS documentation again:
- Here, the
ImpersonationLevelcomes before theTokenType. - In the example code in point 5 here,
ImpersonationLevelcomes after theTokenType.
Color me confused.
I'm under the impression that this change is not needed. If someone has better evidence to the contrary, we can reopen.