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

Provide example code in repo / docs #1259

Open
adammw opened this issue Aug 12, 2024 · 0 comments
Open

Provide example code in repo / docs #1259

adammw opened this issue Aug 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@adammw
Copy link

adammw commented Aug 12, 2024

Is your feature request related to a problem? Please describe.
Trying to understand how to use the SafeHandle code to call methods and unsure if what I'm seeing is a bug in the generation logic or working with types I just don't understand yet. More specifically, trying to follow the guide of "Using the Low-Level Monitor Configuration Functions", and unsure how to work with Handles, SPAN<>, Optional Arguments, Null Pointers, etc.

Describe the solution you'd like
A directory of sample code for various common win32 APIs, showing how to use the SafeHandle and Span<> APIs.

Describe alternatives you've considered
Current I have to google around (usually finding resources refering to older P/Invoke APIs), or look at the tests which aren't exactly clear.

@adammw adammw added the enhancement New feature or request label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant