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)?
Just using this project for the first time. I wanted to generate
STARTUPINFOEXfor use withCreateProcess.In a new .NET Core 5 class library, I can specify
CreateProcessinNativeMethods.txt, but I can't specifySTARTUPINFOEX. After research, it turns out the metadata does have that structure, but with aWpostfix. SpecifyingSTARTUPINFOEXWinNativeMethods.txtdoes work.CsWin32 will auto-append
WtoCreateProcess, but doesn't do it forSTARTUPINFOEX. I assume CsWin32 does this for methods but not structures.Is it possible to append
Wfor 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)?