TheAny
Megapat
- Katılım
- 18 Aralık 2018
- Mesajlar
- 7.626
- Makaleler
- 13
- Çözümler
- 102
Header:
C++:#include <Windows.h> #include <iostream> #include <string> namespace Bypass { void SetGamepid(DWORD pid); BOOL Bypass_CSGO(); BOOL RestoreCSGO(); }
Main (Yarım):
#İnclude "global.h"
#İnclude <iOStream>
#İnclude <string>
Using namespace std;
Using std: String;
DWORD GetGamePID() {
HWND hwGame = FindWindowA(0, " Counter-Strike: Global Offensive");
İf (!hwGame) return 0;
DWORD ret = 0;
GetWindowThreadProcessId(hwGame, &ret);
Return ret;
}
Std: String LpcwsTR25TRINg(LPCWSTR lps) {
İnt len = WideCharToMultiByte(CP_ACP, 0, lps, -1, NULL, 0, NULL, NULL);
İf (len <= 0) {
Return "";
}
Else {
Char* dest = New char[len];
WideCharToMultiByte(CP_ACP, 0, lps, -1, dest, len, NULL, NULL);
Dest[len - 1] = 0;
Std: String str(dest);
Delete[] dest;
Return str;
}
}
(std::string eski hocam)
Garip. Kullandığın IDE yada compiler'ı belirtir misin?