❗ This DLL is Right?
Someone could tell me if this DLL (for Wolfteam) is coded right?
If not tell me what are wrong please.
functions.cpp
functions.h
StdAfx.cpp
StdAfx.h
WP Hack.cpp
Thanks I Wait a Answer...
If not tell me what are wrong please.
functions.cpp
Code:
#include "stdafx.h"
#include "functions.h"
DWORD WINAPI points( LPVOID lpParam ); DWORD WINAPI points( LPVOID lpParam){DWORD OldProt;
int *offset = (int*)0x9532B4;
while(true)
{
while(!(GetAsyncKeyState(0x4D))) Sleep(100);
VirtualProtect(offset, 4, PAGE_EXECUTE_READWRITE, &OldProt);
*offset = 1400000;
VirtualProtect(offset, 4, OldProt, &OldProt);
}
return 0;
}
Code:
#pragma once void WPHack();
Code:
// stdafx.cpp : source file that includes just the standard includes // WP Hack.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
Code:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__CF9DAB04_13A0_46C8_B6B1_17823FBC7829__INCLUDED_)
#define AFX_STDAFX_H__CF9DAB04_13A0_46C8_B6B1_17823FBC7829__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Insert your headers here
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
// TODO: reference additional headers your program requires here
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__CF9DAB04_13A0_46C8_B6B1_17823FBC7829__INCLUDED_)
Code:
// WP Hack.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}