Skip to content

CreateWindowEx lpClassName union? #623

Description

According to the documentation for CreateWindowEx, the lpClassName parameter can be:

A null-terminated string or a class atom created by a previous call to the RegisterClass or RegisterClassEx function.

However in the metadata, the lpClassName parameter is just a PSTR:

image

The C header also just declares this parameter as LPCSTR, however, I wonder if the metadata should consider enhancing this to some sort of union type like this?

typedef union  {
    LPCSTR String;
    ATOM Atom;
} CREATE_WINDOW_CLASS_NAME;

Does the current definition cause any issues for the other projections when someone wants to pass an ATOM for lpClassName?

cc Andrew Arnott (@AArnott) Kenny Kerr (@kennykerr)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions