{"id":13,"date":"2015-04-02T10:35:06","date_gmt":"2015-04-02T07:35:06","guid":{"rendered":"http:\/\/prog.soft2e.info\/?p=13"},"modified":"2015-04-06T11:50:04","modified_gmt":"2015-04-06T08:50:04","slug":"%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba-%d0%b2%d0%bd%d0%b5%d1%88%d0%bd%d0%b5%d0%b9-%d0%bf%d1%80%d0%be%d0%b3%d1%80%d0%b0%d0%bc%d0%bc%d1%8b-%d0%b8%d0%b7-%d0%bf%d1%80%d0%be%d0%b3%d1%80%d0%b0%d0%bc%d0%bc","status":"publish","type":"post","link":"https:\/\/prog.soft2e.info\/?p=13","title":{"rendered":"\u0417\u0430\u043f\u0443\u0441\u043a \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435\u043c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f"},"content":{"rendered":"<hr \/>\n<p>&nbsp;<\/p>\n<blockquote><p><strong>procedure<\/strong> ExecAndWait(FileName:String);<br \/>\n<strong>var<\/strong><br \/>\nRslt: LongBool;<br \/>\nStartUpInfo: TStartUpInfo;<br \/>\nProcessInfo: TProcessInformation;<br \/>\n<strong>begin<\/strong><br \/>\nFillChar(StartupInfo, SizeOf(TStartupInfo), #0);<br \/>\n<strong>with<\/strong> StartupInfo <strong>do<\/strong><br \/>\n<strong>begin<\/strong><br \/>\ncb := SizeOf(TStartupInfo);<br \/>\ndwFlags := STARTF_USESHOWWINDOW;<br \/>\nwShowWindow := SW_SHOW;<br \/>\n<strong>end;<\/strong><br \/>\nRslt := CreateProcess(nil, PChar(FileName), nil, nil, False,<br \/>\nCREATE_NEW_CONSOLE or NORMAL_PRIORITY_CLASS, nil, nil, StartupInfo, ProcessInfo);<br \/>\n<strong>if<\/strong> Rslt <strong>then<\/strong> WaitForSingleObject(ProcessInfo.hProcess, INFINITE)<br \/>\n<strong>else<\/strong><br \/>\n<strong>begin<\/strong><br \/>\nCloseHandle(ProcessInfo.hThread);<br \/>\nCloseHandle(ProcessInfo.hProcess);<br \/>\n<strong>end;<\/strong><br \/>\n<strong>end;<\/strong><\/p><\/blockquote>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; procedure ExecAndWait(FileName:String); var Rslt: LongBool; StartUpInfo: TStartUpInfo; ProcessInfo: TProcessInformation; begin FillChar(StartupInfo, SizeOf(TStartupInfo), #0); with StartupInfo do begin cb := SizeOf(TStartupInfo); dwFlags := STARTF_USESHOWWINDOW; wShowWindow := SW_SHOW; end; Rslt := CreateProcess(nil, PChar(FileName), nil, nil, False, CREATE_NEW_CONSOLE or NORMAL_PRIORITY_CLASS, nil, nil, StartupInfo, ProcessInfo); if Rslt then WaitForSingleObject(ProcessInfo.hProcess, INFINITE) else begin CloseHandle(ProcessInfo.hThread); CloseHandle(ProcessInfo.hProcess); end; end; &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"gallery","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/prog.soft2e.info\/index.php?rest_route=\/wp\/v2\/posts\/13"}],"collection":[{"href":"https:\/\/prog.soft2e.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prog.soft2e.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prog.soft2e.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prog.soft2e.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":7,"href":"https:\/\/prog.soft2e.info\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":40,"href":"https:\/\/prog.soft2e.info\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions\/40"}],"wp:attachment":[{"href":"https:\/\/prog.soft2e.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prog.soft2e.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prog.soft2e.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}