<?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[Parameter des Internet Explorer abfragen]]></title><description><![CDATA[<p>Guten Morgen,</p>
<p>ich würde gerne die aktuelle URL eines geöffneten Webbrowsers (IExplorer und/oder Firefox) abfragen.<br />
Kan mir jemand Tipps geben mit welchem Befehl das möglich ist ?</p>
<p>Vielen Dank.<br />
Chris</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/209388/parameter-des-internet-explorer-abfragen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 08:18:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/209388.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Mar 2008 07:49:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Parameter des Internet Explorer abfragen on Sun, 30 Mar 2008 07:49:33 GMT]]></title><description><![CDATA[<p>Guten Morgen,</p>
<p>ich würde gerne die aktuelle URL eines geöffneten Webbrowsers (IExplorer und/oder Firefox) abfragen.<br />
Kan mir jemand Tipps geben mit welchem Befehl das möglich ist ?</p>
<p>Vielen Dank.<br />
Chris</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1482999</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1482999</guid><dc:creator><![CDATA[chris22]]></dc:creator><pubDate>Sun, 30 Mar 2008 07:49:33 GMT</pubDate></item><item><title><![CDATA[Reply to Parameter des Internet Explorer abfragen on Sun, 30 Mar 2008 08:01:43 GMT]]></title><description><![CDATA[<p>WIN-API</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1483002</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1483002</guid><dc:creator><![CDATA[azuro]]></dc:creator><pubDate>Sun, 30 Mar 2008 08:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to Parameter des Internet Explorer abfragen on Sun, 30 Mar 2008 09:16:35 GMT]]></title><description><![CDATA[<p>ja, danke .... dann bitte ich einen Moderator den Thrad in das entsprechende Forum zu verschieben. Danke.</p>
<p>Mit dem folgenden Code will ich feststellen, ob ein Webbrowser geöffnet ist, leider kenn ich keine Befehle der WinAPI um fremde Prozesse abzufragen.<br />
Kann mir jemand Hinweise geben ?</p>
<p>Chris</p>
<pre><code class="language-cpp">#include &lt;condefs.h&gt;
#include &lt;windows.h&gt;
#include &lt;tlhelp32.h&gt;
#include &lt;tchar.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

#pragma hdrstop

//---------------------------------------------------------------------------
#pragma argsused

//  Forward declarations:
BOOL GetProcessList( );
BOOL ListProcessModules( DWORD dwPID );
BOOL ListProcessThreads( DWORD dwOwnerPID );
void printError( TCHAR* msg );

int main(int argc, char **argv)
{
        GetProcessList( );
        getch();
        return 0;
}

BOOL GetProcessList( ) 
{ 
  HANDLE hProcessSnap; 
  HANDLE hProcess; 
  PROCESSENTRY32 pe32; 
  DWORD dwPriorityClass; 

  // Take a snapshot of all processes in the system. 
  hProcessSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 ); 
  if( hProcessSnap == INVALID_HANDLE_VALUE ) 
  { 
    printError( TEXT(&quot;CreateToolhelp32Snapshot (of processes)&quot;) ); 
    return( FALSE ); 
  } 

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

  // Retrieve information about the first process, 
  // and exit if unsuccessful 
  if( !Process32First( hProcessSnap, &amp;pe32 ) ) 
  { 
    printError( TEXT(&quot;Process32First&quot;) ); // show cause of failure 
    CloseHandle( hProcessSnap );          // clean the snapshot object 
    return( FALSE ); 
  } 

  // Now walk the snapshot of processes, and 
  // display information about each process in turn 
  do 
  { 
    printf( &quot;\n\n=====================================================&quot; ); 
    _tprintf( TEXT(&quot;\nPROCESS NAME:  %s&quot;), pe32.szExeFile ); 
    printf( &quot;\n-----------------------------------------------------&quot; ); 

    // Retrieve the priority class. 
    dwPriorityClass = 0; 
    hProcess = OpenProcess( PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID ); 
    if( hProcess == NULL ) 
      printError( TEXT(&quot;OpenProcess&quot;) ); 
    else 
    { 
      dwPriorityClass = GetPriorityClass( hProcess ); 
      if( !dwPriorityClass ) 
        printError( TEXT(&quot;GetPriorityClass&quot;) ); 
      CloseHandle( hProcess ); 
    } 

    printf( &quot;\n  Process ID        = 0x%08X&quot;, pe32.th32ProcessID ); 
    printf( &quot;\n  Thread count      = %d&quot;,   pe32.cntThreads ); 
    printf( &quot;\n  Parent process ID = 0x%08X&quot;, pe32.th32ParentProcessID ); 
    printf( &quot;\n  Priority base     = %d&quot;, pe32.pcPriClassBase ); 
    if( dwPriorityClass ) 
      printf( &quot;\n  Priority class    = %d&quot;, dwPriorityClass ); 

    // List the modules and threads associated with this process 
    ListProcessModules( pe32.th32ProcessID ); 
    ListProcessThreads( pe32.th32ProcessID ); 

  } while( Process32Next( hProcessSnap, &amp;pe32 ) ); 

  CloseHandle( hProcessSnap ); 
  return( TRUE ); 
} 

BOOL ListProcessModules( DWORD dwPID ) 
{ 
  HANDLE hModuleSnap = INVALID_HANDLE_VALUE; 
  MODULEENTRY32 me32; 

  // Take a snapshot of all modules in the specified process. 
  hModuleSnap = CreateToolhelp32Snapshot( TH32CS_SNAPMODULE, dwPID ); 
  if( hModuleSnap == INVALID_HANDLE_VALUE ) 
  { 
    printError( TEXT(&quot;CreateToolhelp32Snapshot (of modules)&quot;) ); 
    return( FALSE ); 
  } 

  // Set the size of the structure before using it. 
  me32.dwSize = sizeof( MODULEENTRY32 ); 

  // Retrieve information about the first module, 
  // and exit if unsuccessful 
  if( !Module32First( hModuleSnap, &amp;me32 ) ) 
  { 
    printError( TEXT(&quot;Module32First&quot;) );  // show cause of failure 
    CloseHandle( hModuleSnap );           // clean the snapshot object 
    return( FALSE ); 
  } 

  // Now walk the module list of the process, 
  // and display information about each module 
  do 
  { 
    _tprintf( TEXT(&quot;\n\n     MODULE NAME:     %s&quot;),   me32.szModule ); 
    _tprintf( TEXT(&quot;\n     Executable     = %s&quot;),     me32.szExePath ); 
    printf( &quot;\n     Process ID     = 0x%08X&quot;,         me32.th32ProcessID ); 
    printf( &quot;\n     Ref count (g)  = 0x%04X&quot;,     me32.GlblcntUsage ); 
    printf( &quot;\n     Ref count (p)  = 0x%04X&quot;,     me32.ProccntUsage ); 
    printf( &quot;\n     Base address   = 0x%08X&quot;, (DWORD) me32.modBaseAddr ); 
    printf( &quot;\n     Base size      = %d&quot;,             me32.modBaseSize ); 

  } while( Module32Next( hModuleSnap, &amp;me32 ) ); 

  CloseHandle( hModuleSnap ); 
  return( TRUE ); 
} 

BOOL ListProcessThreads( DWORD dwOwnerPID ) 
{ 
  HANDLE hThreadSnap = INVALID_HANDLE_VALUE; 
  THREADENTRY32 te32; 

  // Take a snapshot of all running threads   
  hThreadSnap = CreateToolhelp32Snapshot( TH32CS_SNAPTHREAD, 0 ); 
  if( hThreadSnap == INVALID_HANDLE_VALUE ) 
    return( FALSE ); 

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

  // Retrieve information about the first thread, 
  // and exit if unsuccessful 
  if( !Thread32First( hThreadSnap, &amp;te32 ) ) 
  { 
    printError( TEXT(&quot;Thread32First&quot;) ); // show cause of failure 
    CloseHandle( hThreadSnap );          // clean the snapshot object 
    return( FALSE ); 
  } 

  // Now walk the thread list of the system, 
  // and display information about each thread 
  // associated with the specified process 
  do 
  { 
    if( te32.th32OwnerProcessID == dwOwnerPID ) 
    { 
      printf( &quot;\n\n     THREAD ID      = 0x%08X&quot;, te32.th32ThreadID ); 
      printf( &quot;\n     Base priority  = %d&quot;, te32.tpBasePri ); 
      printf( &quot;\n     Delta priority = %d&quot;, te32.tpDeltaPri ); 
    } 
  } while( Thread32Next(hThreadSnap, &amp;te32 ) ); 

  CloseHandle( hThreadSnap ); 
  return( TRUE ); 
} 

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 
  _tprintf( TEXT(&quot;\n  WARNING: %s failed with error %d (%s)&quot;), msg, eNum, sysMsg ); 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1483016</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1483016</guid><dc:creator><![CDATA[chris22]]></dc:creator><pubDate>Sun, 30 Mar 2008 09:16:35 GMT</pubDate></item><item><title><![CDATA[Reply to Parameter des Internet Explorer abfragen on Tue, 01 Apr 2008 12:18:13 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" 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/1484424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1484424</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 01 Apr 2008 12:18:13 GMT</pubDate></item></channel></rss>