WindowsSdk

get_params interface

  • Definition:
int _stdcall get_params(int camera, const char * content, unsigned int content_len, char** result, unsigned int * result_len, DWORD wait_time);
  • Parameter:
camera:[in],The camera's handle which is from new_camera
content:[in],One or more arameters which want to get
content_len:[in],The parameter content's length
result:[out],The parameters result
result_len:[out],The result'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:
Gets the parameters of camera.

    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 GET_PARAMS_RESULT event notification user.
The content parameter is used to specify the query parameter name, if NULL,

    Show to query all permissions query parameters. The format of the content parameter is composed of one or more strings,
Each string is composed of parameters to query the name, 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 = "id\0alias\0ntp\0"; (Note: Here "" does not mean that the content of C string, just represent the distribution in memory)
Content_len 13.

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号