# PrepareRouter function

Prepares specified device for scanning.

## Syntax

Delphi
C++

    function PrepareRouter(
      Row,
      IP: DWORD;
      Port: Word;
      var hRouter: THandle
    ): Bool; stdcall;

    BOOL WINAPI PrepareRouter(
      _In_   DWORD Row,
      _In_   DWORD IP,
      _In_   WORD Port,
      _Out_  HANDLE *hRouter
    );

## Parameters

Row [in]

  Table row number, which is used to recieve information about specified device.

IP [in]

  32-bit IPv4 device address.

Port [in]

  Device TCP port.

hRouter [out]

  Handle to the Router object, which can be used in related functions.

## Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.