Access Non-.NET APIs with PInvoke: Translate API Definitions. Figure 1a & 1b
The MSDN documentation provides the details of Windows API functions and structures as C++ definitions. To make use of these, you need to be able to translate these definitions into VB.NET or C# syntax. These examples show the function's declaration for RasEnumEntries (1a) and the structure definition for RASENTRYNAME (1b).