CameraUnplugged
Top  Previous  Next

Description

This event is fired each time a camera gets disconnected from the system.


Syntax


[VB]
Private Sub objActiveGeni_CameraUnplugged(ByVal Camera As Integer)


[C/C++]
HRESULT Fire_CameraUnplugged(SHORT Camera);


Data Types
[VB]

Camera: Integer  


Parameters
[C/C++]

Camera  
The index of the camera that has been disconnected.  
 

Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example uses the CameraUnplugged to detect when the currently selected camera is unplugged:

Private Sub ActiveGeni1_CameraUnplugged(ByVal Camera As Integer)  
If ActiveGeni1.Camera = Camera Then  
MsgBox "Currently selected camera has been disconnected"  
End If  
End Sub