How to import user32.dll and others in C #?

2

I found several and several results on the internet teaching to import a specific function of user32.dll .

But I can not get out of my head if someone has not done a project with all the% done% organized.

So this project would matter and IDE would help you find all the other constants and functions.

Or will Microsoft itself not do it?

The pinvoke.net project does not have this ready. I would have to copy and paste each and some have other documentation comments not.

    
asked by anonymous 18.09.2015 / 19:29

1 answer

3

It does not exist and it does not make much sense to have since only you know what you need to import. Besides that, it would be difficult to keep something up-to-date and to take care of the correct version.

And if you're wanting to import everything and will not use it, you're doing something wrong. The fact that there are several things does not mean that everything should be available for use. The very use of importing unmanaged content should be done sparingly. Following this is not going to be a lot of work.

Imagine something like P / Invoke that uses this intensely did not, it's because it should not do. But it's the source that will help you.

If you want to know everything that exists, you should look at the documentation.

    
18.09.2015 / 20:12