Skip to content

Commit 136ac99

Browse files
authored
Merge d936415 into f6977fe
2 parents f6977fe + d936415 commit 136ac99

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

source/winAPI/_wtsApi32.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ class WTS_INFO_CLASS(IntEnum):
8989
WTSConfigInfo = 26
9090
WTSValidationInfo = 27 # Info Class value used to fetch Validation Information
9191
# through the WTSQuerySessionInformation
92-
WTSQuerySessionInformation = 28
93-
WTSSessionAddressV4 = 29
94-
WTSIsRemoteSession = 30
92+
WTSSessionAddressV4 = 28
93+
WTSIsRemoteSession = 29
9594

9695

9796
WTS_CONNECTSTATE_CLASS = c_int

source/winAPI/sessionTracking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ def _getCurrentSessionInfoEx() -> Optional[_WTS_INFO_POINTER_T]:
307307
# (or the current session) specify WTS_CURRENT_SESSION
308308
WTS_INFO_CLASS.WTSSessionInfoEx, # Indicates the type of session information to retrieve
309309
# Fetch a WTSINFOEXW containing a WTSINFOEX_LEVEL1 structure.
310-
ctypes.pointer(ppBuffer), # A pointer to a variable that receives a pointer to the requested information.
310+
ctypes.byref(ppBuffer), # A pointer to a variable that receives a pointer to the requested information.
311311
# The format and contents of the data depend on the information class specified in the WTSInfoClass
312312
# parameter.
313313
# To free the returned buffer, call the WTSFreeMemory function.
314-
ctypes.pointer(pBytesReturned), # A pointer to a variable that receives the size, in bytes, of the data
314+
ctypes.byref(pBytesReturned), # A pointer to a variable that receives the size, in bytes, of the data
315315
# returned in ppBuffer.
316316
)
317317
try:

0 commit comments

Comments
 (0)