# FreeRouter function

Closes an open Router object handle.

Note After calling this function, the specified handle is not valid anymore.

## Syntax

Delphi
C++

    function FreeRouter(
      hRouter: THandle
    ): Bool; stdcall;

    BOOL WINAPI FreeRouter(
      _In_  HANDLE hRouter
    );

## Parameters

hRouter [in]

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

## Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.