< 返回版块

1192724521 发表于 2021-11-19 17:16

Tags:windows-rs

pub unsafe fn FindWindowW<'a, Param0: IntoParam<'a, PWSTR>, Param1: IntoParam<'a, PWSTR>>(

    lpclassname: Param0, 
    lpwindowname: Param1

) -> HWND
#[repr(transparent)]
pub struct PWSTR(pub *mut u16);

怎么传入lpclassname或者lpwindowname

评论区

写评论
作者 1192724521 2021-11-20 10:34

谢谢 知道了

👇
bitbegin: PSTR(b"window\0".as_ptr() as _),

bitbegin 2021-11-19 20:31

PSTR(b"window\0".as_ptr() as _),

1 共 2 条评论, 1 页