
Use P/Invoke with Ease #62
Chapter 7, Help and Research
|
241
HACK
page also includes notes on the API as well as a tip on how to find the name
for the specific window you might be using. The page also includes sample
code that you could cut and paste directly into Visual Studio.
Using the Add-in
The PInvoke.NET wiki becomes even more valuable when you take advan-
tage of the Visual Studio add-in. The first step is to download and install the
add-in, which can done by clicking on the “Get the Visual Studio add-in”
link at the top of the PInvoke.NET page or by going to the following link:
http://www.gotdotnet.com/Community/UserSamples/Details.
aspx?SampleGuid=75122f62-5459-4364-b9ba-7b5e6a4754fe
Once you have installed the add-in, you can use it by simply right-clicking
on your document and selecting Insert PInvoke Signatures from the right-
click menu, which is shown in Figure 7-16.
Figure 7-15. PInvoke.NET signature page
Figure 7-16. PInvoke add-in menu