¡@

Home 

c# Programming Glossary: infosize

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

.SessionId IntPtr tokenInfo bool result int infoSize IntPtr hToken System.Security.Principal.WindowsIdentity.GetCurrent.. TokenInformationClass.TokenStatistics IntPtr.Zero 0 out infoSize if result Marshal.GetLastWin32Error ERROR_INSUFFICIENT_BUFFER.. ERROR_INSUFFICIENT_BUFFER tokenInfo Marshal.AllocHGlobal infoSize result GetTokenInformation hToken TokenInformationClass.TokenStatistics..