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

The P/Invoke Wizard
P/Invoke Wizard
3. How does the P/Invoke Wizard work?
P/Invoke works by reading C/C++ include (.H) files. The P/Invoke processing engine takes the various declarations and produces a compatible .NET version in your choice of C# or Visual Basic .NET.

P/Invoke understands the following kinds of C/C++ declarations:
  • #define statements for integer and string constants
  • enum statements that define enumerated constant values
  • typedef struct declarations that define the layout of structures
  • typedef declarations for custom data types
  • function prototypes
The P/Invoke Wizard converts #define constants into the equivalent C# or VB.NET declarations. It converts C/C++ data structure definitions and converts them into the equivalent .NET data structures. It also reads C/C++ function prototypes and generates the equivalent function.




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

CONTACT US LOGISTICS REQUEST MORE INFORMATION