Skip to content

NET_SDK_SetDVRConfig

Interface Definition

1
2
3
4
5
6
BOOL NET_SDK_SetDVRConfig(
    LONG lUserID,
    DWORD dwCommand,
    LONG lChannel,
    LPVOID lpInBuffer,
    DWORD dwInBufferSize);
1
2
3
4
5
6
public static extern bool NET_SDK_SetDVRConfig(
    int lUserID,
    uint dwCommand,
    int lChannel,
    IntPtr lpOutBuffer,
    int dwOutBufferSize);

Function Description

Set device configuration (supports 3.0DVR only).

Parameter Description

Parameters Type Remark
lUserIDin LONG User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx.
dwCommandin DWORD Configuration type, see DD_CONFIG_ITEM_ID.
lChannelin LONG Channel number, starting from 0. This parameter is invalid for IPC devices.
lpInBufferin LPVOID Input configuration information
dwInBufferSizein DWORD The size of the space requested by lpInBuffer.

Return Value

  • type:BOOL

  • remark:Returns TRUE if successful, FALSE if failed.

Remarks

Different dwCommands correspond to different data structures stored in lpInBuffer. For example, when dwCommand is DD_CONFIG_ITEM_DEVICE_INFO, lpInBuffer stores DD_DEVICE_INFO. For actual situations, refer to the description of DD_CONFIG_ITEM_ID.

Error Code