Skip to content

Structures without postfixes try wide variant if not found in metadata #360

Description

@StephenCleary

Just using this project for the first time. I wanted to generate STARTUPINFOEX for use with CreateProcess.

In a new .NET Core 5 class library, I can specify CreateProcess in NativeMethods.txt, but I can't specify STARTUPINFOEX. After research, it turns out the metadata does have that structure, but with a W postfix. Specifying STARTUPINFOEXW in NativeMethods.txt does work.

CsWin32 will auto-append W to CreateProcess, but doesn't do it for STARTUPINFOEX. I assume CsWin32 does this for methods but not structures.

Is it possible to append W for structures automatically? If not, could you describe why not (just for my curiosity) and add a brief line to the getting-started docs (for future devs)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions