-4

我设法再次解决的这个错误在计算机上出现了一些问题,我失去了一切。你可以帮帮我吗?我缺乏只解决这个错误,更不能以任何方式。

------ Build started: Project: Ruby, Configuration: Release Win32 ------
main.cpp
main.cpp(172): error C2660: 'EscanerProcessoMemoria' :
function does not take 0 arguments
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

该行:

    // main.cpp

#include "StdAfx.h"
#include "MNameColor.h"
#include "MRealHooks.h"
#include "MMrsDecryptor.h"
#include "MInitialCostume.h"
#include "MD5Wrapper.h"
#include "ZGameClient.h"
#include "ZPost.h"
#include "Globais.h"
#include "D3D.h"
#include "MrsCheck.h"
#include "GunzEXP.h"
#include "Hack.h"
#include "HotKeys.h"
#include "Contador.h"
#include "Heuristica.h"
void Exchange1( DWORD Pointer, BYTE Value ){
    DWORD Old;

    VirtualProtect( (LPVOID)Pointer, 1, PAGE_EXECUTE_READWRITE, &Old );
    *(BYTE*)Pointer = Value;
    VirtualProtect( (LPVOID)Pointer, 1, Old, &Old );
}

void Exchange2( DWORD Pointer, WORD Value ){
    DWORD Old;

    VirtualProtect( (LPVOID)Pointer, 2, PAGE_EXECUTE_READWRITE, &Old );
    *(WORD*)Pointer = Value;
    VirtualProtect( (LPVOID)Pointer, 2, Old, &Old );
}

void Exchange4( DWORD Pointer, DWORD Value ){
    DWORD Old;

    VirtualProtect( (LPVOID)Pointer, 4, PAGE_EXECUTE_READWRITE, &Old );
    *(DWORD*)Pointer = Value;
    VirtualProtect( (LPVOID)Pointer, 4, Old, &Old );
}

DWORD ToDword( ... ){
    __asm{
        mov eax, dword ptr ss:[esp + 4]
        retn
    }
}

void Apply( void ){
    md5wrapper mRunnable;

    char szModule[ 256 ];
    GetModuleFileName( GetModuleHandle( NULL ), szModule, 256 );

    string mPath = string( szModule );

    unsigned long Old;
    MColor1Detour.Detour( (PBYTE)0x621C00, (PBYTE)GetUserGradeIDColor );
    MColor1Detour.Apply();

    MColor2Detour.Detour( (PBYTE)0x4A17A0, (PBYTE)GetUserGradeIDColor );
    MColor2Detour.Apply();

    StageDetour.Detour( (PBYTE)0x44BF40, (PBYTE)StageCreateHandler );
    StageDetour.Apply();

    ZAppUpdateDetour.Detour( (PBYTE)0x499720, (PBYTE)ZAppOnUpdate, true );
    ZAppUpdateDetour.Apply();

    SharedTable.Detour( (PBYTE)0x51EAB0, (PBYTE)MAddSharedCommandTable, true );
    SharedTable.Apply();

    OnRestoreDetour.Detour( (PBYTE)0x4E8DA0, (PBYTE)OnRestore, true );
    OnRestoreDetour.Apply();

    UpdateCostumes();

    //VP
    VirtualProtect( (LPVOID)0x6282F8, 15, PAGE_EXECUTE_READWRITE, &Old );
    memcpy( (LPVOID)0x6282F8, "Carregando  ...\0", 15 );
    VirtualProtect( (LPVOID)0x6282F8, 15, Old, &Old );

    VirtualProtect( (LPVOID)0x4C7C47, 3, PAGE_EXECUTE_READWRITE, &Old );
    memcpy( (LPVOID)0x4C7C47, "\xC2\x10\x00", 3 );
    VirtualProtect( (LPVOID)0x4C7C47, 3, Old, &Old );

    VirtualProtect( (LPVOID)0x621E1B, 10, PAGE_EXECUTE_READWRITE, &Old );
    memcpy( (LPVOID)0x621E1B, "\xEB\x10\xEB\x06\x90\x90\x90\x90\x90\x90", 10 );
    VirtualProtect( (LPVOID)0x621E1B, 10, Old, &Old );

    VirtualProtect( (LPVOID)0x621E2D, 10, PAGE_EXECUTE_READWRITE, &Old );
    memcpy( (LPVOID)0x621E2D, "\x7F\xF6\x83\xEC\x08\xE9\x6C\xA5\xEE\xFF", 10 );
    VirtualProtect( (LPVOID)0x621E2D, 10, Old, &Old );

    VirtualProtect( (LPVOID)0x4982C1, 3, PAGE_EXECUTE_READWRITE, &Old );
    memcpy( (LPVOID)0x4982C1, "\x08\xF7\x0D", 3 );
    VirtualProtect( (LPVOID)0x4982C1, 3, Old, &Old );

    VirtualProtect( (LPVOID)0x478558, 2, PAGE_EXECUTE_READWRITE, &Old );
    memcpy( (PVOID)0x478558, "\xEB\x1B", 2 );
    VirtualProtect( (LPVOID)0x478558, 2, Old, &Old );

    VirtualProtect( (LPVOID)0x4785F8, 2, PAGE_EXECUTE_READWRITE, &Old );
    memcpy( (PVOID)0x4785F8, "\xEB\x07", 2 );
    VirtualProtect( (LPVOID)0x4785F8, 2, Old, &Old );

    VirtualProtect( (LPVOID)0x4C7202, 2, PAGE_EXECUTE_READWRITE, &Old );
    memcpy( (PVOID)0x4C7202, "\xEB", 2 );
    VirtualProtect( (LPVOID)0x4C7202, 2, Old, &Old );

    VirtualProtect( (LPVOID)0x4A9256, 2, PAGE_EXECUTE_READWRITE, &Old );
    memcpy( (PVOID)0x4A9256, "\xEB", 2 );
    VirtualProtect( (LPVOID)0x4A9256, 2, Old, &Old );

    VirtualProtect( (LPVOID)0x4C6A39, 2, PAGE_EXECUTE_READWRITE, &Old );
    memcpy( (PVOID)0x4C6A39, "\xE8\xE2\xD3\xFF\xFF", 2 );
    VirtualProtect( (LPVOID)0x4C6A39, 2, Old, &Old );
    //End

    Exchange4( 0x62F17C, ToDword( &ZGameClient::OnCommand ) );
    Exchange4( 0x62B30C, ToDword( &ZCharacter::OnDamaged ) );
    Exchange4( 0x62B204, ToDword( &ZMyCharacter::OnDamaged ) );
    ExchangeCall( 4728632, ToDword( &ZCharacter::OnDamaged ) );
    ApplyHooks( 1 );
    Exchange4( 0x4366A2, 8900 );
    Exchange2( 0x40830F, 37008 );
    Exchange4( 0x40830B, 48955826 );
    Exchange1( 0x621CA9, 125 ); 
    Exchange1( 0x45C742, 0 );
    Exchange1( 0x4973D8, 56 );
    Exchange1( 0x45C27A, 0 );
    Exchange4( 0x41A342, 0x800000 );
    Exchange4( 0x41AA20, 0x800000 );
    Exchange4( 0x41AAB2, 0x800000 );
    Exchange4( 0x41B9BA, 0x800000 );
    Exchange4( 0x41C2EE, 0x800000 );
    Exchange4( 0x43908A, 0x800000 );
    Exchange4( 0x4C4B95, 0x800000 );
    ExchangeReplaceCall( 0x42AF40, (unsigned long)&ZPostChannelChat );
    ExchangeReplaceCall( 0x481170, (unsigned long)&ZPostSkill );
    ExchangeReplaceCall( 0x42ADC0, (unsigned long)&ZPostPeerChat );


    pGunz = (unsigned char*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, 2231296 );

    if( pGunz ){
        for( int n = 0; n < 2231296; n++ ){
            pGunz[ n ] = *(unsigned char*)(n + 4198400);
        }
    }
}
void Escaners(){
    EscanerProcessoMemoria();
    EscanerProcessoSistema();
}
int __stdcall DllMain( HMODULE hModule, DWORD dwReason, LPVOID lpParam ){
    DisableThreadLibraryCalls( hModule );
    EscondeProtecao( hModule );
    if( dwReason == DLL_PROCESS_ATTACH ){
        Apply( );
        CheckFiles();
        ContarArquivos();
        VerificarHack();
        CreateThread (0,0,(LPTHREAD_START_ROUTINE)GunzEXP,0,0,0);
        CreateThread (0,0,(LPTHREAD_START_ROUTINE)ChecarHotKeys,0,0,0);
        CreateThread (0,0,(LPTHREAD_START_ROUTINE)Escaners,0,0,0);
        CreateThread (0,0,(LPTHREAD_START_ROUTINE)TxtCheckWindow,0,0,0);
        }
    return true;
}

请帮我

4

1 回答 1

0

检查 的声明EscanerProcessoMemoria(),并确保它采用 0 个参数。如果没有,请确保包含任何可能使用 0 个参数重载此函数的标头。

除此之外,编译器几乎可以为您提供答案。底线:检查EscanerProcessoMemoria()......如果有的话。

于 2013-08-10T07:05:22.533 回答