# ScanRouter function

Starts the processing of specified device.

## Syntax

Delphi
C++

    function ScanRouter(
      hRouter: THandle;
      Async: Bool
    ): Bool; stdcall;

    BOOL WINAPI ScanRouter(
      _In_  HANDLE hRouter,
      _In_  BOOL Async
    );

## Parameters

hRouter [in]

  A valid handle to the Router object. It can be obtained with PrepareRouter function.

Async [in]

  Enable or disable asynchronous mode. If disabled, the function will return when the device processing will be finished, else it will return immediately.

## Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.