¡@

Home 

c# Programming Glossary: hserver

How do you retrieve a list of logged-in/connected users in .NET?

http://stackoverflow.com/questions/132620/how-do-you-retrieve-a-list-of-logged-in-connected-users-in-net

wtsapi32.dll static extern void WTSCloseServer IntPtr hServer DllImport wtsapi32.dll static extern Int32 WTSEnumerateSessions.. static extern Int32 WTSEnumerateSessions IntPtr hServer MarshalAs UnmanagedType.U4 Int32 Reserved MarshalAs UnmanagedType.U4.. extern bool WTSQuerySessionInformation System.IntPtr hServer int sessionId WTS_INFO_CLASS wtsInfoClass out System.IntPtr..

Start a windows service and launch cmd

http://stackoverflow.com/questions/4147821/start-a-windows-service-and-launch-cmd

public static extern Int32 WTSEnumerateSessions IntPtr hServer int reserved int version ref IntPtr sessionInfo ref int count..

Logoff interactive users in Windows from a service

http://stackoverflow.com/questions/5207506/logoff-interactive-users-in-windows-from-a-service

true static extern bool WTSLogoffSession IntPtr hServer int SessionId bool bWait DllImport Wtsapi32.dll static extern.. extern bool WTSQuerySessionInformation System.IntPtr hServer int sessionId WTS_INFO_CLASS wtsInfoClass out System.IntPtr.. wtsapi32.dll static extern void WTSCloseServer IntPtr hServer DllImport wtsapi32.dll SetLastError true static extern Int32..