Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[rt.cpan.org #140476] Call Win32::Process::Create with non-default STARTUPINFO struct

0 views
Skip to first unread message

Luigi Iotti via RT

unread,
Dec 15, 2021, 11:30:04 PM12/15/21
to libw...@perl.org
Tue Dec 14 10:25:37 2021: Request 140476 was acted upon.
Transaction: Ticket created by LUX
Queue: Win32-Process
Subject: Call Win32::Process::Create with non-default STARTUPINFO struct
Broken in: 0.17
Severity: (no value)
Owner: Nobody
Requestors: L...@cpan.org
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=140476 >


I'd like the ability to start a minimized win32 process. From what I inderstand this can be done win Win32 by calling CreateProcessA() with the STRTUPINFO structure (the second-last arg) set with some particolar flags.
Win32::Process::Create calls CreateProcessA() in Process.hpp, but unfortunately in the current implementation, the st parameter (the STARTUPINFO structure) is not customizable.

For my problem I would need to be able to do something like the two following lines,but I think it would be nice to have some more general way to initialize st:
st.dwFlags = STARTF_USESHOWWINDOW;
st.wShowWindow = SW_MINIMIZE;

Thank you,
Luigi
0 new messages