WSL-DistroLauncher icon indicating copy to clipboard operation
WSL-DistroLauncher copied to clipboard

'HCS_E_HYPERV_NOT_INSTALLED': undeclared identifier

Open CarlosNihelton opened this issue 4 years ago • 3 comments

Hello, everyone! Happy new year!

Current state of the master branch fails to compile with msbuild command line. PR #101 introduced the HRESULT HCS_E_HYPERV_NOT_INSTALLED which seems to be defined in Windows 10 SDK, version 1809 (10.0.17763.0), a few releases behind the latest, but the launcher project file targets version 10.0.16299, thus resulting in the undeclared identifier compilation error.

The fix seems to be simple: upgrade the target SDK to a proper version. To which version of the SDK should we upgrade to?

CarlosNihelton avatar Jan 06 '22 18:01 CarlosNihelton

Obviously, the latest one. Link https://developer.microsoft.com/en-US/windows/downloads/windows-sdk/.

Biswa96 avatar Jan 06 '22 18:01 Biswa96

Obviously, the latest one. Link https://developer.microsoft.com/en-US/windows/downloads/windows-sdk/.

Thank you.

CarlosNihelton avatar Jan 06 '22 18:01 CarlosNihelton

Alternatively, it will be easier just to defined the constant in source code like this:

#define HCS_E_HYPERV_NOT_INSTALLED _HRESULT_TYPEDEF_(0x80370102L)

Biswa96 avatar Jan 06 '22 18:01 Biswa96