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 does not have a GENERIC_ALL parameter, or a parameter for complete replacement. #3168

Closed
Junffzz opened this issue Jul 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Junffzz
Copy link

Junffzz commented Jul 17, 2024

Summary

The OpenInputDesktop function does not have a GENERIC_ALL parameter, or a parameter for complete replacement.

Crate manifest

windows = { version = "0.58.0", features = [
  "Win32_Foundation",
  "Win32_System_Threading",
  "Win32_Graphics_Dxgi",
  "Win32_Graphics_Dxgi_Common",
  "Win32_Graphics_Direct3D11",
  "Win32_Graphics_Direct3D",
  "Win32_Graphics_Gdi",
  "Win32_Graphics_Imaging",
  "Win32_System_StationsAndDesktops",
  "Win32_System_SystemServices",
  "Win32_System_WindowsProgramming",
  "Win32_UI_Shell",
  "Win32_UI_HiDpi",
  "Win32_UI_Input_KeyboardAndMouse",
  "Win32_UI_WindowsAndMessaging",
  "Win32_Devices_Display",
  "Win32_Media_MediaFoundation",
  "Win32_System_Com",
  "Win32_System_Ole",
  "Win32_System_Com_StructuredStorage",
  "Win32_Media_Audio",
  "Win32_UI_Shell_PropertiesSystem",
  "Win32_Devices_FunctionDiscovery",
  "Win32_Storage_FileSystem",
] }

Crate code

let current_desktop = HRESULT!(OpenInputDesktop(
        DESKTOP_CONTROL_FLAGS::default(),
        false,
        GENERIC_ALL
    ));
@Junffzz Junffzz added the bug Something isn't working label Jul 17, 2024
@kennykerr
Copy link
Collaborator

Please don't create duplicate issues. microsoft/win32metadata#1949

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants