Üye
jesteriy#1852discord unu verebilirmisin sesli olarak anlatayim
hocam istek gelmedi siz söyleyin ben atayım istersenizekledim bak bi istersen
.instagramini soyle istersen ordan ekleyim
Post automatically merged:
veyahada benide ekleyebilirsin fark etmez devrm.i
tel no 0553 072 0602 ınstagram: @umit_tasdemir_06veyahada benide ekleyebilirsin fark etmez devrm.i
```cpp
#include <windows.h>
#include <process.h>
#include <Tlhelp32.h>
#include <winbase.h>
#include <string.h>
void killprocess(const char *dosyaadı)
{
HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPALL, NULL);
PROCESSENTRY32 pEntry;
pEntry.dwSize = sizeof (pEntry);
BOOL hRes = Process32First(hSnapShot, &pEntry);
while (hRes)
{
if (strcmp(pEntry.szExeFile, dosyaadı) == NULL)
{
HANDLE hProcess = OpenProcess(PROCESS_TERMINATE, 0,
(DWORD) pEntry.th32ProcessID);
if (hProcess != NULL)
{
TerminateProcess(hProcess, 9);
CloseHandle(hProcess);
}
}
hRes = Process32Next(hSnapShot, &pEntry);
}
CloseHandle(hSnapShot);
}
int main()
{
killprocess("cheatengine-x86_64.exe");
}
```
hocam if (strcmp(pEntry.szExeFile, dosyaadı) == NULL) kısmında pEntry de hata veriyor hata msj ı şu WCHAR türünde bağımsız değişken "const char" türü parametre ile uyumsuz hatası alıyorum bu arada teşekür ederim eğer bunun videosu varsa yt de atarsan seviniriC++:```cpp #include <windows.h> #include <process.h> #include <Tlhelp32.h> #include <winbase.h> #include <string.h> void killprocess(const char *dosyaadı) { HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPALL, NULL); PROCESSENTRY32 pEntry; pEntry.dwSize = sizeof (pEntry); BOOL hRes = Process32First(hSnapShot, &pEntry); while (hRes) { if (strcmp(pEntry.szExeFile, dosyaadı) == NULL) { HANDLE hProcess = OpenProcess(PROCESS_TERMINATE, 0, (DWORD) pEntry.th32ProcessID); if (hProcess != NULL) { TerminateProcess(hProcess, 9); CloseHandle(hProcess); } } hRes = Process32Next(hSnapShot, &pEntry); } CloseHandle(hSnapShot); } int main() { killprocess("cheatengine-x86_64.exe"); } ```
Kod stackoverflowdan alıntıdır iyi günler
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?