pInvoke API to c#

  • Thread starter Thread starter GTi
  • Start date Start date
G

GTi

I want to pInvoke a API (from a DLL) and it have the following C
interface:

callme(unsigned short, void*, void*, unsigned long, void*, unsigned
char, char, unsigned char*);

DllImport("CALLME.DLL", CharSet = CharSet.Auto)]
public static extern int callme(???);

How can I use pointers in c#
 
It like this.

public static extern int callme(UInt16, IntPtr, IntPtr, UInt32, IntPtr,
byte, char,string);

hope it works.

Sincerely,
simida
 
Back
Top