<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Prozesse auslesen]]></title><description><![CDATA[<p>Ich bräuchte einen kleinen Anstoß (ein paar Funktionen, ein Link zur MSDN, ein Tutorial, etc.):</p>
<p>Ich möchte alle laufenden Prozesse auslesen.<br />
und/oder bei starts und beendungen von prozessen benachrichtigt werden.</p>
<p>Anschließend möchte ich noch die Kernelzeit/Userzeit auslesen.</p>
<p>PS.: ich möchte dazu aber kein SDK herunterladen müssen.</p>
<p>mfg (c)h</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/145612/prozesse-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 03:30:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/145612.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Apr 2006 15:24:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Prozesse auslesen on Sat, 29 Apr 2006 15:24:00 GMT]]></title><description><![CDATA[<p>Ich bräuchte einen kleinen Anstoß (ein paar Funktionen, ein Link zur MSDN, ein Tutorial, etc.):</p>
<p>Ich möchte alle laufenden Prozesse auslesen.<br />
und/oder bei starts und beendungen von prozessen benachrichtigt werden.</p>
<p>Anschließend möchte ich noch die Kernelzeit/Userzeit auslesen.</p>
<p>PS.: ich möchte dazu aber kein SDK herunterladen müssen.</p>
<p>mfg (c)h</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1047834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1047834</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Sat, 29 Apr 2006 15:24:00 GMT</pubDate></item><item><title><![CDATA[Reply to Prozesse auslesen on Sat, 29 Apr 2006 15:35:51 GMT]]></title><description><![CDATA[<p>Mit CreateToolhelp32Snapshot() kannst du einen Schnappschuss der momentan laufenden Prozessen machen. Die MSDN hat dazu sogar ein Beispiel: <a href="http://msdn.microsoft.com/library/en-us/perfmon/base/taking_a_snapshot_and_viewing_processes.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/perfmon/base/taking_a_snapshot_and_viewing_processes.asp</a></p>
<p>Um rauszufinden, wann neue Prozesse starten, könntest du einen systemweiten Apihook für CreateProcess() installieren. Das könnte sich allerdings als etwas trickreich herausstellen, vielleicht gibts noch einen besseren Weg.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1047844</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1047844</guid><dc:creator><![CDATA[WebNubbi]]></dc:creator><pubDate>Sat, 29 Apr 2006 15:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to Prozesse auslesen on Sat, 29 Apr 2006 16:04:40 GMT]]></title><description><![CDATA[<p>chille07 schrieb:</p>
<blockquote>
<p>Ich möchte alle laufenden Prozesse auslesen.</p>
</blockquote>
<p>Siehe anderes Posting...</p>
<p>chille07 schrieb:</p>
<blockquote>
<p>und/oder bei starts und beendungen von prozessen benachrichtigt werden.</p>
</blockquote>
<p>Gibt es nicht...</p>
<p>chille07 schrieb:</p>
<blockquote>
<p>Anschließend möchte ich noch die Kernelzeit/Userzeit auslesen.</p>
</blockquote>
<p>GetProcessTimes</p>
<p>chille07 schrieb:</p>
<blockquote>
<p>PS.: ich möchte dazu aber kein SDK herunterladen müssen.</p>
</blockquote>
<p>Wenn Du mit Windows Programmieren willst, brauchst Du das Windows.SDK (oder PSDK)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1047870</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1047870</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 29 Apr 2006 16:04:40 GMT</pubDate></item><item><title><![CDATA[Reply to Prozesse auslesen on Sat, 29 Apr 2006 16:14:37 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>chille07 schrieb:</p>
<blockquote>
<p>PS.: ich möchte dazu aber kein SDK herunterladen müssen.</p>
</blockquote>
<p>Wenn Du mit Windows Programmieren willst, brauchst Du das Windows.SDK (oder PSDK)</p>
</blockquote>
<p>Wenn ich mit Windows programmieren will, verwende ich MVS6.0 und anscheinend ist da die sogenannte &quot;PSDK&quot; ohnehin dabei, weil ich damit mit Windows programmieren kann.?</p>
<p>Ich dachte an was SDKs die man sich gesondert herunterladen muss, etc. weil ich hab wohl ein Tutorial gefunden, aber da benötigt man ein solches. &quot;CTL_CODE&quot; ist bei mir nicht definiert...</p>
<p>Ich werde mich mal mit dem MSDN-Artiel beschäftigen. Ich sag mal danke!</p>
<p>mfg (c)h</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1047881</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1047881</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Sat, 29 Apr 2006 16:14:37 GMT</pubDate></item><item><title><![CDATA[Reply to Prozesse auslesen on Sat, 29 Apr 2006 19:37:34 GMT]]></title><description><![CDATA[<p>chille07 schrieb:</p>
<blockquote>
<p>Wenn ich mit Windows programmieren will, verwende ich MVS6.0 und anscheinend ist da die sogenannte &quot;PSDK&quot; ohnehin dabei, weil ich damit mit Windows programmieren kann.?</p>
</blockquote>
<p>Genau. Diese Version ist aber schon 8 Jahre alt und enthält somit kaum Funktionen, die nach NT4 rausgekommen sind...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1047983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1047983</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 29 Apr 2006 19:37:34 GMT</pubDate></item><item><title><![CDATA[Reply to Prozesse auslesen on Sun, 30 Apr 2006 06:20:56 GMT]]></title><description><![CDATA[<p>solche - noch nicht vorhandene - Funktionen wären zum Beispiel?</p>
<p>mfg (c)h</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048064</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Sun, 30 Apr 2006 06:20:56 GMT</pubDate></item><item><title><![CDATA[Reply to Prozesse auslesen on Sun, 30 Apr 2006 08:26:33 GMT]]></title><description><![CDATA[<p>z.b OpenThread();</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;tlhelp32.h&gt;
#include &lt;iostream&gt;
using namespace std;

BOOL ProcessList() 
{
    HANDLE         hProcessSnap = NULL; 
    BOOL           bRet      = FALSE; 
    PROCESSENTRY32 pe32      = {0}; 

    hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); 

    if (hProcessSnap == INVALID_HANDLE_VALUE) 
        return (FALSE); 

    //  Fill in the size of the structure before using it. 
    pe32.dwSize = sizeof(PROCESSENTRY32); 

    //  Walk the snapshot of the processes, and for each process, 
    //  display information. 

    if (Process32First(hProcessSnap, &amp;pe32)) 
    { 
        do 
        { 
			cout &lt;&lt; &quot;PID\t&quot; &lt;&lt; pe32.th32ProcessID &lt;&lt; '\t' &lt;&lt; pe32.szExeFile &lt;&lt; '\n';
        } 
        while (Process32Next(hProcessSnap, &amp;pe32)); 
        bRet = TRUE; 
    } 
    else 
        bRet = FALSE;    // could not walk the list of processes 

    // Do not forget to clean up the snapshot object. 

    CloseHandle (hProcessSnap); 
    return (bRet); 
} 

int main()
{
ProcessList();
return 0;
}
</code></pre>
<p>klar kann man sich ne funktion bauen die überprüft ob ein prozess beendet / gestartet wurde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048099</guid><dc:creator><![CDATA[r0]]></dc:creator><pubDate>Sun, 30 Apr 2006 08:26:33 GMT</pubDate></item><item><title><![CDATA[Reply to Prozesse auslesen on Sun, 30 Apr 2006 08:33:15 GMT]]></title><description><![CDATA[<p><a href="http://www.codeproject.com/threads/procmon.asp" rel="nofollow">http://www.codeproject.com/threads/procmon.asp</a></p>
<p>funktioniert gut - zeit dafür nen ofstream in 'ne textdatei - ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048106</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048106</guid><dc:creator><![CDATA[r0]]></dc:creator><pubDate>Sun, 30 Apr 2006 08:33:15 GMT</pubDate></item><item><title><![CDATA[Reply to Prozesse auslesen on Sun, 30 Apr 2006 10:09:06 GMT]]></title><description><![CDATA[<p>r0 schrieb:</p>
<blockquote>
<p><a href="http://www.codeproject.com/threads/procmon.asp" rel="nofollow">http://www.codeproject.com/threads/procmon.asp</a></p>
<p>funktioniert gut - zeit dafür nen ofstream in 'ne textdatei - ...</p>
</blockquote>
<p>ja, genau das hat bei mir nicht funktioniert...</p>
<p>aber jetzt gehts ( <a href="http://msdn.microsoft.com/library/en-us/perfmon/base/taking_a_snapshot_and_viewing_processes.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/perfmon/base/taking_a_snapshot_and_viewing_processes.asp</a> war sehr hilfreich )</p>
<p>mfg (c)h</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048193</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048193</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Sun, 30 Apr 2006 10:09:06 GMT</pubDate></item><item><title><![CDATA[Reply to Prozesse auslesen on Sun, 30 Apr 2006 11:01:52 GMT]]></title><description><![CDATA[<p>chille07 schrieb:</p>
<blockquote>
<p>solche - noch nicht vorhandene - Funktionen wären zum Beispiel?</p>
</blockquote>
<p>Wenn Du sie verwenden willst, wird es Dir auffallen...<br />
Nur mal ein kleiner Auszug aus der Prozess/Threads Ketegorie: z.B. OpenThread, GetGuiResources, GetProcessIoCounters, GetThreadIOPendingFlag, SetThreadStackGuarantee, Fls*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048247</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048247</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 30 Apr 2006 11:01:52 GMT</pubDate></item></channel></rss>