Alguna vez hice un runPE, y necesitaba pasar funciones de la API de win de C++ a C#, VB.Net y viceversa.
Para lo cual me fue muy útil está pagina, por ejm si quieres ver la implementación de VirtualAllocEx en VB.Net o C#
http://www.pinvoke.net/default.aspx/kernel32/VirtualAllocEx.htmlCualquier función de la api la puedes consultar.
Colorea tu código al postear en la parte superior derecha dice GeShi
C# Signature:
[DllImport("kernel32.dll", SetLastError=true, ExactSpelling=true)]
static extern IntPtr VirtualAllocEx(IntPtr hProcess, IntPtr lpAddress,
uint dwSize, AllocationType flAllocationType, MemoryProtection flProtect);
VB.NET Signature:
<DllImport("kernel32.dll", SetLastError:=True, ExactSpelling:=True)> _
Private Function VirtualAllocEx(ByVal hProcess As IntPtr, ByVal lpAddress As IntPtr, _
ByVal dwSize As UInteger, ByVal flAllocationType As UInteger, _
ByVal flProtect As UInteger) As IntPtr
End Function
Saludos.