webview2_com

Function take_pwstr

Source
pub fn take_pwstr(source: PWSTR) -> String
Expand description

Copy a PWSTR allocated with [Com::CoTaskMemAlloc] from an input param to a String and free the original buffer with [Com::CoTaskMemFree].