Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some missing handle types in ctypes.wintypes #123610

Closed
jlallas384 opened this issue Sep 2, 2024 · 1 comment
Closed

Some missing handle types in ctypes.wintypes #123610

jlallas384 opened this issue Sep 2, 2024 · 1 comment
Labels
OS-windows stdlib Python modules in the Lib dir topic-ctypes type-feature A feature request or enhancement

Comments

@jlallas384
Copy link
Contributor

jlallas384 commented Sep 2, 2024

There are some missing handle types such as HFILE or HCURSOR

HACCEL = HANDLE
HBITMAP = HANDLE
HBRUSH = HANDLE
HCOLORSPACE = HANDLE
HDC = HANDLE
HDESK = HANDLE
HDWP = HANDLE
HENHMETAFILE = HANDLE
HFONT = HANDLE
HGDIOBJ = HANDLE
HGLOBAL = HANDLE
HHOOK = HANDLE
HICON = HANDLE
HINSTANCE = HANDLE
HKEY = HANDLE
HKL = HANDLE
HLOCAL = HANDLE
HMENU = HANDLE
HMETAFILE = HANDLE
HMODULE = HANDLE
HMONITOR = HANDLE
HPALETTE = HANDLE
HPEN = HANDLE
HRGN = HANDLE
HRSRC = HANDLE
HSTR = HANDLE
HTASK = HANDLE
HWINSTA = HANDLE
HWND = HANDLE

https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types

Linked PRs

@picnixz picnixz added type-feature A feature request or enhancement topic-ctypes stdlib Python modules in the Lib dir OS-windows labels Sep 3, 2024
@rruuaanng
Copy link
Contributor

There are some missing handle types such as HFILE or HCURSOR缺少一些句柄类型,例如 HFILEHCURSOR

HACCEL = HANDLE
HBITMAP = HANDLE
HBRUSH = HANDLE
HCOLORSPACE = HANDLE
HDC = HANDLE
HDESK = HANDLE
HDWP = HANDLE
HENHMETAFILE = HANDLE
HFONT = HANDLE
HGDIOBJ = HANDLE
HGLOBAL = HANDLE
HHOOK = HANDLE
HICON = HANDLE
HINSTANCE = HANDLE
HKEY = HANDLE
HKL = HANDLE
HLOCAL = HANDLE
HMENU = HANDLE
HMETAFILE = HANDLE
HMODULE = HANDLE
HMONITOR = HANDLE
HPALETTE = HANDLE
HPEN = HANDLE
HRGN = HANDLE
HRSRC = HANDLE
HSTR = HANDLE
HTASK = HANDLE
HWINSTA = HANDLE
HWND = HANDLE

https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types

Which version of Python interpreter does the problem occur in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows stdlib Python modules in the Lib dir topic-ctypes type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

4 participants