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

A literal UTF-16 wide string with a trailing null terminator.

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. All of this is done at compile time so there’s no run time cost at all.