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_ApiInterface

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    7
    BOOL NET_SDK_ApiInterface(
        LONG lUserID,
        char* sendXML,
        char* strUrl,
        LPVOID lpOutBuffer,
        DWORD dwOutBufferSize,
        LPDWORD lpBytesReturned);

    1
    2
    3
    4
    5
    6
    7
    public static extern Boolean NET_SDK_ApiInterface(
        Int32 lUserID,
        string sendXML,
        string strUrl,
        IntPtr lpOutBuffer,
        UInt32 dwOutBufferSize,
        ref int lpBytesReturned);

### Function Description

API protocol transparent transmission interface (supports public network).

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
sendXMLin | char* | The XML content in the API protocol.
strUrlin | char* | URL field of the API protocol. (Does not include IP and port. For example, the original API protocol is http://[:port]/PtzStopCruise[/channelId], and here the URL is PtzStopCruise/channelId).
lpOutBufferout | LPVOID | Receive data buffer pointer.
dwOutBufferSizein | DWORD | The size of the receive data buffer pointer.
lpBytesReturnedout | LPDWORD | The actual size of the returned data.

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code