# SwitchModule function

Enables or disables specified Router Core library module.

## Syntax

Delphi
C++

    function SwitchModule(
      Index: DWORD;
      Enabled: Bool
    ): Bool; stdcall;

    BOOL WINAPI SwitchModule(
      _In_  DWORD Index,
      _In_  BOOL Enabled
    );

## Parameters

Index [in]

  Module index, beginning from zero.

Enabled [in]

  Enable or disable specified module.

## Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.