Skip to content

Use Unicode instead of ANSI WinAPI functions #4

@Enyium

Description

@Enyium

For Windows, the Unicode WinAPI functions should be used. You can create a null-terminated wide-string buffer with HSTRING (reexported by windows crate), which has From implementations and .as_ptr(). Creating it inside the argument list makes it live until after the call. This also lets you get rid of a manual \0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions