Click here to Skip to main content
15,868,076 members
Please Sign up or sign in to vote.
3.33/5 (2 votes)
I have read much about Platform Invoke and wanna check out my knowledge.
I think:
1. Pinvoke wraps any Windows API, .dll files.
2. Then i can use those wrapped APIs or .dll files in my C# program.
Right?
Posted

1 solution

I have explained how this works and given you links to all the documentation for it. Why are you asking the same question again?

1. P/Invoke is a way of accessing Windows (or any other) unmanaged code, from managed (.NET) applications.
2. You can use any Windows API in a .NET program via the P/Invoke mechanism.
 
Share this answer
 
Comments
Ziya1995 18-Dec-14 9:52am    
It is called wrapping, yes?
Richard MacCutchan 18-Dec-14 10:25am    
Not really, you are not wrapping anything, just using a special mechanism in .NET to call out to unmanaged code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900