WslIsDistributionRegistered function (wslapi.h)

Determines if a distribution is registered with the Windows Subsystem for Linux (WSL).

Syntax

BOOL WslIsDistributionRegistered(
  PCWSTR distributionName
);

Parameters

distributionName

Unique name representing a distribution (for example, "Fabrikam.Distro.10.01").

Return value

Returns TRUE if the supplied distribution is currently registered, or FALSE otherwise.

Requirements

   
Target Platform Windows
Header wslapi.h
Library Wslapi.lib
DLL Api-ms-win-wsl-api-l1-1-0.dll