dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.12k stars 222 forks source link

More User32 juice #245

Closed arlm closed 8 years ago

arlm commented 8 years ago

Added SenInput, PostMessage, VirtualKey and ScanCode constants as well as a bunch of new functions.

Hope to have a better contribution this time.

P.S.: I could not find a way to fix a documentation that states that it is ambiguous. It refers to all SendInput overloads. How do I fix this kind of thing?

AArnott commented 8 years ago

I could not find a way to fix a documentation that states that it is ambiguous. It refers to all SendInput overloads. How do I fix this kind of thing?

You have to specify the method signature with all parameter types. The good news is the language service will help you with this. Press Ctrl+J (or whatever your keystroke is that triggers completion lists) while your caret is on the xml doc reference and it will present all the overloads. Pick one. I tend to pick the most native one (the one with pointers -- the one that you personally wrote rather than one that our code generators produced).

AArnott commented 8 years ago

Hope to have a better contribution this time.

Definitely. :smile: Lots of feedback, but your contribution was also large (thank you!) so we appreciate it.

arlm commented 8 years ago

Just finished all the revisioning. I'll do a new pull request for these changes and there is one more in line adding Shell32 and some Kernel32 juice.

There are some constants also that I am using that I had no idea on where to put, just check if I did it right, please.

AArnott commented 8 years ago

I've touched up the PR and am preparing to merge.

AArnott commented 8 years ago

Thanks for your contribution, @arlm !