GetDeviceID
Top  Previous  Next

Description

Returns the unique hardware ID of the currently selected camera or framegrabber in the string form.


Syntax


[VB]
Value=objActiveGeni.GetDeviceID


[C/C++]
HRESULT GetDeviceID(bstr* pValue );


Data Types
[VB]

Return value: String


Parameters
[C/C++]

pValue [out, retval]  
Pointer to the string value specifying the device ID.  


Return Values


S_OK  
Success  
E_FAIL  
Failed to read the feature  
 

Example


The following VB example prints the MAC address if the camera:

MsgBox ActiveGeni1.GetDeviceID

 
Remarks

Per GenTL standard, the Device ID can be used to uniquely identify the camera or framegrabber when multiple devices are preset on the system.