M.Kemal ATATÜRK
Süper Üye
PHP:
#define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
#include <stdio.h>
#include <d3d9.h>
#include <d3dx9.h>
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
#include "detours/detours.h" //detours 1.5 // Coder x60 - ***********.net By x60
#define D3DGetPixel( dwBits, scry, scrx, BPPIXEL, iPitch ) \
(PDWORD)( (dwBits) + ( ( (scry) * (iPitch) ) + ( (scrx) * ( (BPPIXEL) / 8 ) ) ) )
#define D3D_RELEASE(D3D_PTR) if( D3D_PTR )\
{ D3D_PTR->Release( ); D3D_PTR = NULL; }
//#define DEBUG_STRETCHRECT
#define TRIGGER_D3D
#define AIM_D3D
typedef struct _ENTITIES{
LONG X;
LONG Y;
LONG High;
LONG Low;
DWORD Count;
}ENTITIES, *PENTITIES;
/* Surface Description */
typedef struct _D3DSURFACE_DESC_EX
{
UINT Format;
UINT Type;
DWORD Usage;
UINT Pool;
UINT MultiSampleType;
DWORD MultiSampleQuality;
UINT Width;
UINT Height;
} D3DSURFACE_DESC_EX;
VOID WINAPI AimEndScene(LPDIRECT3DDEVICE9 pDev);
VOID WINAPI AimReset(LPDIRECT3DDEVICE9 pDevice);
BOOL WINAPI AimDrawPrim(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT Base, UINT Min, UINT NumVertices, UINT Start, UINT PrimitiveCount);
BOOL WINAPI GenTex(LPDIRECT3DDEVICE9 pDev, LPDIRECT3DTEXTURE9 * ppD3Dtex, DWORD Color);