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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | wslapi.h |
Library | Wslapi.lib |
DLL | Api-ms-win-wsl-api-l1-1-0.dll |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for