Skip to content

NET_SDK_GetPTZConfig

Interface Definition

1
2
3
4
5
6
7
8
9
BOOL NET_SDK_GetPTZConfig(
    LONG lUserID,
    LONG lChannel,
    DWORD dwPTZCmd,
    LPVOID lpInBuffer,
    DWORD dwInBufferSize,
    LPVOID lpOutBuffer,
    DWORD dwOutBufferSize,
    LPDWORD lpBytesReturned);
1
2
3
4
5
6
7
8
9
public static extern bool NET_SDK_GetPTZConfig(
    int lUserID,
    int lChannel,
    int dwCommand,
    IntPtr lpInBuffer,
    int dwInBufferSize,
    IntPtr lpOutBuffer,
    int dwOutBufferSize,
    ref int lpBytesReturned);

Function Description

Obtain PTZ related configurations (only for N9000).

Parameter Description

Parameters Type Remark
lUserIDin LONG User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx.
lChannelin LONG Channel number, starting from 0. This parameter is invalid for IPC devices.
dwPTZCmdin DWORD For device configuration commands, refer to DD_PTZ_CONFIG_E.
lpInBufferin LPVOID The buffer pointer for sending data does not need to be NULL.
dwInBufferSizein DWORD The buffer length for sending data (in bytes), which does not need to be 0.
lpOutBufferout LPVOID Pointer to the buffer where data is received.
dwOutBufferSizein DWORD The buffer length 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

Different acquisition functions correspond to different structures and command numbers, as shown in the following table:

dwPTZCmd command value dwPTZCmd meaning Send data lpInBuffer Receive structure
DD_PTZ_CONFIG_PRESET Get channel preset point NULL DD_PTZ_PRESET_CONFIG_Ex
DD_PTZ_CONFIG_CRUISE Get channel cruise line NULL DD_CH_CRUISE
DD_PTZ_CONFIG_CRUISE_POINT Get channel cruise line preset point unsigned int(cruiseIndex) DD_CRUISE_POINT_INFO
Error Code