Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1337 legit jasperxd.cpp ----------------------------------------------------------------------------------------
- #include "stdafx.h"
- #include <windows.h>
- #include <d3d9.h>
- #include <d3dx9.h>
- #pragma comment (lib,"d3d9")
- #pragma comment (lib,"d3dx9")
- LPDIRECT3DDEVICE9 crosshair;
- bool ScreenCenterX = false;
- bool ScreenCenterY = false;
- void crosshair(void);
- void Crosshair(LPDIRECT3DDEVICE9 pDevice, D3DCOLOR color)
- {
- D3DVIEWPORT9 viewP;
- pDevice->GetViewport( &viewP );
- DWORD ScreenCenterX = viewP.Width / 2;
- DWORD ScreenCenterY = viewP.Height / 2;
- D3DRECT rect1 = {ScreenCenterX-5, ScreenCenterY, ScreenCenterX+5, ScreenCenterY+1};
- D3DRECT rect2 = {ScreenCenterX, ScreenCenterY-5, ScreenCenterX+1, ScreenCenterY+5};
- pDevice->Clear( 1, &rect1, D3DCLEAR_TARGET, color, 0, 0 );
- pDevice->Clear( 1, &rect2, D3DCLEAR_TARGET, color, 0, 0 );
- }
- dllmain.cpp ----------------------------------------------------------------------------------------
- #include "stdafx.h"
- #define WIN32_LEAN_AND_MEAN
- #include <windows.h>
- #define DLL_FUNC extern *C* __declspec(dllexport)
- DLL_FUNC int __stdcall Hello()
- {
- MessageBox(HWND_DESKTOP, "Made By JasperXD", "JasperXD", MB_OK);
- return TRUE;
- }
- BOOL APIENTRY DllMain( HMODULE hModule,
- DWORD ul_reason_for_call,
- LPVOID lpReserved
- )
- {
- switch (ul_reason_for_call)
- {
- case DLL_PROCESS_ATTACH:
- case DLL_THREAD_ATTACH:
- case DLL_THREAD_DETACH:
- case DLL_PROCESS_DETACH:
- break;
- }
- return TRUE;
- }
- stdafx.h ----------------------------------------------------------------------------------------
- // stdafx.h : include file for standard system include files,
- // or project specific include files that are used frequently, but
- // are changed infrequently
- //
- #pragma once
- #include "targetver.h"
- #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
- // Windows Header Files:
- #include <windows.h>
- #include <stdio.h>
- #include <d3d9.h>
- #include <d3dx9.h>
- #pragma comment(lib, "d3dx9.lib")
- // TODO: reference additional headers your program requires here
Advertisement
Add Comment
Please, Sign In to add comment