NET_DVR_SendWithRecvRemoteConfig

Set condition to get result one by one.

API Definition

LONG NET_DVR_SendWithRecvRemoteConfig(
  LONG     lHandle, 
  void     *lpInBuff, 
  DWORD    dwInBuffSize, 
  void     *lpOutBuff, 
  DWORD    dwOutBuffSize, 
  DWORD    *dwOutDataLen
);

Parameters

lHandle

[IN] Handle returned by NET_DVR_StartRemoteConfig.

lpInBuff

[IN] Buffer to save input parameter structure, and this structure varies with the value of dwCommand in API NET_DVR_StartRemoteConfig.

dwInBuffSize

[IN] Input buffer size, which equals to the size of input parameter structure (lpInBuff).

lpOutBuff

[OUT] Buffer to save output parameter structure, and this structure corresponds one-to-one with the input parameter structure (lpInBuff).

dwOutBuffSize

[IN] Output buffer size, which equals to the size of output parameter structure (lpOutBuff).

dwOutDataLen

[OUT] Pointer of actual received data size, and it cannot be set to "null".

Return Value

Return -1 for failure, and return other values as the status codes, refer to the table below.

Status Macro Definition

Status Code

Description

NET_SDK_CONFIG_STATUS_SUCCESS

1000

The data is obtained. The API NET_DVR_SendWithRecvRemoteConfig should be called again to get the next item of data.

NET_SDK_CONFIG_STATUS_NEEDWAIT

1001

Waiting. The API NET_DVR_SendWithRecvRemoteConfig can be called again.

NET_SDK_CONFIG_STATUS_FINISH

1002

All data is obtained. The API NET_DVR_StopRemoteConfig can be called to end.

NET_SDK_CONFIG_STATUS_FAILED

1003

Getting data failed. The API NET_DVR_SendWithRecvRemoteConfig can be called to get the next item of data.

NET_SDK_CONFIG_STATUS_EXCEPTION

1004

Getting data exception. The API NET_DVR_StopRemoteConfig can be called to end.

If -1 is returned, you can call NET_DVR_GetLastError to get the error code for reference.

Remarks

To get all information, you should call this API repeatedly.