GamerzPlanet - For All Your Online Gaming Needs!!

Go Back   GamerzPlanet - For All Your Online Gaming Needs!! > Online Gaming > WarRock

WarRock Discuss anything about WarRock.



Bypassing Screenies in C++

WarRock


Closed Thread
 
Thread Tools Display Modes
Old 03-17-2008, 08:50 AM   #1
Registered User
 
Last Online: 04-28-2008 08:21 AM
Join Date: Jan 2008
Age: 19
Posts: 62
Thanks: 12
Thanked 65 Times in 21 Posts
terrence111 is on a distinguished road
iTrader: 0 / 0%
Points: 2,441.00
Bank: 0.00
Total Points: 2,441.00
Arrow Bypassing Screenies in C++

Heres how to bypass a screenshot in any game.

It will create a clean screenshot like you were never hacking.

Code:
////make apihook.h//////
#include <windows.h>
#include <detours.h>
#include "d3d9dev.h"

#pragma comment(lib,"detours.lib")
#pragma comment(lib,"psapi.lib")



/*
//////////////////////////////////////////////////////////////
////////////////DONT FORGET TO CREDIT TERRENCE111///////////////////
////////////////IF YOU USE THIS///////////////////////////////
//////////////////////////////////////////////////////////////
*/

DETOUR_TRAMPOLINE(BOOL WINAPI fGetWindowPlacement(HWND hWnd,WINDOWPLACEMENT *lpwndpl),GetWindowPlacement);

BOOL WINAPI Fake_GetWindowPlacemt(HWND hWnd,WINDOWPLACEMENT *lpwndpl)
{
BOOL GWP;

GWP = fGetWindowPlacement(hWnd,lpwndpl);



if (lpwndpl->showCmd && SW_SHOWMAXIMIZED)
{
    lpwndpl->showCmd = SW_SHOWMINIMIZED;
}

return GWP;
}
////end of apihook.h//////////////////
in main.h add this:
Code:
#include "apihook.h"

///in Dllmain///
DetourFunctionWithTrampoline((PBYTE)fGetWindowPlacement, (PBYTE)Fake_GetWindowPlacemt);
And if you need to remove it when pb is checking heres the detour remove method...
Code:
DetourRemove((PBYTE)fGetWindowPlacement, (PBYTE)Fake_GetWindowPlacemt);

This will generate a clean screen shot not a blank one so it doesn't look like you were hacking at all.
terrence111 is offline  
The Following 2 Users Say Thank You to terrence111 For This Useful Post:
enzo (09-12-2008), koi691 (03-30-2008)
Sponsored Links
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT -7. The time now is 10:08 AM.


Powered by: vBulletin
Copyright ©2008, GamerzPlanet.Net
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Network: GamerzPlanet | ForumzPlanet | GzPUpload | GzPArcade | GzP Host | Australian Poker | Watch Desperate Housewives | Visits: