You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many Win32 structs (HDC, HMONITOR, etc.) lack the IntPtr conversion operator. For example, HWND has such an operator, but HDC does not. So, it's not even possible to check if HDC equals to zero.
Expected behavior
Maybe it's not a bug, however it's not clear why these stucts lack such an operator. Why does HWND have it and HDC does not?
Context
CsWin32 version: 0.3.106, built from the latest source code.
Win32Metadata: 61.0.15-preview.
Target Framework: netstandard2.0.
LangVersion: latest.
The text was updated successfully, but these errors were encountered:
Actual behavior
Many Win32 structs (HDC, HMONITOR, etc.) lack the IntPtr conversion operator. For example, HWND has such an operator, but HDC does not. So, it's not even possible to check if HDC equals to zero.
Expected behavior
Maybe it's not a bug, however it's not clear why these stucts lack such an operator. Why does HWND have it and HDC does not?
Context
The text was updated successfully, but these errors were encountered: