{"id":67,"date":"2007-05-11T21:23:09","date_gmt":"2007-05-11T19:23:09","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/createprocess\/"},"modified":"2007-05-11T21:23:11","modified_gmt":"2007-05-11T19:23:11","slug":"createprocess","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/createprocess\/","title":{"rendered":"CreateProcess"},"content":{"rendered":"<p>[code lang=&#8221;delphi&#8221;]function CreateProcessSimple(sExecutableFilePath : string ): string;<br \/>\n  var<br \/>\n   pi: TProcessInformation;<br \/>\n   si: TStartupInfo;<br \/>\n  begin<br \/>\n   FillMemory( @si, sizeof( si ), 0 );<br \/>\n   si.cb := sizeof( si );<br \/>\n    CreateProcess(Nil, PChar( sExecutableFilePath ),<br \/>\n                  Nil, Nil, False, NORMAL_PRIORITY_CLASS,<br \/>\n                  Nil, Nil, si, pi );<\/p>\n<p>   \/\/ &#8220;after calling code&#8221; such as<br \/>\n   \/\/ the code to wait until the<br \/>\n   \/\/ process is done should go here  <\/p>\n<p>   CloseHandle( pi.hProcess );<br \/>\n   CloseHandle( pi.hThread );<br \/>\n  end;[\/code]<\/p>\n<p>[tags]Delphi, API[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[code lang=&#8221;delphi&#8221;]function CreateProcessSimple(sExecutableFilePath : string ): string; var pi: TProcessInformation; si: TStartupInfo; begin FillMemory( @si, sizeof( si ), 0 ); si.cb := sizeof(&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[84,75],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-15","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/67"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}