microsoft / CsWin32

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.
MIT License
1.99k stars 84 forks source link

Add EntryPoint #865 IsElevationRequired #1170

Closed gumbarros closed 2 months ago

gumbarros commented 2 months ago

Is your feature request related to a problem? Please describe. IsElevationRequired is not generated after adding to NativeMethods.txt

Describe the solution you'd like Generate IsElevationRequired

Describe alternatives you've considered LibraryImportAttribute

Additional context (https://undoc.airesoft.co.uk/shell32.dll/IsElevationRequired.php)

AArnott commented 2 months ago

CsWin32 only generated Win32 members that are in the Win SDK header files and/or are documented. It appears that IsElevationRequired (if there is such a function in shell32 as your link suggests) isn't a documented, publicly supported API. Therefore, it wouldn't be in win32metadata and cswin32 wouldn't generate it.