<?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[WinAPI Anfänger Fehler]]></title><description><![CDATA[<p>Hi,<br />
Ich musste heute mal wieder etwas für Windows machen(ansonsten als für Linux).<br />
Habe von der WinAPI nicht so viel Ahnunh.<br />
Es geht hierbei um Speicher Manipulation:</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;
#include&lt;iostream&gt;
#include&lt;stdio.h&gt;
using namespace std;
int main(int argc, char *argv[])
{
    if(argc == 1) {
     return 1;
    }
    PROCESS_INFORMATION  pi;
	if(CreateProcess(0,(LPTSTR)argv[1],0,0,false,0,0,0,0,&amp;pi))
	{
		cout &lt;&lt; &quot;Program not found!&quot; &lt;&lt; endl;
		return 1;
	}
	HANDLE hGame = OpenProcess(PROCESS_ALL_ACCESS,false,pi.dwProcessId);
	int value;
	while(1)
	{
		//blablabla
	}
	CloseHandle(&amp;pi);
	return 0;
}
</code></pre>
<p>Jedoch stürtzt das Programm bei CreateProcess ab.<br />
Nur ich weiß nicht warum, fehlermeldung gibts keine.</p>
<p>MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/215152/winapi-anfänger-fehler</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 20:59:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/215152.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Jun 2008 20:56:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WinAPI Anfänger Fehler on Fri, 06 Jun 2008 20:56:16 GMT]]></title><description><![CDATA[<p>Hi,<br />
Ich musste heute mal wieder etwas für Windows machen(ansonsten als für Linux).<br />
Habe von der WinAPI nicht so viel Ahnunh.<br />
Es geht hierbei um Speicher Manipulation:</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;
#include&lt;iostream&gt;
#include&lt;stdio.h&gt;
using namespace std;
int main(int argc, char *argv[])
{
    if(argc == 1) {
     return 1;
    }
    PROCESS_INFORMATION  pi;
	if(CreateProcess(0,(LPTSTR)argv[1],0,0,false,0,0,0,0,&amp;pi))
	{
		cout &lt;&lt; &quot;Program not found!&quot; &lt;&lt; endl;
		return 1;
	}
	HANDLE hGame = OpenProcess(PROCESS_ALL_ACCESS,false,pi.dwProcessId);
	int value;
	while(1)
	{
		//blablabla
	}
	CloseHandle(&amp;pi);
	return 0;
}
</code></pre>
<p>Jedoch stürtzt das Programm bei CreateProcess ab.<br />
Nur ich weiß nicht warum, fehlermeldung gibts keine.</p>
<p>MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1524391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1524391</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Fri, 06 Jun 2008 20:56:16 GMT</pubDate></item><item><title><![CDATA[Reply to WinAPI Anfänger Fehler on Fri, 06 Jun 2008 21:09:10 GMT]]></title><description><![CDATA[<p>Der cast zu LPTSTR wird im unicode modus nicht funktionieren und außerdem muss die process_info struct initialisiert werden(cbSize).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1524400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1524400</guid><dc:creator><![CDATA[efwfef]]></dc:creator><pubDate>Fri, 06 Jun 2008 21:09:10 GMT</pubDate></item><item><title><![CDATA[Reply to WinAPI Anfänger Fehler on Fri, 06 Jun 2008 21:12:09 GMT]]></title><description><![CDATA[<p>Und ein Zeiger auf eine Struktur vom Typ STARTUPINFO fehlt auch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1524404</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1524404</guid><dc:creator><![CDATA[Andromeda]]></dc:creator><pubDate>Fri, 06 Jun 2008 21:12:09 GMT</pubDate></item><item><title><![CDATA[Reply to WinAPI Anfänger Fehler on Fri, 06 Jun 2008 21:50:36 GMT]]></title><description><![CDATA[<p>Danke für eure Antworten.<br />
Funktioniert nun.</p>
<p>Weiß von euch jemand ob es eine Funktion gibt mit der man auslesen kann welche Speicherbereich von dem Programm in benutzung sind?</p>
<p>MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1524418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1524418</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Fri, 06 Jun 2008 21:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to WinAPI Anfänger Fehler on Fri, 06 Jun 2008 22:10:08 GMT]]></title><description><![CDATA[<p>VirtualQuery, NtQuerySystemInformation, usw.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1524424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1524424</guid><dc:creator><![CDATA[fricky]]></dc:creator><pubDate>Fri, 06 Jun 2008 22:10:08 GMT</pubDate></item><item><title><![CDATA[Reply to WinAPI Anfänger Fehler on Fri, 06 Jun 2008 22:24:26 GMT]]></title><description><![CDATA[<p>Codeproject, Forumsuche, ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1524432</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1524432</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Fri, 06 Jun 2008 22:24:26 GMT</pubDate></item><item><title><![CDATA[Reply to WinAPI Anfänger Fehler on Sun, 08 Jun 2008 15:49:54 GMT]]></title><description><![CDATA[<p>Hi,<br />
Also VirtualQueryEx scheint das richtige für mich zu sein.<br />
Die Funktion schreibt ja daten in den MEMORY_BASIC_INFORMATION struct.<br />
Nur wie gehe ich mit denen Daten um? Bzw. ich verstehe diese ganzen Dateitypen nicht wie z.B. PVOID gibt es unter Linux nicht.</p>
<p>MFG ReduX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1525232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1525232</guid><dc:creator><![CDATA[ReduX]]></dc:creator><pubDate>Sun, 08 Jun 2008 15:49:54 GMT</pubDate></item><item><title><![CDATA[Reply to WinAPI Anfänger Fehler on Mon, 09 Jun 2008 20:12:18 GMT]]></title><description><![CDATA[<p>Wie Du damit umgehst, steht in der MSDN. PVOID ist das, wonach es sich anhört: Ein &quot;Pointer to void&quot;, also nicht mehr als: void*.</p>
<p>Das bekommste (entsprechende IDE-Funktionalität vorrausgesetzt) auch heraus, mit nem Rechtsklick auf das Schlüsselwort und dann auch &quot;Gehe zu Definition...&quot; <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526045</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Mon, 09 Jun 2008 20:12:18 GMT</pubDate></item></channel></rss>