pInvoke API to c#

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#
 
S

simida

It like this.

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

hope it works.

Sincerely,
simida
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top