Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_GetIVMRuleConfig

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    7
    BOOL NET_SDK_GetIVMRuleConfig(
        LONG lUserID,
        DWORD dwCommand,
        LONG lChannel,
        LPVOID lpOutBuffer,
        DWORD dwOutBufferSize,
        LPDWORD lpBytesReturned);

    1
    2
    3
    4
    5
    6
    7
    public static extern Boolean NET_SDK_GetIVMRuleConfig(
        Int32 lUserID,
        UInt32 dwCommand,
        Int32 lChannel,
        IntPtr lpOutBuffer,
        UInt32 dwOutBufferSize,
        ref int lpBytesReturned);

### Function Description

Get the intelligent configuration information of the device (only supports IPC).

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
dwCommandin | DWORD | Device configuration commands, see `IVM_RULE_CONFIG_TYPE`.
lChannelin | LONG | Channel number, starting from 0. This parameter is invalid for IPC devices.
lpOutBufferout | LPVOID | Pointer to the buffer where data is received.
dwOutBufferSizein | DWORD | The length of the buffer pointer lpOutBuffer for receiving data (in bytes) cannot be 0.
lpBytesReturnedout | LPDWORD | Pointer to the actual received data length, cannot be NULL.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code