Return the error code of the last operation.
DWORD NET_DVR_GetLastError( );
The return values are error codes, see Device Network SDK Errors for details.
You can also call NET_DVR_GetErrorMsg to directly get the error information.