public delegate UNKNWON FUNCSCANBACK(IntPtr hBuf,UInt32 unLines);
public class yourClass{
[DllImport("yourdll")]
public static extern UInt16 readdevice(UInt16 Lines, FUNCSCANBACK y);
void invokeFunc(){
readdevice(0,new FUNCSCANBACK(myCallBackFunc));
}
UNKNOWN myCallBackFunc(IntPtr hBuf,UInt32 unLines){
}
}
I used UNKNOWN as return type since I have no idea about CALLBACK*?