Created
February 8, 2021 21:14
-
-
Save kennykerr/0dd9acc8bf0f9b03ce6686759f3e3e2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use bindings::{windows::win32::intl::*, windows::*}; | |
fn main() -> Result<()> { | |
initialize_mta()?; | |
let factory: ISpellCheckerFactory = create_instance(&SpellCheckerFactory)?; | |
let locale = HString::from("en-US"); | |
let mut supported = FALSE; | |
unsafe { | |
factory | |
.IsSupported(locale.as_wide().as_ptr(), &mut supported.0) | |
.ok()?; | |
} | |
println!("supported: {:?}", supported); | |
Ok(()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment