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

Missing FlushMenuThemes, SetPreferredAppMode, RtlGetVersion #1285

Open
ghost1372 opened this issue Sep 16, 2024 · 0 comments
Open

Missing FlushMenuThemes, SetPreferredAppMode, RtlGetVersion #1285

ghost1372 opened this issue Sep 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ghost1372
Copy link

Actual behavior

i want to use FlushMenuThemes, SetPreferredAppMode and RtlGetVersion methods but none of them exist, currently i can use them with dllimport:

[DllImport(ExternDll.UxTheme, EntryPoint = "#136", SetLastError = true, StringMarshalling = StringMarshalling.Utf16)]
public static extern void FlushMenuThemes();

[DllImport(ExternDll.UxTheme, EntryPoint = "#135", SetLastError = true, StringMarshalling = StringMarshalling.Utf16)]
public static extern int SetPreferredAppMode(PreferredAppMode preferredAppMode);

[DllImport(ExternDll.NTdll)]
public static extern int RtlGetVersion(out RTL_OSVERSIONINFOEX lpVersionInformation);

but i can not access this methods because do not exist/available

Expected behavior

we should be able to use FlushMenuThemes, SetPreferredAppMode, RtlGetVersion

Repro steps

  1. NativeMethods.txt content:
`RtlGetVersion`
`FlushMenuThemes`
`SetPreferredAppMode`
`136`
`135`
`#136`
`#135`
  1. NativeMethods.json content (if present):
  1. Any of your own code that should be shared?

Context

  • CsWin32 version: [e.g. 0.4.422-beta] latest
  • Win32Metadata version (if explicitly set by project):
  • Target Framework: [e.g. netstandard2.0] net8.0
  • LangVersion (if explicitly set by project): [e.g. 9] Latest
@ghost1372 ghost1372 added the bug Something isn't working label Sep 16, 2024
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

1 participant