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
1. Supported PInvoke Features
You can look at the simple examples on this web site, but honestly they do not do justice to all of the available features provided by the PInvoke Wizard. We've used it extensively in writing production code for both mobile and desktop managed code development, and keep adding new features as we need them – and from feature requests from users like you!

  • Creates declarations in your choice of C# or Visual Basic .NET
  • Converts #define declarations to managed code constant declarations
  • Supports selection of a target framework: .NET Framework for the desktop, and .NET Compact Framework for Windows Mobile smart devices (and Windows CE)
  • Optionally places like-named groups of contiguous #define constants into enumerations (based on proximity and similarity between constant names)
  • Recognizes application-specific (typedef-defined) data types
  • Converts structure definitions into managed code structure declarations
  • For arrays in structures, adds the MarshalAs attribute
  • Convert function declarations into managed code function declarations using the appropriate DllImport attribute.
  • For Visual Basic.NET, distinguishes between Sub (methods with no return value) and Function (methods with return values)


Last updated: October 25, 2023
By: Paul Yao
The Paul Yao Company

CONTACT US LOGISTICS REQUEST MORE INFORMATION