<?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[Get UserName (exe wird als &amp;quot;system&amp;quot; ausgeführt)]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>Wie kann ich den UserName des aktuellen Benutzers ermitteln, wenn die EXE als user &quot;system&quot; ausgeführt wird?</p>
<p>Danke für eure Hinweise <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>
<p>Gruss</p>
<p>Andi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/196195/get-username-exe-wird-als-quot-system-quot-ausgeführt</link><generator>RSS for Node</generator><lastBuildDate>Mon, 29 Jun 2026 19:49:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196195.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Oct 2007 14:28:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Get UserName (exe wird als &amp;quot;system&amp;quot; ausgeführt) on Fri, 26 Oct 2007 14:28:50 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>Wie kann ich den UserName des aktuellen Benutzers ermitteln, wenn die EXE als user &quot;system&quot; ausgeführt wird?</p>
<p>Danke für eure Hinweise <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>
<p>Gruss</p>
<p>Andi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392580</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392580</guid><dc:creator><![CDATA[edelweiss0]]></dc:creator><pubDate>Fri, 26 Oct 2007 14:28:50 GMT</pubDate></item><item><title><![CDATA[Reply to Get UserName (exe wird als &amp;quot;system&amp;quot; ausgeführt) on Fri, 26 Oct 2007 15:08:46 GMT]]></title><description><![CDATA[<p>Wie definierst du denn &quot;aktueller Benutzer&quot;?<br />
Es könnten etliche Benutzer gleichzeitig auf einem System arbeiten? Speziell wenn man Remotedesktop mit in Betracht zieht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392611</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Fri, 26 Oct 2007 15:08:46 GMT</pubDate></item><item><title><![CDATA[Reply to Get UserName (exe wird als &amp;quot;system&amp;quot; ausgeführt) on Fri, 26 Oct 2007 15:15:53 GMT]]></title><description><![CDATA[<p>Vielleicht so?</p>
<pre><code class="language-cpp">DWORD bufsize;
TCHAR tcharsz_username_255stellen[255 + 1];

bufsize = 255 + 1;
if ( GetUserName( tcharsz_username_255stellen, &amp;bufsize ) != 0 )
{
  tcharsz_username_255stellen[255] = 0;                     //Vorsorgliche Nullterminierung.
  printf( TEXT( &quot;Name: %s&quot; ), tcharsz_username_255stellen );
}
else
{
  err = GetLastError();                                     //Evtl. Buffergröße zu klein?
}
</code></pre>
<p>Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392616</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392616</guid><dc:creator><![CDATA[Mmacher]]></dc:creator><pubDate>Fri, 26 Oct 2007 15:15:53 GMT</pubDate></item><item><title><![CDATA[Reply to Get UserName (exe wird als &amp;quot;system&amp;quot; ausgeführt) on Sat, 27 Oct 2007 11:08:32 GMT]]></title><description><![CDATA[<p>edelweiss0 schrieb:</p>
<blockquote>
<p>Wie kann ich den UserName des aktuellen Benutzers ermitteln, wenn die EXE als user &quot;system&quot; ausgeführt wird?</p>
</blockquote>
<p>GetUsername. Und rat mal, was dir diese Funktion zurückgeben wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392937</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392937</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Sat, 27 Oct 2007 11:08:32 GMT</pubDate></item></channel></rss>