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

Reply via email to