ghisler(Author) wrote:Hmm, das gibt aber ein ProcessToken, kein Usertoken, oder ist das dasselbe?OpenProcessToken
MSDN wrote:OpenProcessToken
The OpenProcessToken function opens the access token associated with a process.
Wie bereits erwähnt: Im C-Debugger habe ich bereits auf den EnvironmentBlock zugreifen können.MSDN wrote:access token
An access token contains the security information for a logon session. The system creates an access token when a user logs on, and every process executed on behalf of the user has a copy of the token. The token identifies the user, the user's groups, and the user's privileges. The system uses the token to control access to securable objects and to control the ability of the user to perform various system-related operations on the local computer. There are two kinds of access token, primary and impersonation.
See also impersonation token, primary token, privilege, process, and security identifier.
Das Delphi-Beispiel sollte sich schnell verifizieren lassen.
Gruß
Holger