<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171032</guid>
        <pubDate>Mon, 14 Apr 2003 17:02:53 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171032</link>
        <description><![CDATA[__alex: о небольших отличиях:<br><div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>У меня Winoa386, а у него - Winoldap</div></div><br>если глянуть версию файла winoa386.exe, то InternalName=WINOLDAP.<br><div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>У него нет Kernel32, Msgsvr32, mmtask, Mprexe</div></div><br>ну и правильно - это же список задач а не процессов ;) если в своей проге вызвать RegisterServiceProcess, то и она исчезнет из это списка.<br><br>но и кнопку на таскбаре тоже надо учесть - все же в списке задач (как в win9x, так и в winnt+) отображается не заголовок окна, а текст этой кнопки.]]></description>
        <author>__alex</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171031</guid>
        <pubDate>Mon, 14 Apr 2003 16:30:37 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171031</link>
        <description><![CDATA[7in: По ходу дела <strong class='tag-b'>__alex</strong> всё-таки был прав.<br>Смотрите. Я заношу в массив хэндлы всех окон, а затем начинаю поиск всех процессов. Для каждого процесса перебираю все окна и сравниваю <strong class='tag-b'>id</strong> их владельцев (<strong class='tag-b'>GetWindowThreadProcessId</strong>) со значением <strong class='tag-b'>ProcessID</strong> найденного процесса. Если совпадение найдено и окно видимое, вывожу <strong class='tag-b'>GetWindowText</strong> <span class='tag-u'>последнего</span> в списке совпавшего окна (вернее первого, но я начинаю поиск с конца), иначе вывожу с заглавной буквы имя файла процесса (без расширения).<br>Я сравнивал результат работы этой программы со списком, вызываемым по <strong class='tag-b'>Ctrl-Alt-Del</strong>. Всё совпадает. Отличия небольшие:<br>[*] У меня нет <strong class='tag-b'>Explorer</strong>'а<br>[*] У меня <strong class='tag-b'>Winoa386</strong>, а у него - <strong class='tag-b'>Winoldap</strong><br>[*] У него нет <strong class='tag-b'>Kernel32, Msgsvr32, mmtask, Mprexe</strong><br>[*] Список в другом порядке :)<br><br>Вот код.<br>Необходимо создать кнопку <strong class='tag-b'>Button1</strong> и список <strong class='tag-b'>ListBox1</strong>.<br><br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">var&#60;br&#62; &nbsp;Win: array [1..1024] of DWord;&#60;br&#62; &nbsp;WC: DWord;&#60;br&#62; &nbsp;i: DWord;&#60;br&#62;&#60;br&#62;procedure TForm1.Button1Click(Sender: TObject);&#60;br&#62;&#60;br&#62; function EnumWindowsProc(H, LP: DWord): Boolean; stdcall;&#60;br&#62; begin&#60;br&#62; &nbsp; Inc(WC);&#60;br&#62; &nbsp; Win[WC] := H;&#60;br&#62; &nbsp; EnumWindowsProc := True&#60;br&#62; end;&#60;br&#62;&#60;br&#62;var&#60;br&#62; &nbsp;TH, P: DWord;&#60;br&#62; &nbsp;PE: TProcessEntry32;&#60;br&#62; &nbsp;Found, Ok: Boolean;&#60;br&#62; &nbsp;Title: PChar;&#60;br&#62;&#60;br&#62;begin&#60;br&#62; &nbsp;GetMem(Title, 4096);&#60;br&#62; &nbsp;ListBox1.Clear;&#60;br&#62; &nbsp;WC := 0;&#60;br&#62; &nbsp;EnumWindows(@EnumWindowsProc, 0);&#60;br&#62; &nbsp;TH := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);&#60;br&#62; &nbsp;Found := Process32First(TH, PE);&#60;br&#62; &nbsp;while Found do&#60;br&#62; &nbsp;begin&#60;br&#62; &nbsp; &nbsp;Ok := False;&#60;br&#62; &nbsp; &nbsp;for i := WC downto 1 do&#60;br&#62; &nbsp; &nbsp;begin&#60;br&#62; &nbsp; &nbsp; &nbsp;GetWindowThreadProcessId(Win[i], @P);&#60;br&#62; &nbsp; &nbsp; &nbsp;if IsWindowVisible(Win[i]) and (P = PE.th32ProcessID) then&#60;br&#62; &nbsp; &nbsp; &nbsp;begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;Ok := True;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;Break&#60;br&#62; &nbsp; &nbsp; &nbsp;end&#60;br&#62; &nbsp; &nbsp;end;&#60;br&#62; &nbsp; &nbsp;if Ok then&#60;br&#62; &nbsp; &nbsp;begin&#60;br&#62; &nbsp; &nbsp; &nbsp;GetWindowText(Win[i], Title, 4096);&#60;br&#62; &nbsp; &nbsp; &nbsp;Ok := (Title[0] &#60;&#62; #0)&#60;br&#62; &nbsp; &nbsp;end;&#60;br&#62; &nbsp; &nbsp;if not Ok then&#60;br&#62; &nbsp; &nbsp;begin&#60;br&#62; &nbsp; &nbsp; &nbsp;StrPCopy(Title, ExtractFileName(PE.szExeFile));&#60;br&#62; &nbsp; &nbsp; &nbsp;(StrEnd(Title)-Length(ExtractFileExt(PE.szExeFile)))^ := #0;&#60;br&#62; &nbsp; &nbsp; &nbsp;StrLower(Title+1)&#60;br&#62; &nbsp; &nbsp;end;&#60;br&#62; &nbsp; &nbsp;ListBox1.Items.Add(Title);&#60;br&#62; &nbsp; &nbsp;Found := Process32Next(TH, PE)&#60;br&#62; &nbsp;end;&#60;br&#62; &nbsp;CloseHandle(TH);&#60;br&#62; &nbsp;FreeMem(Title, 4096)&#60;br&#62;end;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>]]></description>
        <author>7in</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171030</guid>
        <pubDate>Mon, 14 Apr 2003 11:17:59 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171030</link>
        <description><![CDATA[e-yes: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>V4n93R&lt;RnD&gt;, 14.04.03, 14:43:39</span><div class='quote '>2e-yes: это в принципе неправильный код! Почитай мессаги повыше.</div></div><br>Думаешь я не читал?]]></description>
        <author>e-yes</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171029</guid>
        <pubDate>Mon, 14 Apr 2003 10:43:39 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171029</link>
        <description><![CDATA[v4ng3r: 2e-yes: это в принципе неправильный код! Почитай мессаги повыше.<br><br>А насчёт кнопки на таскбаре... Не знаю, может быть... Ладно, я завтра пороюсь, сообщу результаты.]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171028</guid>
        <pubDate>Sun, 13 Apr 2003 15:13:49 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171028</link>
        <description><![CDATA[__alex: кажется я начинаю понимать суть дела  ;)<br>а суть в том, что Application.Handle возвращает нэндл (HWND) окна, но не самого окна приложения, а ЕГО КНОПКИ на таскбаре!!<br>поэтому SetWindowText или Application.Title:='new title' меняют только надпись на этой кнопке, а не титл окна. и в Менеджере Задач или в списке по CAD высвечивается именно это. поэтому, если у нас есть злополучный хэндл, то вызываем GetWindowText и дело в шляпе!  ;D<br>встает другой вопрос - как получить хэндл этой самой кнопки? я не нашел этого в msdn, а насколько понятно из встроенного дебагера delphi, Application.Handle не вызывает сразу какую-либо api-функцию, а просто мувит заранее сохраненный хэндл... разглядывать же всю прогу в ida мне очень не хочется :)]]></description>
        <author>__alex</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171027</guid>
        <pubDate>Sun, 13 Apr 2003 10:26:53 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171027</link>
        <description><![CDATA[e-yes: Тебе __alex пять(!) дней назад дней написал _готовый_ код. И правильный. Почему бы не портировать на паскаль и не попробовать, прежде чем говорить что код не работает?<br><br>Посмотри пример, который я приводил, RTFM MSDN, не работает SetWindowText с хендлами процессов!]]></description>
        <author>e-yes</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171026</guid>
        <pubDate>Sun, 13 Apr 2003 09:49:33 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171026</link>
        <description><![CDATA[v4ng3r: 1. В эту функцию можно передавать хэндл процесса вместо хэндла окна. Только проходит почему-то только со своим окном/процессом. :'(<br>2. Да нифига. application.handle - это хэндл... э-э-э... приложения. Непонятно, что это, но пашет :)<br><br>Блин я зае... задолбался &gt;:( :)<br>Ну хоть кто-нибудь мне поможет ??? :'( :'(]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171025</guid>
        <pubDate>Sat, 12 Apr 2003 12:44:02 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171025</link>
        <description><![CDATA[e-yes: Мдя, тяжело с вами, дельфистами, это сколько ж мне надо выкурить 1; , шоб преобразовать дескриптор процесса в дескриптор окна??<br>Ладно, посмотри в справке, что из себя application.handle представляет. Наверняка хендл главного окна:)]]></description>
        <author>e-yes</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171024</guid>
        <pubDate>Sat, 12 Apr 2003 10:27:20 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171024</link>
        <description><![CDATA[v4ng3r: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>e&#045;yes, 11.04.03, 12:45:25</span><div class='quote '>Не надо грязи, для GetWindowText монопенисуально чужой процесс или свой</div></div><br>Тогда почему же следущий код выдаёт пустое сообщение вместо &quot;Delphi 7&quot;:<br><br>=========================================================<br>=========================================================<br>hsnapshot:=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);<br>procentry.dwSize:=sizeof(PROCESSENTRY32);<br>if Process32First(hsnapshot,procentry) then<br>begin<br>  repeat<br>    if procentry.szExeFile='мой_путь_к_delphi32.exe' then<br>    begin<br>      phndl:=openprocess(process_all_access,false,procentry.th32ProcessID);<br>      GetWindowText(phndl,ptitle,sizeof(ptitle));<br>      closehandle(phndl);<br>      showmessage(ptitle);<br>    end;<br>  until not Process32Next(hsnapshot,procentry);<br>end;<br>CloseHandle(hsnapshot);<br>=========================================================<br>=========================================================<br><br>а если передавать application.handle вместо phndl, то выводится свой title<br><br>И нифига:<br>setwindowtext(application.Handle,'123'); <strong class='tag-b'>меняет</strong> title на &quot;123&quot;<br><br>toZveruga: а ты поподробней расскажи, как это сделать... Что в библиотечке писать, например?<br>]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171023</guid>
        <pubDate>Fri, 11 Apr 2003 14:10:17 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171023</link>
        <description><![CDATA[e-yes: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>V4ng3R&lt;RnD&gt;, 10.04.03, 19:29:06</span><div class='quote '>Нет, ты не прав. К сожалению :(<br>Злополучный title задаётся, например, апи-функцией SetWindowText(phndl,&quot;Я заголовок. Догадайся, как меня получить&quot;); где phndl - хэндл процесса. Причём процесса только того, из которого функция вызывается, с чужим такие дела не проходят :( А также не проходит обратный процесс - getwindowtext чужого процесса :(<br>И title - не обязательно caption окна или название exeшника без расширения, он может быть каким угодно (каким задавали кодеры).<br><br>Слушайте, а может можно поставить хук или вживить dll'ку в чужой процесс, которая бы получала как бы &quot;свой&quot; title? Если это можно, может быть кто-нибудь подскажет, как?</div></div><br><br>Угадай, какой у проги стал title после этого кода:<br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;br&#62;::SetWindowText( (HWND)GetCurrentProcess(), &quot;123&quot; );&#60;br&#62;</div></ol></div></div></div></div><br><br>Правильный ответ: остался таким же, как и был.]]></description>
        <author>e-yes</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171022</guid>
        <pubDate>Fri, 11 Apr 2003 13:35:20 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171022</link>
        <description><![CDATA[Member_3696: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>V4ng3R&lt;RnD&gt;, 10.04.03, 19:29:06</span><div class='quote '>Слушайте, а может можно поставить хук или вживить dll'ку в чужой процесс, которая бы получала как бы &quot;свой&quot; title? Если это можно, может быть кто-нибудь подскажет, как?</div></div><br>Ну так ставь в чем проблема :). WH_CBT и можно получать title любого GUI приложения<br>]]></description>
        <author>Member_3696</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171021</guid>
        <pubDate>Fri, 11 Apr 2003 08:45:25 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171021</link>
        <description><![CDATA[e-yes: Не надо грязи, для GetWindowText монопенисуально чужой процесс или свой.<br><br>ЗЫ. И код верный, у меня такой же.]]></description>
        <author>e-yes</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171020</guid>
        <pubDate>Thu, 10 Apr 2003 15:29:06 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171020</link>
        <description><![CDATA[v4ng3r: Нет, ты не прав. К сожалению :(<br>Злополучный title задаётся, например, апи-функцией SetWindowText(phndl,&quot;Я заголовок. Догадайся, как меня получить&quot;); где phndl - хэндл процесса. Причём процесса только того, из которого функция вызывается, с чужим такие дела не проходят :( А также не проходит обратный процесс - getwindowtext чужого процесса :(<br>И title - не обязательно caption окна или название exeшника без расширения, он может быть каким угодно (каким задавали кодеры).<br><br>Слушайте, а может можно поставить хук или вживить dll'ку в чужой процесс, которая бы получала как бы &quot;свой&quot; title? Если это можно, может быть кто-нибудь подскажет, как?]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171019</guid>
        <pubDate>Mon, 07 Apr 2003 19:55:21 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171019</link>
        <description><![CDATA[__alex: может я че не понял, но имхо винды отображают title процессов так: если процесс имеет окно, то отображается его заголовок; если окон нет (или они невидимые) - то имя .exe-файла (без расширения).<br>посему здесь надо поступить так (подходит для любых виндов):<br>1. получить ProcessID процесса, котором мы интересуемся<br>2. далее надо узнать, есть ли у него окна. причем нас интересуют только видимые окна:<br><br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;br&#62;// вместо FindWindow(&quot;Progman&quot;,NULL); но это не важно ;)&#60;br&#62;HWND hWndDesktop=GetShellWindow();&#60;br&#62;DWORD dwprid, dwthrid;&#60;br&#62;// ищем первое окно&#60;br&#62;HWND hwnd=GetWindow(hWndDesktop, GW_HWNDFIRST);&#60;br&#62;&#60;br&#62;while(true){&#60;br&#62;  if(IsWindowVisible(hwnd) &amp;&amp; hwnd!=hWndDesktop){&#60;br&#62;    // по найденному окну получаем ProcessID процесса, которому&#60;br&#62;    // это окно принадлежит. сравниваем PID c PID нашего процесса.&#60;br&#62;    dwthrid=GetWindowThreadProcessId(hwnd, &amp;dwprid);&#60;br&#62;    if(dwpid==dwProcessID){&#60;br&#62;      // найденное окно принадлежит тому самому процессу.&#60;br&#62;      // просто берем его заголовок - это и будет title процесса.&#60;br&#62;      GetWindowText(hwnd, ...);&#60;br&#62;      break;&#60;br&#62;    }&#60;br&#62;  }&#60;br&#62;  // ищем след. окно&#60;br&#62;  hwnd=GetWindow(hwnd, GW_HWNDNEXT);&#60;br&#62;}&#60;br&#62;</div></ol></div></div></div></div><br><br>3. ну а если окон у процесса нет - то юзаем ToolHelp-функции (которые не работают, к сожалению, на NT4). получаем имя .exe (или не .exe)-файла процесса, обрезаем расширение - title процесса готов!]]></description>
        <author>__alex</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171018</guid>
        <pubDate>Sun, 30 Mar 2003 10:14:51 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171018</link>
        <description><![CDATA[v4ng3r: :) окей]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171017</guid>
        <pubDate>Sun, 30 Mar 2003 06:25:20 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171017</link>
        <description><![CDATA[Song: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>V4ng3R&lt;RnD&gt;, 29.03.03, 22:30:23</span><div class='quote '>Ты не помнишь, бухой что ли был? :D</div></div><br>Не исключено. :)<br>Гляну когда время будет.<br>]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171016</guid>
        <pubDate>Sat, 29 Mar 2003 19:30:23 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171016</link>
        <description><![CDATA[v4ng3r: Посмотри пару постингов назад, ты писал: &quot;Покажи как ты используешь ToolHelp&quot;. Ты, наверно, хотел посмотреть и что-то сказать, или как? Ты не помнишь, бухой что ли был? :D]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171015</guid>
        <pubDate>Sat, 29 Mar 2003 16:17:38 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171015</link>
        <description><![CDATA[Song: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>V4ng3R&lt;RnD&gt;, 29.03.03, 15:36:03</span><div class='quote '>Ау, Song !!!</div></div><br>Что ты от меня хочешь?<br>]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171014</guid>
        <pubDate>Sat, 29 Mar 2003 12:36:03 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171014</link>
        <description><![CDATA[v4ng3r: Ау, Song !!!]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171013</guid>
        <pubDate>Wed, 26 Mar 2003 14:56:16 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171013</link>
        <description><![CDATA[v4ng3r: <strong class='tag-b'>Троеточием обозначены пропуски кода</strong><hr>...<br>uses<br>  ..., TlHelp32;<br>type<br>  Tfmain = class(TForm)<br>    ...<br>    lstProcs: TListBox;<br>    cTimer: TTimer;<br>    ...<br>    procedure cTimerTimer(Sender: TObject);<br>    procedure FormCreate(Sender: TObject);<br>    ...<br>...<br>var<br>  fmain: Tfmain;<br>  hsnapshot,...: thandle;<br>  procentry: tprocessentry32;<br>  pid: array[0..49] of cardinal;<br>  ppath: array[0..49] of ansistring;<br>  i,...: integer;<br><br>implementation<br><br>procedure ListProcs;<br>begin<br>...<br>hsnapshot:=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);<br>procentry.dwSize:=sizeof(PROCESSENTRY32);<br>if Process32First(hsnapshot,procentry) then<br>begin<br>  fmain.lstprocs.Clear;<br>  i:=0;<br>  with fmain.lstProcs.Items do<br><strong class='tag-b'>{Здесь в lstProcs (ListBox) в цикле дожны<br>перечисляться titl'ы процессов}</strong><br>  begin<br>    repeat<br>      with procentry do<br>      begin<br>        pid[i]:=th32ProcessID;<br>        ppath[i]:=szExeFile;<br>      end;<br>      Add(ExtractFileName(ppath[i]));<br>      inc(i);<br>    until not Process32Next(hsnapshot,procentry);<br>  end;<br>end;<br>CloseHandle(hsnapshot);<br>...<br>end;<br>{$R *.dfm}<br>...<br>procedure Tfmain.cTimerTimer(Sender: TObject);<br>begin<br>listprocs;<br>end;<br><br>procedure Tfmain.FormCreate(Sender: TObject);<br>begin<br>listprocs;<br>...<br>end;<br>...<hr><strong class='tag-b'>С помощь ToolHelp'а я перечисляю процессы и получаю их id'ы.<br>И что ты хотел увидеть?</strong> :-/]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171012</guid>
        <pubDate>Tue, 25 Mar 2003 17:36:06 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171012</link>
        <description><![CDATA[Song: Покажи как ты ToolHelp используешь.]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171011</guid>
        <pubDate>Tue, 25 Mar 2003 10:07:06 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171011</link>
        <description><![CDATA[v4ng3r: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>Song, 25.03.03, 12:06:05</span><div class='quote '>...по-моему я сказал как получить title.. ты читаешь постинги?...</div></div><br>Блин, конечно я читаю постинги, но, по-моему, ни один из предложенных способов не помогает! :( ToolHelp не помогает, кодом на асме я не знаю как пользоваться, GetModuleFileName выдаёт имя экзешника или прочего модуля, а не title.<br>Блин, хэлп ми !! :'(]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171010</guid>
        <pubDate>Tue, 25 Mar 2003 09:06:05 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171010</link>
        <description><![CDATA[Song: V4ng3R&lt;RnD&gt;, по-моему я сказал как получить title.. ты читаешь постинги?<br>Забудьте про GetWindowText() или WM_GETTEXT, они возвращают строку с <strong class='tag-b'>окна</strong>. Это прокатит только для окна объекта класса TApplication. В других программах такого окна нет, поэтому и возвращается пустая строка.]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171009</guid>
        <pubDate>Tue, 25 Mar 2003 08:42:22 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171009</link>
        <description><![CDATA[v4ng3r: Блин, не получилось &gt;:( Я не могу получить хэндл модуля. GetModuleHandle возвращает, судя по WinSDK, хэндл только своего процесса.]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171008</guid>
        <pubDate>Tue, 25 Mar 2003 08:06:45 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171008</link>
        <description><![CDATA[v4ng3r: А почему ???<br>Почему, когда передаёшь хэндл своего процесса, то всё получатся, а когда передаёшь хэндл чужого процесса, выдаётся пустая строка?<br>Кстати при перечислении процессов хэндл своего процесса (Application.Handle) сильно отличается от перечисляемого хэндла... О, идея, а может надо передавать хэндл модуля?.. Щас попробую.]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171007</guid>
        <pubDate>Mon, 24 Mar 2003 21:30:31 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171007</link>
        <description><![CDATA[x2er0: Скорее всего это ваще не работает <br>phndl:=OpenProcess(PROCESS_ALL_ACCESS,false,pid[i]);<br>GetWindowText(phndl, proctitle, 256);]]></description>
        <author>x2er0</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171006</guid>
        <pubDate>Mon, 24 Mar 2003 21:05:42 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171006</link>
        <description><![CDATA[v4ng3r: Тогда почему не пашет следущее :( :<br><br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;br&#62;...&#60;br&#62;var&#60;br&#62;  Form1: TForm1;&#60;br&#62;  ProcEntry: tprocessentry32;&#60;br&#62;  hSnapShot,phndl: thandle;&#60;br&#62;  i: integer;&#60;br&#62;  pid: array[0..49] of cardinal;&#60;br&#62;  procid: cardinal;&#60;br&#62;  proctitle: pchar;&#60;br&#62;&#60;br&#62;...&#60;br&#62;&#60;br&#62;procedure TForm1.lstprocDropDown(Sender: TObject); [b]//всё тот же ComboBox[/b]&#60;br&#62;begin&#60;br&#62;hsnapshot:=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);&#60;br&#62;procentry.dwSize:=sizeof(PROCESSENTRY32);&#60;br&#62;if Process32First(hsnapshot,Procentry) then&#60;br&#62;begin&#60;br&#62;  lstproc.Clear;&#60;br&#62;  i:=0;&#60;br&#62;  GetMem(proctitle, 256);&#60;br&#62;  with lstproc.Items do&#60;br&#62;  begin&#60;br&#62;    repeat&#60;br&#62;      pid[i]:=procentry.th32ProcessID;&#60;br&#62;      phndl:=OpenProcess(PROCESS_ALL_ACCESS,false,pid[i]);&#60;br&#62;      GetWindowText(phndl, proctitle, 256);&#60;br&#62;      Add(proctitle);&#60;br&#62;      closehandle(phndl);&#60;br&#62;      inc(i);&#60;br&#62;    until not Process32Next(hsnapshot,Procentry);&#60;br&#62;  end;&#60;br&#62;end;&#60;br&#62;FreeMem(proctitle, 256);&#60;br&#62;CloseHandle(hsnapshot);&#60;br&#62;end;&#60;br&#62;...&#60;br&#62;</div></ol></div></div></div></div><br><br> ??? ??? ??? :( :( :(]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171005</guid>
        <pubDate>Mon, 24 Mar 2003 17:08:53 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171005</link>
        <description><![CDATA[7in: Блин! Да выдаёт <strong class='tag-b'>GetWindowText</strong> title :)<br>Попробуй сам:<br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">procedure TForm1.FormCreate(Sender: TObject);&#60;br&#62;var&#60;br&#62; &nbsp;Name: PChar;&#60;br&#62;begin&#60;br&#62; &nbsp;Application.Title := &#39;Хрен собачий&#39;;&#60;br&#62; &nbsp;ListBox1.Clear;&#60;br&#62; &nbsp;GetMem(Name, 256);&#60;br&#62; &nbsp;GetWindowText(Application.Handle, Name, 256);&#60;br&#62; &nbsp;MessageBox(0, Name, &#39;Угадал?&#39;, mb_Ok + mb_IconInformation);&#60;br&#62; &nbsp;FreeMem(Name, 256);&#60;br&#62; &nbsp;Halt&#60;br&#62;end;</div></ol></div></div></div></div>]]></description>
        <author>7in</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171004</guid>
        <pubDate>Mon, 24 Mar 2003 15:25:37 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171004</link>
        <description><![CDATA[v4ng3r: О-о-о... :'( :)<br>Блин, .alex, ты внимательно читал мессаги наверху? &gt;:(<br>Под titl'ом процесса я подразумеваю то что отображается при нажатии CAD.<br>Запускаю Дельфя, пишу: application.Title:='dats ma pr0c355';<br>Запускаю прогу, жму CAD, вижу строчку: &quot;dats ma pr0c355&quot;.<br>Всё просто :)<br>Так вот, как получить такую строчку ???]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171003</guid>
        <pubDate>Mon, 24 Mar 2003 10:26:10 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171003</link>
        <description><![CDATA[.alex: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>V4ng3R&lt;RnD&gt;, 23.03.03, 22:34:29</span><div class='quote '>Искал, в SDK нет ни одной функции, с помощью которой можно получить title процесса.<br></div></div><br>Что имеешь ввиду под &quot;title процесса&quot;?<br>]]></description>
        <author>.alex</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171002</guid>
        <pubDate>Sun, 23 Mar 2003 22:19:17 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171002</link>
        <description><![CDATA[v4ng3r: 2 <strong class='tag-b'>Jin X</strong>: GetWindowText НЕ ВЫДАЁТ title процесса!! &gt;:(<br>А на асм забейте, я его ещё не изучал и, видимо, нескоро буду :)]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171001</guid>
        <pubDate>Sun, 23 Mar 2003 20:17:49 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171001</link>
        <description><![CDATA[7in: Про r0 (для Windows 95/98/ME) есть пример в <a class='tag-url' href='http://pascal.sources.ru/asm/faq/index.htm' target='_blank'>&gt;FAQ&lt;</a> по асму (см. про резидент).<br>А про <strong class='tag-b'>GetWindowText</strong> ты не прав, <strong class='tag-b'>Song</strong>. Он выдаёт название для любого процесса!]]></description>
        <author>7in</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171000</guid>
        <pubDate>Sun, 23 Mar 2003 19:34:29 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=171000</link>
        <description><![CDATA[v4ng3r: Искал, в SDK нет ни одной функции, с помощью которой можно получить title процесса.<br>Там указывается только код на асме, а как его юзать, я не понял :(]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170999</guid>
        <pubDate>Sun, 23 Mar 2003 18:29:32 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170999</link>
        <description><![CDATA[Song: Открываешь MSDN или Win SDK и ищешь CreateToolHelp functions]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170998</guid>
        <pubDate>Sun, 23 Mar 2003 18:18:49 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170998</link>
        <description><![CDATA[v4ng3r: У меня win98<br><br><br><div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>Song, 23.03.03, 20:09:20</span><div class='quote '>Если W9x, тогда юзай ToolHelp ф-ии, там есть параметр exe файл</div></div><br>Поподробнее, что за функции<br><br><div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>Song, 23.03.03, 20:09:20</span><div class='quote '>Что касается асма, надо сначала Ring0 получать, чтобы иметь доступ к таким областям, иначе AV.</div></div><br>Как юзать AV?]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170997</guid>
        <pubDate>Sun, 23 Mar 2003 17:09:20 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170997</link>
        <description><![CDATA[Song: Вообщем понятно чего тебе надо. Здесь зависит от того какая ОС.<br>Если W9x, тогда юзай ToolHelp ф-ии, там есть параметр exe файл<br>Если NT, тогда или EnumProcesses(), или сразу NTQuerySystemInformation() (EnumProcesses использует последнюю)<br>Что касается асма, надо сначала Ring0 получать, чтобы иметь доступ к таким областям, иначе AV.]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170996</guid>
        <pubDate>Sun, 23 Mar 2003 16:39:07 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170996</link>
        <description><![CDATA[v4ng3r: Подождите! Во-первых, GetWindowText() позволяет получить caption любого окна по его хэндлу. Во-вторых, для тех, кто в танке: мне нужно получить title ПРОЦЕССА, а НЕ окна. В-третьих в WinSDK я нашёл следущее:<br>===============================================================<br>Get Application Title    <br><br>Copies the application title to the specified buffer.<br><br>mov  ah, 16h            ; Windows multiplex function<br>mov  al, 8Eh             ; VM Title<br>mov  di, seg AppTitle  ; see below<br>mov  es, di<br>mov  di, offset AppTitle<br>mov  cx, Size          ; see below<br>mov  dx, 2              ; Get Application Title<br>int  2Fh<br>cmp  ax, 1<br>je   success<br> <br>Parameters<br><br>AppTitle<br>Address of a buffer that receives the application title. This parameter must not be zero.<br><br>Size<br>Size, in bytes, of the buffer pointed to by AppTitle.<br><br>Return Value<br>Returns 1 in the AX register if successful or zero otherwise.<br><br>Remarks<br><br>Get Application Title copies as much of the title as possible, but never more than the specified number of bytes. The function always appends a terminating null character to the title in the buffer.<br>=================================================================<br>Я понял, что это и есть искомый способ, но<br>КАК этим пользоваться ???]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170995</guid>
        <pubDate>Sun, 23 Mar 2003 15:05:11 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170995</link>
        <description><![CDATA[x2er0: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>V4ng3R&lt;RnD&gt;, 23.03.03, 03:45:23</span><div class='quote '><br>А где ты нарыл такую инфу?</div></div><br>MSDN<br>]]></description>
        <author>x2er0</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170994</guid>
        <pubDate>Sun, 23 Mar 2003 10:55:57 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170994</link>
        <description><![CDATA[Vasya2000: Странно, но тем не менее у меня применительно к любым окнам в системе возвращается tittle...]]></description>
        <author>Vasya2000</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170993</guid>
        <pubDate>Sun, 23 Mar 2003 10:42:14 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170993</link>
        <description><![CDATA[Song: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>Vasya2000, 23.03.03, 13:39:18</span><div class='quote '>GetWindowText </div></div><br>Совершенно неправильно. GetWindowText() может использоваться только применительно к окнам <strong class='tag-b'>своего</strong> процесса.<br>]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170992</guid>
        <pubDate>Sun, 23 Mar 2003 10:39:18 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170992</link>
        <description><![CDATA[Vasya2000: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>V4ng3R&lt;RnD&gt;, 22.03.03, 15:08:08</span><div class='quote '>Помогите, пожалуйста:<br>1. Как узнать title процесса (который отображается в списке по ctrl+alt+del)</div></div><br><br>GetWindowText <br>]]></description>
        <author>Vasya2000</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170991</guid>
        <pubDate>Sun, 23 Mar 2003 07:08:48 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170991</link>
        <description><![CDATA[Song: В WinSDK]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170990</guid>
        <pubDate>Sun, 23 Mar 2003 00:45:23 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170990</link>
        <description><![CDATA[v4ng3r: Функция не пашет под win9x, чтоли? Если да, то не подходит... Но всё равно спасибо!<br>А где ты нарыл такую инфу?]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170989</guid>
        <pubDate>Sat, 22 Mar 2003 23:22:52 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170989</link>
        <description><![CDATA[x2er0: Не знаю как к этому отнесутся, но все же лови:<br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;br&#62;GetSecurityInfo&#60;br&#62;The GetSecurityInfo function retrieves a copy of the security descriptor for an object specified by a handle. &#60;br&#62;&#60;br&#62;DWORD GetSecurityInfo(&#60;br&#62; &nbsp;HANDLE handle, &nbsp; &nbsp; // handle to the object&#60;br&#62; &nbsp;SE_OBJECT_TYPE ObjectType,&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // type of object&#60;br&#62; &nbsp;SECURITY_INFORMATION SecurityInfo, &#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // type of security information to retrieve&#60;br&#62; &nbsp;PSID *ppsidOwner, &nbsp;// receives a pointer to the owner SID&#60;br&#62; &nbsp;PSID *ppsidGroup, &nbsp;// receives a pointer to the primary group SID&#60;br&#62; &nbsp;PACL *ppDacl, &nbsp; &nbsp; &nbsp;// receives a pointer to the DACL&#60;br&#62; &nbsp;PACL *ppSacl, &nbsp; &nbsp; &nbsp;// receives a pointer to the SACL&#60;br&#62; &nbsp;PSECURITY_DESCRIPTOR *ppSecurityDescriptor&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // receives a pointer to the security descriptor&#60;br&#62;);&#60;br&#62; &#60;br&#62;Parameters&#60;br&#62;handle &#60;br&#62;A handle to the object from which to retrieve security information. &#60;br&#62;ObjectType &#60;br&#62;Specifies a value from the SE_OBJECT_TYPE enumeration that indicates the type of object named by the pObjectName parameter. &#60;br&#62;SecurityInfo &#60;br&#62;A set of SECURITY_INFORMATION bit flags that indicate the type of security information to retrieve. This parameter can be a combination of the following values. Value Meaning &#60;br&#62;OWNER_SECURITY_INFORMATION If this flag is set, the ppsidOwner parameter receives the security identifier (SID) of the object&#39;s owner. &#60;br&#62;GROUP_SECURITY_INFORMATION If this flag is set, the ppsidGroup parameter receives the SID of the object&#39;s primary group. &nbsp;&#60;br&#62;DACL_SECURITY_INFORMATION If this flag is set, the ppDacl parameter receives the object&#39;s discretionary access-control list (DACL). &#60;br&#62;SACL_SECURITY_INFORMATION If this flag is set, the ppSacl parameter receives the object&#39;s system access-control list (SACL).. &#60;br&#62;&#60;br&#62;&#60;br&#62;ppsidOwner &#60;br&#62;Pointer to a variable that receives a pointer to the owner SID in the security descriptor returned in ppSecurityDescriptor. The returned pointer is valid only if you set the OWNER_SECURITY_INFORMATION flag. This parameter can be NULL if you do not need the owner SID. &#60;br&#62;ppsidGroup &#60;br&#62;Pointer to a variable that receives a pointer to the primary group SID in the returned security descriptor. The returned pointer is valid only if you set the GROUP_SECURITY_INFORMATION flag. This parameter can be NULL if you do not need the group SID. &#60;br&#62;ppDacl &#60;br&#62;Pointer to a variable that receives a pointer to the DACL in the returned security descriptor. The returned pointer is valid only if you set the DACL_SECURITY_INFORMATION flag. This parameter can be NULL if you do not need the DACL. &#60;br&#62;ppSacl &#60;br&#62;Pointer to a variable that receives a pointer to the SACL in the returned security descriptor. The returned pointer is valid only if you set the SACL_SECURITY_INFORMATION flag. This parameter can be NULL if you do not need the SACL. &#60;br&#62;ppSecurityDescriptor &#60;br&#62;Pointer to a variable that receives a pointer to the security descriptor of the object. You must call the LocalFree function to free the returned buffer. &#60;br&#62;Return Values&#60;br&#62;If the function succeeds, the return value is ERROR_SUCCESS.&#60;br&#62;&#60;br&#62;If the function fails, the return value is a nonzero error code defined in WINERROR.H. &#60;br&#62;&#60;br&#62;Remarks&#60;br&#62;If the ppsidOwner, ppsidGroup, ppDacl, ppSacl parameters are non-NULL, and the SecurityInfo parameter specifies that they be retrieved from the object, those parameters will point to the corresponding parameters in the security descriptor returned in ppSecurityDescriptor.&#60;br&#62;&#60;br&#62;To read the owner, group, or DACL from the object&#39;s security descriptor, the calling process must have been granted READ_CONTROL access when the handle was opened. To get READ_CONTROL access, the caller must be the owner of the object or the object&#39;s DACL must grant the access.&#60;br&#62;&#60;br&#62;To read the SACL from the security descriptor, the calling process must have been granted ACCESS_SYSTEM_SECURITY access when the handle was opened. The proper way to get this access is to enable the SE_SECURITY_NAME privilege in the caller&#39;s current token, open the handle for ACCESS_SYSTEM_SECURITY access, and then disable the privilege.&#60;br&#62;&#60;br&#62;QuickInfo&#60;br&#62; &nbsp;Windows NT: Requires version 4.0 or later.&#60;br&#62; &nbsp;Windows: Unsupported.&#60;br&#62; &nbsp;Windows CE: Unsupported.&#60;br&#62; &nbsp;Header: Declared in aclapi.h.&#60;br&#62; &nbsp;Import Library: Use advapi32.lib.&#60;br&#62;&#60;br&#62;See Also&#60;br&#62;Windows NT 4.0 Access Control Overview, Windows NT 4.0 Access-Control Functions, ACL, GetNamedSecurityInfo, LocalFree, SE_OBJECT_TYPE, SECURITY_DESCRIPTOR, SECURITY_INFORMATION, SetNamedSecurityInfo, SetSecurityInfo, SID &#60;br&#62;&#60;br&#62;</div></ol></div></div></div></div>]]></description>
        <author>x2er0</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170988</guid>
        <pubDate>Sat, 22 Mar 2003 23:17:31 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170988</link>
        <description><![CDATA[v4ng3r: Попробую wm_gettext, у меня ещё вся ночь впереди и пара бутылочек пивца :)<br>И ещё вопрос: а что это за GetSecurityInfo ?]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170987</guid>
        <pubDate>Sat, 22 Mar 2003 20:28:21 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170987</link>
        <description><![CDATA[Song: Ну тогда WM_GETTEXT правда применительно к какому хэндлу тут прямо и не скажешь.. :(]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170986</guid>
        <pubDate>Sat, 22 Mar 2003 14:45:20 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170986</link>
        <description><![CDATA[v4ng3r: GetModuleFileName - получения имени exe, а мне нужно получить title проги, который отображается при нажатии на CAD. Такой тайтл задаётся, например, Application.title<br>GetSecurityInfo - чё ето? Никогда не слышал. Расскажи поподробнее.]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170985</guid>
        <pubDate>Sat, 22 Mar 2003 12:16:14 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170985</link>
        <description><![CDATA[Song: 1. GetModuleFileName()<br>2. GetSecurityInfo()]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170984</guid>
        <pubDate>Sat, 22 Mar 2003 12:08:08 +0000</pubDate>
        <title>Работа с процессами</title>
        <link>https://forum.sources.ru/index.php?showtopic=23307&amp;view=findpost&amp;p=170984</link>
        <description><![CDATA[v4ng3r: Помогите, пожалуйста:<br>Как узнать title приложения (который отображается в CAD'е)]]></description>
        <author>v4ng3r</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      </channel>
      </rss>
	