Shedding Light on windows Programming Home Training Resources Registration About the Paul Yao Company
The Paul Yao Company
P/Invoke Wizard Home

The PInvoke Wizard
PInvoke Wizard Notes
2. What's new in the PInvoke Wizard 2.0?
Here are some of the improvements in the new version:
  • Code Parsing. The parsing engine has been enhanced to better recognize the various kinds of statements found in .H files.
  • Data Types. Better support for data types and a larger translation table to enable more accurate function parameter and data structure data members.
  • Standard Annotation Language (SAL). Microsoft added new language keywords like __in and __out, among others, to the Win32 API files. The new P/Invoke Wizard is able to recognize these and filter them out so that you get the correct declarations that you need.
  • New User Interface. It looks nicer, which means it will be easier to use. The P/Invoke Wizard now includes a list of the most recently used files, to make it easier to work with.
  • .NET Framework. We debated whether to upgrade the P/Invoke Wizard to the (at the time) latest .NET Framework 3.5 or be more conservative and go with the .NET Framework 2.0. In the end, we decided that version 2.0 had everything that we needed and at the time was more widely available than 3.5.
  • Performance Improvements. Everything runs faster, and not just because you have a faster CPU. We did some benchmarking and tweaked several areas. Our new status line shows you how long it takes to generate the code, so you can measure the results for yourself.
  • Bug Fixes. What? You mean we had bugs? Yes, a few. And you know, you only find bugs in the very last place you look. So we looked in a few more places and found (and fixed) the very, very last ones (we hope).




Last updated: November 24, 2023
By: Paul Yao
The Paul Yao Company

CONTACT US LOGISTICS REQUEST MORE INFORMATION