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:
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),
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
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):
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
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
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