NET_DVR_SetDeviceConfigEx

Set the device parameters in batch (sending data is supported).

API Definition

BOOL NET_DVR_SetDeviceConfigEx(
  LONG                 lUserID,
  DWORD                dwCommand,
  DWORD                dwCount,
  NET_DVR_IN_PARAM     *lpInParam,
  NET_DVR_OUT_PARAM    *lpOutParam
);

Parameters

lUserID

[IN] Value returned by NET_DVR_Login_V40.

dwCommand

[IN] Device configuration commands, which are different according to different configuration functions.

dwCount

[IN] Number of cameras to be set at a time. 0,1-one camera, 2-two cameras, 3-three cameras, and so on. Up to 64 cameras can be configured at a time.

lpInParam

[IN] Input parameter buffer, see details in the structure NET_DVR_IN_PARAM(the value of each member in the structure varies with the dwCommand).

lpOutParam

[IN] Output parameter buffer, see details in the structure NET_DVR_OUT_PARAM (the value of each member in the structure varies with the dwCommand).

Return Values

Returns TRUE for success, and returns FALSE for all failed. If returns TRUE, it does not mean that all settings are succeeded, you can check the value of lpStatusList[n] to check which one is succeeded.

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

See Also

Extended From: NET_DVR_SetDeviceConfig