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_GetAlarmStatus

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    BOOL NET_SDK_GetAlarmStatus(
        LONG lUserID,
        LPVOID lpOutBuffer,
        DWORD dwOutBufferSize,
        LPDWORD lpBytesReturned);

    1
    2
    3
    4
    5
    public static extern bool NET_SDK_GetAlarmStatus(
        Int32 lUserID,
        IntPtr lpOutBuffer,
        int dwOutBufferSize,
        ref int lpBytesReturned);

### Function Description

Get the alarm information currently occurring on the device.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
lpOutBufferout | LPVOID | Output alarm event buffer, which is the data of `DD_ALARM_STATUS_INFO` structure array.
dwOutBufferSizein | DWORD | The size of the space requested by lpOutBuffer.
lpBytesReturnedout | LPDWORD | The valid data size in the returned lpOutBuffer.

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code