¡@

Home 

c# Programming Glossary: tokenhandle

Detect if running as Administrator with or without elevated privileges?

http://stackoverflow.com/questions/1220213/detect-if-running-as-administrator-with-or-without-elevated-privileges

IntPtr ProcessHandle UInt32 DesiredAccess out IntPtr TokenHandle DllImport advapi32.dll SetLastError true public static extern.. true public static extern bool GetTokenInformation IntPtr TokenHandle TOKEN_INFORMATION_CLASS TokenInformationClass IntPtr TokenInformation..

How to get the logon SID in c#

http://stackoverflow.com/questions/2146153/how-to-get-the-logon-sid-in-c-sharp

true static extern bool GetTokenInformation IntPtr TokenHandle TOKEN_INFORMATION_CLASS TokenInformationClass IntPtr TokenInformation..

Process.Start with different credentials with UAC on

http://stackoverflow.com/questions/2313553/process-start-with-different-credentials-with-uac-on

extern static Boolean DuplicateTokenEx IntPtr ExistingTokenHandle UInt32 dwDesiredAccess ref SECURITY_ATTRIBUTES lpThreadAttributes.. TokenType Int32 ImpersonationLevel ref IntPtr DuplicateTokenHandle DllImport kernel32.dll static extern IntPtr OpenProcess UInt32.. Int32 DesiredAccess desired access to process ref IntPtr TokenHandle handle to open access token DllImport advapi32.dll SetLastError..

Using Process.Start() to start a process as a different user from within a Windows Service

http://stackoverflow.com/questions/362419/using-process-start-to-start-a-process-as-a-different-user-from-within-a-windo

BOOL WINAPI GetTokenInformation __in HANDLE TokenHandle __in TOKEN_INFORMATION_CLASS TokenInformationClass __out_opt.. true static extern bool GetTokenInformation IntPtr TokenHandle TOKEN_INFORMATION_CLASS TokenInformationClass IntPtr TokenInformation..

Set System Time Zone from .NET

http://stackoverflow.com/questions/808736/set-system-time-zone-from-net

private static extern bool AdjustTokenPrivileges IntPtr TokenHandle bool DisableAllPrivileges ref TOKEN_PRIVILEGES NewState UInt32..