Macro windows::w

[]
macro_rules! w {
    ($s:literal) => { ... };
}
Expand description

A literal UTF-16 wide string.

Converts the literal UTF-8 string into a UTF-16 string adding a terminator and then wrapping that in an HSTRING reference so that it can be used for calling both WinRT APIs expecting an HSTRING as well as Win32 APIs expecting a PCWSTR.