WslUnregisterDistribution function wslapi
Unregisters a distribution from the Windows Subsystem for Linux (WSL).
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/wslapi/nf-wslapi-wslunregisterdistribution.
Implementation
@pragma('vm:prefer-inline')
void WslUnregisterDistribution(PCWSTR distributionName) {
final hr$ = HRESULT(_WslUnregisterDistribution(distributionName));
if (hr$.isError) throw WindowsException(hr$);
}