flutter windows main.cpp get app name from rust (#7316)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-03-06 17:57:05 +08:00
committed by GitHub
parent f3686b23c7
commit dd44bb2a0c
3 changed files with 23 additions and 4 deletions

View File

@@ -1748,7 +1748,7 @@ pub fn get_double_click_time() -> u32 {
unsafe { GetDoubleClickTime() }
}
fn wide_string(s: &str) -> Vec<u16> {
pub fn wide_string(s: &str) -> Vec<u16> {
use std::os::windows::prelude::OsStrExt;
std::ffi::OsStr::new(s)
.encode_wide()