Get the next search result.
LONG NET_DVR_GetNextRemoteConfig( LONG lHandle, void *lpOutBuff, DWORD dwOutBuffSize );
[IN] Search handle, which is the value returned by NET_DVR_StartRemoteConfig.
[OUT] Output parameter buffer pointer, which relates to the commands (dwCommand) of NET_DVR_StartRemoteConfig.
[IN] Buffer size.
Returns -1 for failure, and returns other values for the current statuses, see details in the following table.
Status |
Value |
Description |
---|---|---|
NET_SDK_GET_NEXT_STATUS_SUCCESS |
1000 |
The data is obtained. The API NET_DVR_GetNextRemoteConfig should be called again to get the next item of data. |
NET_SDK_GET_NETX_STATUS_NEED_WAIT |
1001 |
Waiting. The API NET_DVR_GetNextRemoteConfig can be called again. |
NET_SDK_GET_NEXT_STATUS_FINISH |
1002 |
All data is obtained. The API NET_DVR_StopRemoteConfig can be called to end. |
NET_SDK_GET_NEXT_STATUS_FAILED |
1003 |
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.
To get all information, you should call this API repeatedly.