¡@

Home 

c# Programming Glossary: tokeninformationclass

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 TokenHandle TOKEN_INFORMATION_CLASS TokenInformationClass IntPtr TokenInformation uint TokenInformationLength out uint..

How to get the logon SID in c#

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

IntPtr TokenHandle TOKEN_INFORMATION_CLASS TokenInformationClass IntPtr TokenInformation int TokenInformationLength out int ReturnLength..

Process.Start with different credentials with UAC on

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

IntPtr TokenHandle TOKEN_INFORMATION_CLASS TokenInformationClass ref UInt32 TokenInformation UInt32 TokenInformationLength DllImport..

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

__in HANDLE TokenHandle __in TOKEN_INFORMATION_CLASS TokenInformationClass __out_opt LPVOID TokenInformation __in DWORD TokenInformationLength.. IntPtr TokenHandle TOKEN_INFORMATION_CLASS TokenInformationClass IntPtr TokenInformation int TokenInformationLength out int ReturnLength..

How to get a Unique ID for the current user's logon session in windows - c#

http://stackoverflow.com/questions/6061143/how-to-get-a-unique-id-for-the-current-users-logon-session-in-windows-c-sharp

namespace GetCurrentSessionId class Program enum TokenInformationClass TokenUser 1 TokenGroups TokenPrivileges TokenOwner TokenPrimaryGroup.. static extern bool GetTokenInformation IntPtr tokenHandle TokenInformationClass tokenInformationClass IntPtr tokenInformation int tokenInformationLength.. .Token result GetTokenInformation hToken TokenInformationClass.TokenStatistics IntPtr.Zero 0 out infoSize if result Marshal.GetLastWin32Error..