Griaule Biometrics

Home » Fingerprint SDK 2009 Developer's Manual » Programming Reference Guide » Fingerprint SDK ActiveX Reference Guide » Events » SensorUnplug

SensorUnplug

This event is fired whenever a fingerprint reader is unplugged from the computer.

Prerequisites The capture module must have been previously initialized.
At least one fingerprint reader must be connected, working and recognized as plugged by the capture module.

Parameters

[in] idSensor

The ID of the fingerprint reader that raised the event.

Declaration

C++ .NET

 void [Control Name]_SensorUnplug(System::Object *  sender, _IGrFingerXCtrlEvents_SensorUnplugEvent *  e)

C#

void [Control Name]_SensorUnplug(object sender, [Library Name]._IGrFingerXCtrlEvents_SensorUnplugEvent e)

VB6

Sub [Control Name]_SensorUnplug(ByVal idSensor As String)

VB .NET

Sub [Control Name]_SensorUnplug(ByVal sender As System.Object, ByVal e As [Library Name]._IGrFingerXCtrlEvents_SensorUnplugEvent) Handles [Control Name].SensorUnplug

Delphi

procedure [Control Name]SensorUnplug(Sender: TObject; const idSensor: WideString);

Sample Code

C++ .NET

// A fingerprint reader was unplugged on system
private: System::Void axGrFingerXCtrl2_SensorUnplug(System::Object *  sender, _IGrFingerXCtrlEvents_SensorUnplugEvent *  e) {
WriteLog(String::Concat(S"Sensor: " , e->idSensor , ". Event: Unplugged."));
axGrFingerXCtrl2->CapStopCapture(e->idSensor);
}

C#

// A fingerprint reader was unplugged on system
private void axGrFingerXCtrl1_SensorUnplug(object sender, AxGrFingerXLib._IGrFingerXCtrlEvents_SensorUnplugEvent e)
{
WriteLog("Sensor: " + e.idSensor + ". Event: Unplugged.");
axGrFingerXCtrl1.CapStopCapture(e.idSensor);
}

VB6

' A fingerprint reader was unplugged on system
Private Sub GrFingerXCtrl1_SensorUnplug(ByVal idSensor As String)
writeLog ("Sensor: " & idSensor & ". Event: Unplugged.")
GrFingerXCtrl1.CapStopCapture (idSensor)
End Sub

VB .NET

' A fingerprint reader was unplugged on system
Private Sub AxGrFingerXCtrl1_SensorUnplug(ByVal sender As System.Object, ByVal e As AxGrFingerXLib._IGrFingerXCtrlEvents_SensorUnplugEvent) Handles AxGrFingerXCtrl1.SensorUnplug
WriteLog("Sensor: " & e.idSensor & ". Event: Unplugged.")
AxGrFingerXCtrl1.CapStopCapture(e.idSensor)
End Sub

Delphi

// A fingerprint reader was unplugged on system
procedure TGrFingerXCtrl1SensorUnplug(Sender: TObject;
const idSensor: WideString);
begin
writeLog ('Sensor: ' + idSensor + '. Event: Unplugged.');
GrFingerXCtrl1.CapStopCapture (idSensor);
end;