Re: [python-win32] Need a value from pywin32

2022-06-22 Thread Steven Manross
pes.PULONG, # pReturnLength ) I HOPE THIS HELPS AND THANK YOU VERY MUCH! Steven -Original Message- From: Eryk Sun Sent: Wednesday, June 22, 2022 1:28 PM To: Steven Manross Cc: python-win32@python.org Subject: Re: [python-win32] Need a value from pywin32 On 6/21/22, Steven Manross wrote:

Re: [python-win32] Need a value from pywin32

2022-06-22 Thread Eryk Sun
On 6/21/22, Steven Manross wrote: > > class WinStationInformation(ctypes.Structure): > __fields__ = [ > ('ConnectState', ctypes.c_long), > ('WinStationName', ctypes.wintypes.WCHAR), > ('LogonId', ctypes.c_ulong), > ('ConnectTime', ctypes.wintypes.LARGE_INTEGER),

Re: [python-win32] Need a value from pywin32

2022-06-22 Thread Steven Manross
lf Of Tim Roberts Sent: Tuesday, June 21, 2022 10:04 PM To: python-win32@python.org Subject: Re: [python-win32] Need a value from pywin32 On 6/21/22 13:39, Steven Manross wrote: > I was intrigued by this and I would like to get it to work, but I cannot... > I know I'm doing something

Re: [python-win32] Need a value from pywin32

2022-06-21 Thread Tim Roberts
On 6/21/22 13:39, Steven Manross wrote: I was intrigued by this and I would like to get it to work, but I cannot... I know I'm doing something wrong, but don't know what. I will leave this for the archives, and maybe it will help someone else some day. ... def get_wts_info(session_id):

Re: [python-win32] Need a value from pywin32

2022-06-21 Thread Steven Manross
Services -> Collections -> your Collection Name -> Connections #Right Click on the columns in Connections Tab and add "ID" to the list of columns My output: winsta_handle = 140703764119552 QueryInfoHandle = 0 Excepted running WinStationQueryInformation

Re: [python-win32] Need a value from pywin32

2022-06-20 Thread Tim Roberts
Craig R. Matthews wrote: I have a need to determine the "IDLE TIME" as provided by the Windows Query program. Sample output: C:\>query user /server:CTX202201  USERNAME  SESSIONNAME    ID  STATE   IDLE TIME LOGON TIME  administrator rdp-tcp#67  2  Active   1

[python-win32] Need a value from pywin32

2022-06-19 Thread Craig R. Matthews
I have a need to determine the "IDLE TIME" as provided by the Windows Query program. Sample output: C:\>query user /server:CTX202201  USERNAME  SESSIONNAME    ID  STATE   IDLE TIME LOGON TIME  administrator rdp-tcp#67  2  Active   1:38 6/15/2022 10:48 AM I