WindowsSdk

set_params interface

  • Definition:
int _stdcall set_params(int camera, const char * content, unsigned int content_len, DWORD wait_time);
  • Parameter:
camera:[in],The camera's handle which is from new_camera
content:[in],One or more properties which want to set
content_len:[in],The properties content's length
wait_time:[in],The time waiting for repone, millisecond
  • Return:
Return ERROR_OK if success,else refer to the definition of error number
  • Explain:
Sets camera's parameter .

    Before calling this function, should first ensure the connection of camera with 
the specified has been established, or the operation will fail.

    The result of the operation through the SET_PARAMS_RESULT event notification user.
The content parameter is used to specify the name of the parameters to be set. 
The format of the content parameter is composed of one or more strings,

    Each string is to set parameters by name and parameter values: name = value, between each string '\0' separated by.
The content_len parameter value is equal to the length of all the data of content, including each end of the string '\0'.

For example:

Content = "dhcp=0\0ip=192.168.0.100\0mask=255.255.255.0\0"; (Note: Here "" does not mean that the content of C string, just represent the distribution in memory)

Content_len 43.

As for the specific parameters of the camera, please refer to the relevant CGI application guide.

IP Camera Windows SDK manual

Copyright:Shenzhen XRC Tech Co.,Ltd.

ICP:粤ICP备09050685号