NET_DVR_GetDownloadState

Get the file downloading progress and status.

API Definition

LONG NET_DVR_GetDownloadState(
  LONG       lDownloadHandle,
  DWORD      *pProgress
);

Parameters

lDownloadHandle

[IN] Handle for downloading files, which is returned by NET_DVR_StartDownload.

pProgress

[OUT] Returned progress value, which is ranging from 1 to 100.

Return Values

Returns -1 for calling failed, and returns other values as the downloading status codes: 1-Downloaded, 2-Downloading, 3-Downloading Failed, 4-Network Disconnected, Unknown Status.

If returning failed, you can call NET_DVR_GetLastError to get the error code.