<?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[Welcher user eingeloggt]]></title><description><![CDATA[<p>ich würde gerne auslesen welcher user gerade eingeloggt ist, damit ich in seinem home verzeichnis etwas speichern kann.</p>
<p>wie kann ich das herausfinden?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/136947/welcher-user-eingeloggt</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 18:15:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/136947.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Feb 2006 12:57:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Welcher user eingeloggt on Tue, 14 Feb 2006 12:57:35 GMT]]></title><description><![CDATA[<p>ich würde gerne auslesen welcher user gerade eingeloggt ist, damit ich in seinem home verzeichnis etwas speichern kann.</p>
<p>wie kann ich das herausfinden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/993890</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/993890</guid><dc:creator><![CDATA[asr]]></dc:creator><pubDate>Tue, 14 Feb 2006 12:57:35 GMT</pubDate></item><item><title><![CDATA[Reply to Welcher user eingeloggt on Tue, 14 Feb 2006 13:01:01 GMT]]></title><description><![CDATA[<p>In Standard C++ gibt es keine User.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/993893</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/993893</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Tue, 14 Feb 2006 13:01:01 GMT</pubDate></item><item><title><![CDATA[Reply to Welcher user eingeloggt on Tue, 14 Feb 2006 13:15:52 GMT]]></title><description><![CDATA[<p>und würde es in einer mfc-anwendung funktionieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/993905</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/993905</guid><dc:creator><![CDATA[asr]]></dc:creator><pubDate>Tue, 14 Feb 2006 13:15:52 GMT</pubDate></item><item><title><![CDATA[Reply to Welcher user eingeloggt on Tue, 14 Feb 2006 13:30:02 GMT]]></title><description><![CDATA[<p>ich muss wohl die frage noch etwas genauer stellen.</p>
<p>ich möchte etwas im &quot;dokumente und einstellungen\\Username&quot;-ordner ablegen, der aber<br />
auf unterschiedlichen systemen an unterschiedlichen stellen liegen kann.</p>
<p>und brauch ich den pfad zu diesem ordner.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/993922</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/993922</guid><dc:creator><![CDATA[asr]]></dc:creator><pubDate>Tue, 14 Feb 2006 13:30:02 GMT</pubDate></item><item><title><![CDATA[Reply to Welcher user eingeloggt on Tue, 14 Feb 2006 13:33:33 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=10455" rel="nofollow">evilissimo</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/993928</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/993928</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 14 Feb 2006 13:33:33 GMT</pubDate></item><item><title><![CDATA[Reply to Welcher user eingeloggt on Tue, 14 Feb 2006 13:35:33 GMT]]></title><description><![CDATA[<p>Vielleicht hilft dir <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-136469-and-start-is-0.html" rel="nofollow">dieser Thread</a> etwas weiter (dort ging's zwar um den Desktop-Ordner, aber andere Systemverzeichnisse kannst du auf dem selben Weg erreichen).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/993932</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/993932</guid><dc:creator><![CDATA[CStoll (off)]]></dc:creator><pubDate>Tue, 14 Feb 2006 13:35:33 GMT</pubDate></item><item><title><![CDATA[Reply to Welcher user eingeloggt on Tue, 14 Feb 2006 14:36:14 GMT]]></title><description><![CDATA[<p>Google Suchzeit: 1 Minute:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;stdio.h&gt;

TCHAR* envVarStrings[] =
{
  &quot;OS         = %OS%&quot;,
  &quot;PATH       = %PATH%&quot;,
  &quot;HOMEPATH   = %HOMEPATH%&quot;,
  &quot;TEMP       = %TEMP%&quot;
};
#define  ENV_VAR_STRING_COUNT  (sizeof(envVarStrings)/sizeof(TCHAR*))
#define INFO_BUFFER_SIZE 32767
void printError( TCHAR* msg );

void main( )
{
  DWORD i;
  TCHAR  infoBuf[INFO_BUFFER_SIZE];
  DWORD  bufCharCount = INFO_BUFFER_SIZE;

  // Get and display the name of the computer.
  bufCharCount = INFO_BUFFER_SIZE;
  if( !GetComputerName( infoBuf, &amp;bufCharCount ) )
    printError( &quot;GetComputerName&quot; );
  printf( &quot;\nComputer name:      %s&quot;, infoBuf );

  // Get and display the user name.
  bufCharCount = INFO_BUFFER_SIZE;
  if( !GetUserName( infoBuf, &amp;bufCharCount ) )
    printError( &quot;GetUserName&quot; );
  printf( &quot;\nUser name:          %s&quot;, infoBuf );

  // Get and display the system directory.
  if( !GetSystemDirectory( infoBuf, INFO_BUFFER_SIZE ) )
    printError( &quot;GetSystemDirectory&quot; );
  printf( &quot;\nSystem Directory:   %s&quot;, infoBuf );

  // Get and display the Windows directory.
  if( !GetWindowsDirectory( infoBuf, INFO_BUFFER_SIZE ) )
    printError( &quot;GetWindowsDirectory&quot; );
  printf( &quot;\nWindows Directory:  %s&quot;, infoBuf );

  // Expand and display a few environment variables.
  printf( &quot;\n\nSmall selection of Environment Variables:&quot; );
  for( i = 0; i &lt; ENV_VAR_STRING_COUNT; ++i )
  {
    bufCharCount = ExpandEnvironmentStrings( envVarStrings[i], infoBuf, INFO_BUFFER_SIZE );
    if( bufCharCount &gt; INFO_BUFFER_SIZE )
      printf( &quot;\n   (Warning: buffer too small to expand: \&quot;%s\&quot;)&quot;, envVarStrings[i] );
    else if( !bufCharCount )
      printError( &quot;ExpandEnvironmentStrings&quot; );
    else
      printf( &quot;\n   %s&quot;, infoBuf );
  }
}

void printError( TCHAR* msg )
{
  DWORD eNum;
  TCHAR sysMsg[256];
  TCHAR* p;

  eNum = GetLastError( );
  FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
         NULL, eNum,
         MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
         sysMsg, 256, NULL );

  // Trim the end of the line and terminate it with a null
  p = sysMsg;
  while( ( *p &gt; 31 ) || ( *p == 9 ) )
    ++p;
  do { *p-- = 0; } while( ( p &gt;= sysMsg ) &amp;&amp;
                          ( ( *p == '.' ) || ( *p &lt; 33 ) ) );

  // Display the message
  printf( &quot;\n  WARNING: %s failed with error %d (%s)&quot;, msg, eNum, sysMsg );
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/993998</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/993998</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Tue, 14 Feb 2006 14:36:14 GMT</pubDate></item></channel></rss>