006
30.08.2004, 10:25 Uhr
~bonanza
Gast
|
erstmal DANKE ja ich habs nu..... aber mein compiler meldet 3 fehler (Dev-C++)
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; }
|
1. 31 CDev-Cpp\include\c++\backward\fstream.h In file included from C:/Dev-Cpp/include/c++/backward/fstream.h
2. 4 CDokumente und Einstellungen\bonanza\Desktop\prozess beenden.cpp from C:/Dokumente und Einstellungen/STEPHAN/Desktop/prozess beenden.cpp
3. 2 CDev-Cpp\include\c++\backward\backward_warning.h:32 #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
und das prog kackt ab Fehler: FEHLER!!! |