c# Programming Glossary: ppsessioninfo
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 MarshalAs UnmanagedType.U4 Int32 Version ref IntPtr ppSessionInfo MarshalAs UnmanagedType.U4 ref Int32 pCount DllImport wtsapi32.dll..
Start a windows service and launch cmd http://stackoverflow.com/questions/4147821/start-a-windows-service-and-launch-cmd WTS_SESSION_INFO ret new List WTS_SESSION_INFO try IntPtr ppSessionInfo IntPtr.Zero Int32 count 0 Int32 retval WTSEnumerateSessions.. 0 Int32 retval WTSEnumerateSessions IntPtr.Zero 0 1 ref ppSessionInfo ref count Int32 dataSize Marshal.SizeOf typeof WTS_SESSION_INFO.. Marshal.SizeOf typeof WTS_SESSION_INFO Int64 current int ppSessionInfo if retval 0 for int i 0 i count i WTS_SESSION_INFO si WTS_SESSION_INFO..
Logoff interactive users in Windows from a service http://stackoverflow.com/questions/5207506/logoff-interactive-users-in-windows-from-a-service MarshalAs UnmanagedType.U4 Int32 Version ref IntPtr ppSessionInfo MarshalAs UnmanagedType.U4 ref Int32 pCount DllImport wtsapi32.dll.. MarshalAs UnmanagedType.U4 Int32 Version ref IntPtr ppSessionInfo MarshalAs UnmanagedType.U4 ref Int32 pCount DllImport wtsapi32.dll..
|