windows: Update `windows-rs` crate and better error handling in `DirectWrite` (#12818)

- Update `windows-rs` from `0.56` to `0.57`
- Use the newly introduced `Owned` struct in `0.57` to handle the RAII
stuff of `HANDLE`
- Better error handling in `DirectWrite`

Release Notes:

- N/A
4cb45e63f4张小白 committed on 6/14/2024, 5:12:20 PM· committed by GitHubparent1413b5a
6 files changedLine totals unavailable