WriteRegister
Top  Previous  Next

Description

Sets the value of the specified virtual camera register.

[C++]
int
 WriteRegister(unsigned int addr, unsigned int Value);

Parameters
[C/C++]
 
[in] unsigned int* addr  
Address of the register to read.  
 
[in] unsigned int* pAddr  
Value to be written to the register.  


Return Values

S_OK  
Success  
E_FAIL  
Failure  
E_NOINTERFACE  
Register does not exist  
 

Example


This fragment of an MFC code modifies the value of the register associated with the Gain feature:

   CString str;   
 unsigned int addr; int iVal  
   m_pCamera->GetFeatureRegister("Gain", &addr);  
   m_pCamera->WriteRegister(addr,8)  


Remarks

This method allows you to read the value of the virtual camera register. To obtain the address of the register associated with a specific feature, use GetFeatureRegister.