Skip to content

Use Unicode instead of ANSI WinAPI functions #4

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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