Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is PInvoke and what are its use in C#.
Posted

If you want to call unmanaged functions from managed code, then then PInvoke is the way.

See following links,
http://msdn.microsoft.com/en-us/library/aa288468(v=vs.71).aspx[^]

This[^] link is very helpful regarding PInvoke.
 
Share this answer
 
Comments
pietvredeveld 8-Mar-12 13:14pm    
In addition to the links mentioned above, you should know that the functions should be in the NativeMethods (or SafeNativeMethods, UnsafeNativeMethods) class. See: http://msdn.microsoft.com/en-us/library/ms182161%28v=vs.80%29.aspx.

Piet
 
Share this answer
 
Comments
Prasad_Kulkarni 8-Mar-12 7:23am    
its 322,000 ;) laugh,!
#realJSOP 8-Mar-12 8:31am    
I'm a little dyslexic today. :)
And a few more here[^].
 
Share this answer
 

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