Prev: Bitmap help
Next: Show modal a windows
From: Xavier Roche on 4 Dec 2009 05:22 Hi folks, What is the proper way to elevate (enable) an impersonated user's rights ? Ie. on which token AdjustTokenPrivileges() should be called after ImpersonateLoggedOnUser() to enable this privilege ? (1) the current thread token opened with OpenThreadToken(.., OpenAsSelf=TRUE) ? (2) the current thread token opened with OpenThreadToken(.., OpenAsSelf=FALSE) ? (3) the current process token ? (4) the token produced by LogonUser() ? The (1) was the logical way, but does not seem to work. ("Not all privileges referenced are assigned to the caller?") (The impersonated user has the user right enabled in its local policy account)
|
Pages: 1 Prev: Bitmap help Next: Show modal a windows |