Call this API to remotely control the door or elevator.
BOOL NET_DVR_ControlGateway( LONG lUserID, LONG lGatewayIndex, DWORD dwStaic );
[IN] Value returned by NET_DVR_Login_V40.
[IN] Door No. or floor No., which starts from 1, -1: Control all doors or elevators of floors.
[IN] Command No.: 0-Close (Under Control), 1-Open, 2-Remain Open (Free), 3-Remain Closed (Disabled), 4-Recovery (only for elevator), 5-Vistor Call Elevator (only for elevator), 6-Resident Call Elevator (only for elevator).
Returns TRUE for success, and returns FALSE for failure.
If returning failed, you can call NET_DVR_GetLastError to get the error code.