NET_DVR_STDXMLConfig

Transmit request URL with XML or JSON format to implement some typical functions.

API Definition

BOOL NET_DVR_STDXMLConfig(
  LONG                                 lUserID,
  const NET_DVR_XML_CONFIG_INPUT       *lpInputParam,
  NET_DVR_XML_CONFIG_OUTPUT            *lpOutputParam
);

Parameters

lUserID

[IN] Value returned by NET_DVR_Login_V40.

lpInputParam

[IN] Input parameters, refer to the structure NET_DVR_XML_CONFIG_INPUT for details.

lpOutputParam

[IN][OUT] Output parameters, refer to the structure NET_DVR_XML_CONFIG_OUTPUT for details.

Return Values

Return TRUE for success, and return FALSE for failure.

If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

Remarks

The input parameter lpInputParam and output parameter lpOutputParam are different when transmitting text protocol for implementing different functions, and each parameter corresponds to a component of text protocol, see the relations below:

Parameter of NET_DVR_STDXMLConfig

Component of Text Protocol

lpInputParam

lpRequestUrl (see in structure NET_DVR_XML_CONFIG_INPUT)

Method+URL

E.g., GET /ISAPI/System/capabilities

lpInBuffer (see in structure NET_DVR_XML_CONFIG_INPUT)

Request Message

lpOutputParam

lpOutBuffer (see in structure NET_DVR_XML_CONFIG_OUTPUT)

Response Message

lpStatusBuffer (see in structure NET_DVR_XML_CONFIG_OUTPUT)

Response Message