fn main() { let bytes = "Hello!\0".encode_utf16().collect::>(); unsafe { aa::clipboard::set_clipboard_data( bytes.as_ptr().cast(), bytes.len() * 2, aa::clipboard::ClipboardFormats::CF_UNICODETEXT, ) .unwrap(); } }