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

The OpenInputDesktop function has the dwDesiredAccess parameter of type uint instead of ACCESS_MASK. #1366

Closed
vitkuz573 opened this issue Nov 12, 2022 · 1 comment
Labels
missing enum An enum is missing for constant parameters

Comments

@vitkuz573
Copy link

Actual behavior

The OpenInputDesktop function has the dwDesiredAccess parameter of type uint instead of ACCESS_MASK for more convenient use.

var inputDesktop = OpenInputDesktop_SafeHandle(0, true, 0x00020000);

Expected behavior

var inputDesktop = OpenInputDesktop_SafeHandle(0, true, ACCESS_MASK.READ_CONTROL);

Repro steps

  1. NativeMethods.txt content:
OpenInputDesktop
  1. NativeMethods.json content (if present):
  1. Any of your own code that should be shared?

Context

  • CsWin32 version: 0.2.110-beta
  • Win32Metadata version (if explicitly set by project): 37.0.34-preview
  • Target Framework: net7.0-windows
  • LangVersion (if explicitly set by project): 11
@vitkuz573 vitkuz573 added the bug Something isn't working label Nov 12, 2022
@AArnott AArnott transferred this issue from microsoft/CsWin32 Nov 12, 2022
@AArnott AArnott added missing enum An enum is missing for constant parameters and removed bug Something isn't working labels Nov 12, 2022
@mikebattista
Copy link
Collaborator

Windows.Win32.System.StationsAndDesktops.Apis.OpenInputDesktop : dwDesiredAccess...UInt32 => DESKTOP_ACCESS_FLAGS
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_CREATEMENU added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_CREATEWINDOW added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_DELETE added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_ENUMERATE added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_HOOKCONTROL added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_JOURNALPLAYBACK added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_JOURNALRECORD added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_READ_CONTROL added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_READOBJECTS added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_SWITCHDESKTOP added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_SYNCHRONIZE added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_WRITE_DAC added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_WRITE_OWNER added
Windows.Win32.System.StationsAndDesktops.DESKTOP_ACCESS_FLAGS.DESKTOP_WRITEOBJECTS added
Windows.Win32.System.SystemServices.DESKTOP_ACCESS_FLAGS removed
Windows.Win32.System.SystemServices.DESKTOP_ACCESS_FLAGS.DESKTOP_CREATEMENU removed
Windows.Win32.System.SystemServices.DESKTOP_ACCESS_FLAGS.DESKTOP_CREATEWINDOW removed
Windows.Win32.System.SystemServices.DESKTOP_ACCESS_FLAGS.DESKTOP_ENUMERATE removed
Windows.Win32.System.SystemServices.DESKTOP_ACCESS_FLAGS.DESKTOP_HOOKCONTROL removed
Windows.Win32.System.SystemServices.DESKTOP_ACCESS_FLAGS.DESKTOP_JOURNALPLAYBACK removed
Windows.Win32.System.SystemServices.DESKTOP_ACCESS_FLAGS.DESKTOP_JOURNALRECORD removed
Windows.Win32.System.SystemServices.DESKTOP_ACCESS_FLAGS.DESKTOP_READOBJECTS removed
Windows.Win32.System.SystemServices.DESKTOP_ACCESS_FLAGS.DESKTOP_SWITCHDESKTOP removed
Windows.Win32.System.SystemServices.DESKTOP_ACCESS_FLAGS.DESKTOP_WRITEOBJECTS removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing enum An enum is missing for constant parameters
Projects
None yet
Development

No branches or pull requests

3 participants