winctx 0.0.20

A minimal window context for Rust on Windows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::path::PathBuf;

use anyhow::Result;

fn main() -> Result<()> {
    let key = winctx::OpenRegistryKey::local_machine().open("SOFTWARE\\Tesseract-OCR")?;
    let value = key.get_string("Path")?;
    let path = PathBuf::from(value);
    let dll = path.join("libtesseract-5.dll");
    dbg!(&dll);
    Ok(())
}