Where i can get complete api(s) of windows for c#, vb.net, with samples, or tutorials ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll probably want to use a combination of two different resources:
The original documentation (Windows API Functions by Category) to understand what functions are exposed by the Windows API, what they are used for, and how they work.
The applicable P/Invoke declarations for C#/VB.NET from someplace like PInvoke.net.
(Strictly speaking, you can generate your own declarations using the only information available in the documentation, but it’s probably easier—at least when you’re first starting out—to use a site that has done most of the work for you already. You won’t find every function out there on PInvoke.net, but most of the common ones are there.)
If you’re just looking for an example of P/Invoke at use in .NET code, you can take a look at the many sample projects available on a website like Code Project. I just answered a question yesterday where the solution involves calling functions exposed only by the Windows API; you can see that here.
Remember that it should be relatively rare that you need to P/Invoke anything from the Windows API at all when targeting the .NET Framework. Probably 90% of what you need is already implemented for you in managed code. That’s one of the joys of writing code in .NET. The idea of a "complete" API is both misguided and useless.