We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c3378 commit 2a68f15Copy full SHA for 2a68f15
1 file changed
Lib/test/support/__init__.py
@@ -258,6 +258,7 @@ def GetProcessWindowStation() -> ctypes.wintypes.HANDLE:
258
if not h:
259
raise ctypes.WinError()
260
261
+ @ctypes.util.wrap_dll_function(user32)
262
def GetUserObjectInformationW(
263
hObj: ctypes.wintypes.HANDLE,
264
nIndex: ctypes.c_int,
@@ -271,9 +272,9 @@ def GetUserObjectInformationW(
271
272
needed = ctypes.wintypes.DWORD()
273
res = GetUserObjectInformationW(h,
274
UOI_FLAGS,
- uof,
275
+ ctypes.byref(uof),
276
ctypes.sizeof(uof),
- needed)
277
+ ctypes.byref(needed))
278
if not res:
279
280
if not bool(uof.dwFlags & WSF_VISIBLE):
0 commit comments