Example #1
0
 /*
  *  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);
 }
Example #2
0
 private static extern int _CD_eGateHighSpeedPort_RegisterCallback(int connectionInstance,
                                                                   int callbackType,
                                                                   HSP_CallBack callback);