0
很多地方我看到我們可以在CreateProcess函數中使用startupinfoex結構。但是當我檢查簽名時只允許startupinfo結構。任何人都可以給一個片段,說明startupinfoex如何與createprocess函數一起使用。在此先感謝....在CreateProcess中使用STARTUPINFOEX
很多地方我看到我們可以在CreateProcess函數中使用startupinfoex結構。但是當我檢查簽名時只允許startupinfo結構。任何人都可以給一個片段,說明startupinfoex如何與createprocess函數一起使用。在此先感謝....在CreateProcess中使用STARTUPINFOEX
您需要將STARTUPINFOEX*
投到STARTUPINFO*
。
務必將EXTENDED_STARTUPINFO_PRESENT
標誌傳遞給dwCreationFlags
,並將StartupInfo.cb
成員設置爲sizeof(STARTUPINFOEX)
。