<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Проверка процесса на принадлежность к службам]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12630</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12630&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Проверка процесса на принадлежность к службам».]]></description>
		<lastBuildDate>Fri, 21 Apr 2017 15:24:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Проверка процесса на принадлежность к службам]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115238#p115238</link>
			<description><![CDATA[<div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p>Заголовок уточнён.</p></blockquote></div><p> Спасибо, а то я долго искал верное название.</p><p>Второй&nbsp; код чем принципиально отличается от второго, до комментария <strong>;Либо:</strong>? </p><p>P.S. Это для бестолковых... <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /> Вижу отличия, конечно, но желательно уточнить, если не сложно.</p><p><strong>UPD</strong><br />Всё, разобрался - вопрос закрыт.</p>]]></description>
			<author><![CDATA[null@example.com (Indomito)]]></author>
			<pubDate>Fri, 21 Apr 2017 15:24:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115238#p115238</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Проверка процесса на принадлежность к службам]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115218#p115218</link>
			<description><![CDATA[<div class="codebox"><pre><code>Path = C:\Windows\system32\svchost.exe

MsgBox % ComObjGet(&quot;winmgmts:&quot;).ExecQuery(&quot;SELECT * FROM Win32_Service WHERE PathName LIKE &#039;%&quot; . StrReplace(Path, &quot;\&quot;, &quot;\\&quot;) . &quot;%&#039;&quot;).Count ? &quot;Служба&quot; : &quot;Не служба&quot;</code></pre></div><div class="codebox"><pre><code>PID = 992

MsgBox % ComObjGet(&quot;winmgmts:&quot;).ExecQuery(&quot;SELECT * FROM Win32_Service WHERE ProcessId=&quot; . PID).Count ? &quot;Служба&quot; : &quot;Не служба&quot;

; Либо:
RunWait, %ComSpec% /c for /f `%# in (&#039;tasklist /fi &quot;SessionName eq Services&quot; /fi &quot;pid eq %PID%&quot;^|find /i /c &quot;.exe&quot;&#039;) do exit /b `%#,, Hide UseErrorLevel
MsgBox, % ErrorLevel ? &quot;Служба&quot; : &quot;Не служба&quot;</code></pre></div><p><span style="color: green">Заголовок уточнён.</span></p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Fri, 21 Apr 2017 07:39:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115218#p115218</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Проверка процесса на принадлежность к службам]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115217#p115217</link>
			<description><![CDATA[<p>Приветствую. </p><p>Понадобилось мне идентифицировать/проверить процесс(ы) на принадлежность их к сервисам, а вот как, я лично не знаю.</p><p>Подскажите.</p>]]></description>
			<author><![CDATA[null@example.com (Indomito)]]></author>
			<pubDate>Fri, 21 Apr 2017 04:29:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115217#p115217</guid>
		</item>
	</channel>
</rss>
