-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle case when TaskBarList could not be created #15852
Conversation
You can test this PR using the following package version. |
|
@cla-avalonia agree |
You can test this PR using the following package version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
* Handle case when TaskBarList could not be created * Use HRESULT.S_OK for better clarity
What does the pull request do?
Checks whether TaskBarList successfully created.
What is the current behavior?
Current code assumes TaskBarList is supported on all windows version. On Windows Server Core editions TaskBarList is not supported (no taskbar) and creating a window crashes the application.
What is the updated/expected behavior with this PR?
Applications could start on Windows Server Core. Tested on Windows Server 2016 Core.
Checklist
Fixed issues
Fixes #15840