Skip to content

NET_SDK_GetDVRConfig

Interface Definition

1
2
3
4
5
6
7
8
BOOL NET_SDK_GetDVRConfig(
    LONG lUserID,
    DWORD dwCommand,
    LONG lChannel,
    LPVOID lpOutBuffer,
    DWORD dwOutBufferSize,
    LPDWORD lpBytesReturned,
    BOOL bDefautlConfig);
1
2
3
4
5
6
7
8
public static extern bool NET_SDK_GetDVRConfig(
    int lUserID,
    uint dwCommand,
    int lChannel,
    IntPtr lpOutBuffer,
    int dwOutBufferSize,
    ref int lpBytesReturned,
    bool bDefautlConfig);

Function Description

Get device configuration (only supports 3.0DVR).

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.
lpOutBufferout LPVOID Configuration data pointer.
dwOutBufferSizein DWORD The size of the space requested by lpOutBuffer.
lpBytesReturnedout LPDWORD The actual size of the data returned.
bDefautlConfigin BOOL Whether it is the default configuration, TRUE means getting the default configuration.

Return Value

  • type:BOOL

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

Remarks

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

Error Code