开发者

Using STARTUPINFOEX in CreateProcess

开发者 https://www.devze.com 2022-12-28 07:59 出处:网络
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 star

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...开发者_开发百科.


You need to cast the STARTUPINFOEX* to a STARTUPINFO*.

Be sure to pass the EXTENDED_STARTUPINFO_PRESENT flag to dwCreationFlags and set the StartupInfo.cb member to sizeof(STARTUPINFOEX).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号