Set condition to get result one by one.
LONG NET_DVR_SendWithRecvRemoteConfig( LONG lHandle, void *lpInBuff, DWORD dwInBuffSize, void *lpOutBuff, DWORD dwOutBuffSize, DWORD *dwOutDataLen );
[IN] Handle returned by NET_DVR_StartRemoteConfig.
[IN] Buffer to save input parameter structure, and this structure varies with the value of dwCommand in API NET_DVR_StartRemoteConfig.
[IN] Input buffer size, which equals to the size of input parameter structure (lpInBuff).
[OUT] Buffer to save output parameter structure, and this structure corresponds one-to-one with the input parameter structure (lpInBuff).
[IN] Output buffer size, which equals to the size of output parameter structure (lpOutBuff).
[OUT] Pointer of actual received data size, and it cannot be set to "null".
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.
To get all information, you should call this API repeatedly.