NET_DVR_StartRemoteConfig

Enable remote configuration.

API Definition

LONG NET_DVR_StartRemoteConfig(
  LONG                     lUserID,
  DWORD                    dwCommand,
  LPVOID                   lpInBuffer,
  DWORD                    dwInBufferLen,
  fRemoteConfigCallback    cbStateCallback,
  LPVOID                   pUserData
);

Parameters

lUserID

[IN] Value returned by NET_DVR_Login_V40.

dwCommand

[IN] Configuration commands. For different functions, the commands and lpInBuffer are different, see the detailed relation in the table below:

dwCommand Macro Definition

Value

Description

lpInBuffer Related Structure

lpBuffer Related Structure

NET_DVR_GET_ALL_RECORD_PASSBACK_TASK_MANUAL

6235

Get tasks of manually copying back videos

NET_DVR_RECORD_PASSBACK_MANUAL_COND

NET_DVR_RECORD_PASSBACK_MANUAL_TASK_RET

lpInBuffer

Input parameter buffer pointer, which relates to the configuration command.

dwInBufferLen

[IN] Size of input buffer.

cbStateCallback

[IN] Status callback function, see the definition in fRemoteConfigCallback.

pUserData

[OUT] User data.

Return Values

Returns -1 for failure, and returns other values for the handles of NET_DVR_GetNextRemoteConfig and NET_DVR_StopRemoteConfig.

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

Remarks

This API specifies the information to search. After calling this API, you can call NET_DVR_GetNextRemoteConfig to get the information one by one.