/* * Use CallBack callback = new CallBack(targetFunction) in your main program. * Then pass the delegate to Register calback. * * The dll will call "targetFunction" depending on "callbackType" * * Please be sure that targetFunction cannot block DLL! * */ public static void RegisterCallback(int connectionInstance, int callbackType, HSP_CallBack callback) { _CD_eGateHighSpeedPort_RegisterCallback(connectionInstance, callbackType, callback); }
private static extern int _CD_eGateHighSpeedPort_RegisterCallback(int connectionInstance, int callbackType, HSP_CallBack callback);