Many places I saw that we can use startupinfoex structure in CreateProcess function. But when I checked the signature is only allowing startupinfo structure. Can anybody please give a snippet how startupinfoex can be used with createprocess function. Thanks in advance….
Many places I saw that we can use startupinfoex structure in CreateProcess function. But
Share
You need to cast the
STARTUPINFOEX*to aSTARTUPINFO*.Be sure to pass the
EXTENDED_STARTUPINFO_PRESENTflag todwCreationFlagsand set theStartupInfo.cbmember tosizeof(STARTUPINFOEX).