Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/windows/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ set(SOURCES
SubProcess.cpp
svccomm.cpp
svccommio.cpp
usbclient.cpp
usbservice.cpp
WslClient.cpp
WslCoreConfig.cpp
WslCoreFirewallSupport.cpp
Expand Down Expand Up @@ -83,6 +85,8 @@ set(HEADERS
SubProcess.h
svccomm.hpp
svccommio.hpp
usbclient.hpp
usbservice.hpp
WslClient.h
WslCoreConfig.h
WslCoreFirewallSupport.h
Expand Down
10 changes: 10 additions & 0 deletions src/windows/common/svccomm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,16 @@ GUID wsl::windows::common::SvcComm::GetDistributionId(_In_ LPCWSTR Name, _In_ UL
return DistroId;
}

GUID wsl::windows::common::SvcComm::GetDistributionRuntimeId(_In_opt_ LPCGUID DistroGuid) const
{
ClientExecutionContext context;

GUID RuntimeId;
THROW_IF_FAILED(m_userSession->GetDistributionRuntimeId(DistroGuid, context.OutError(), &RuntimeId));

return RuntimeId;
}

GUID wsl::windows::common::SvcComm::ImportDistributionInplace(_In_ LPCWSTR Name, _In_ LPCWSTR VhdPath) const
{
ClientExecutionContext context;
Expand Down
2 changes: 2 additions & 0 deletions src/windows/common/svccomm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class SvcComm

GUID GetDistributionId(_In_ LPCWSTR Name, _In_ ULONG Flags = 0) const;

GUID GetDistributionRuntimeId(_In_opt_ LPCGUID DistroGuid = nullptr) const;

GUID ImportDistributionInplace(_In_ LPCWSTR Name, _In_ LPCWSTR VhdPath) const;

MountResult MountDisk(_In_ LPCWSTR Disk, _In_ ULONG Flags, _In_ ULONG PartitionIndex, _In_opt_ LPCWSTR Name, _In_opt_ LPCWSTR Type, _In_opt_ LPCWSTR Options) const;
Expand Down
Loading