tboox / tbox

🎁 A glib-like multi-platform c library
https://docs.tboox.org
Apache License 2.0
4.89k stars 725 forks source link

Option to spawn a process with CREATE_NO_WINDOW on windows #245

Closed da-liii closed 1 year ago

da-liii commented 1 year ago

close #244

In most cases, the spawned process is console app without UI. That's why I set the CREATE_NO_WINDOW flag directly.

da-liii commented 1 year ago

https://github.com/tboox/tbox/blob/master/src/tbox/platform/process.h#L41 看了这个的选项,如果是要加一个flag的话,应该需要新增一个enum。我觉得这里直接 NO_WINDOW就可以了,暂时不需要加选项。

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically.


https://github.com/tboox/tbox/blob/master/src/tbox/platform/process.h#L41 After looking at this option, if you want to add a flag, you should add a new enum. I think NO_WINDOW is enough here, and there is no need to add options for the time being.