009 
            04.08.2004, 09:39 Uhr 
            RedEagle 
            
             
             
             
             
             | 
          
   
  
  
    | C++: | 
   
  
    
      
   #include <windows.h> #include <tlhelp32.h>  #include <fstream.h> #include <iostream>
  using namespace std; typedef BOOL (WINAPI *TH32_PROCESS)               (HANDLE hSnapShot, LPPROCESSENTRY32 lppe); static TH32_PROCESS pProcess32First = NULL;  static TH32_PROCESS pProcess32Next = NULL;
  void stop() { DWORD dw; HANDLE hSysSnapshot = NULL; HANDLE h_pro; PROCESSENTRY32 proc;
  proc.dwSize = sizeof(proc); hSysSnapshot = CreateToolhelp32Snapshot ( TH32CS_SNAPPROCESS, 0 ); pProcess32First(hSysSnapshot,&proc); proc.dwSize = sizeof(proc);
  do{     if(!strcmp(proc.szExeFile,"iexplorer.EXE")){//oder halt th32ProcessID verwenden           h_pro=OpenProcess(PROCESS_ALL_ACCESS, TRUE, proc.th32ProcessID);           GetExitCodeProcess(h_pro,&dw);           TerminateProcess(h_pro,dw);     } }while(pProcess32Next(hSysSnapshot,&proc)); }
  //---------------------------------------------------------------------------------
  int main() {  stop();  return 0; } 
       
      
     | 
   
   
  
  Das programm wird kompiliert, und ausgeführt, doch dann stürtz es ab ("Dies Anwendung wird aufgrund eines ....")
  (es soll den internet Explorer schließen) -- MFG RedEagle |