master
h 33 lines 687 Bytes
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 WslInstaller.h
8
9 Abstract:
10
11 This file contains definitions for the WslInstallerService.
12
13 --*/
14
15 #pragma once
16 #include <wil/wrl.h>
17 #include <wslinstallerservice.h>
18
19 class DECLSPEC_UUID("B5AEB4C3-9541-492F-AD4D-505951F6ADA4") WslInstaller
20 : public Microsoft::WRL::RuntimeClass<Microsoft::WRL::RuntimeClassFlags<Microsoft::WRL::ClassicCom>, IWslInstaller, IFastRundown>
21 {
22 HRESULT Install(UINT* ExitCode, LPWSTR* Error) override;
23 };
24
25 struct InstallContext
26 {
27 wil::unique_handle Thread;
28 HRESULT Result{};
29 UINT ExitCode{};
30 std::wstring Errors;
31 };
32
33 std::shared_ptr<InstallContext> LaunchInstall();