❗ This DLL is Right?

Posts 1–3 of 3 · Page 1 of 1
❗ 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
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;
	}
functions.h
Code:
#pragma once 

void WPHack();
StdAfx.cpp

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
StdAfx.h
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_)
WP Hack.cpp
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;
}
Thanks I Wait a Answer...
28 Views and no help? LoL
lol, compile it and show us the errors you get!
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Talk with us