Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 32615

Function to getHardwareID of player (30%)

$
0
0
Using WarZ.sln
In SocketLayer.Cpp


Search:


Code:

static const char* DomainNameToIP( const char *domainName );
Add below:


Quote:

static const char* HWID( const char *HWID );



After, search:


Quote:

void SocketLayer::Write( const SOCKET writeSocket, const char* data, const int length )
And add up:


Code:

static const char* HWID( const char *HWID )
{
    HW_PROFILE_INFO hwProfileInfo;


    if(GetCurrentHwProfile(&hwProfileInfo) != NULL){
        HWID = hwProfileInfo.szHwProfileGuid;
//Variable HWID assigns Profile Globally unique identifier
        //printf("Hardware GUID: %s\n",    HWID);
    }else{
        return 0;
    }


    getchar();
}





PS: The code to get the HardwareID player is complete, so we have done 30% of the total. Still missing communicate with api and store in the database. Function for those who want to ban the player from the HardwareID and not the external IP.
Sorry my English.!

Credits:
me!

Viewing all articles
Browse latest Browse all 32615

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>