Enabled Key , GunZ.exe not work

Results 1 to 12 of 12
  1. #1
    Proficient Member Desperate is offline
    MemberRank
    Dec 2011 Join Date
    Kyōto, JapanLocation
    162Posts

    Enabled Key , GunZ.exe not work

    idk , today i build GunZ.exe with enabled seri key

    ---------------------- Done ----------------------

    Build: 10 succeeded, 0 failed, 0 skipped
    But , run Gunzlauncher to start the game , GunZ.exe show black screen and disconnect


  2. #2
    Alpha Member Chrisss is offline
    MemberRank
    Feb 2012 Join Date
    Ask the Fox!Location
    1,660Posts

    Re: Enabled Key , GunZ.exe not work

    You seriously needed to create 2 threads?

    The black screen has nothing to do with a black screen.

    Anyways post your mlog.txt

  3. #3
    Proficient Member Desperate is offline
    MemberRank
    Dec 2011 Join Date
    Kyōto, JapanLocation
    162Posts

    Re: Enabled Key , GunZ.exe not work

    GUNZ 1,0,0,290 launched. build (Jun 21 2013 10:29:58)
    Log time (06/21/13 10:33:24)
    CPU ID = GenuineIntel ( family = 262 , model = 7 , stepping = 6 ) @ 2499 MHz
    Display Device = Intel(R) G33/G31 Express Chipset Family (Microsoft Corporation - WDDM 1.0) ( vendor=8086 device=29c2 subsys=82b01043 revision=10 )
    Display Driver Version = 8.14.0010.2697
    Windows = 6.2 Build 9200 , (2087092KB) : ..
    Load XML from memory : system/locale.xml- SUCCESS
    Country : (KOR), Language : (KOR)
    Load Config from file : config.xml- SUCCESS
    Load XML from memory : system/system.xml- SUCCESS
    Load XML from memory : system/strings.xml(0x0012) - SUCCESS
    Load XML from memory : system/cserror.xml(0x0012) - SUCCESS
    Load XML from memory : system/messages.xml(0x0012) - SUCCESS
    Load XML from memory : system/gametypecfg.xml
    Serialkey error : 208
    Routed to Website
    Announcements : Log into the ijji.com GUNZ home page first and Click Play live to launch GunZ.
    can you help me ? Serialkey error : 208

  4. #4
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Enabled Key , GunZ.exe not work

    Build the source in BRZ or KOR. most recommended and stable builds.

    Open system.mrs -> change Locale to BRZ

  5. #5
    Proficient Member Desperate is offline
    MemberRank
    Dec 2011 Join Date
    Kyōto, JapanLocation
    162Posts

    Re: Enabled Key , GunZ.exe not work

    Quote Originally Posted by Ronny786 View Post
    Build the source in BRZ or KOR. most recommended and stable builds.

    Open system.mrs -> change Locale to BRZ


    So if i changed locale to BRZ ? i have need change on GunZ.exe ?

    case MC_BRAZIL:

  6. #6
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Enabled Key , GunZ.exe not work

    No. Just change locale to BRZ

  7. #7
    Proficient Member Desperate is offline
    MemberRank
    Dec 2011 Join Date
    Kyōto, JapanLocation
    162Posts

    Re: Enabled Key , GunZ.exe not work

    Quote Originally Posted by Ronny786 View Post
    No. Just change locale to BRZ
    I changed but not working

    GUNZ 1,0,0,290 launched. build (Jun 21 2013 10:29:58)
    Log time (06/21/13 10:49:39)
    CPU ID = GenuineIntel ( family = 262 , model = 7 , stepping = 6 ) @ 2499 MHz
    Display Device = Intel(R) G33/G31 Express Chipset Family (Microsoft Corporation - WDDM 1.0) ( vendor=8086 device=29c2 subsys=82b01043 revision=10 )
    Display Driver Version = 8.14.0010.2697
    Windows = 6.2 Build 9200 , (2087092KB) : ..
    Load XML from memory : system/locale.xml- SUCCESS
    Country : (BRZ), Language : (BRZ)
    Load Config from file : config.xml- SUCCESS
    Load XML from memory : system/system.xml- SUCCESS
    Load XML from memory : system/strings.xml(0x0016) - SUCCESS
    Load XML from memory : system/cserror.xml(0x0016) - SUCCESS
    Load XML from memory : system/messages.xml(0x0016) - SUCCESS
    Load XML from memory : system/gametypecfg.xml
    Serialkey error : 208

  8. #8
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Enabled Key , GunZ.exe not work

    I really dont know bout serialkey 208. Just try building in BRZ or kOR

  9. #9
    Proficient Member Desperate is offline
    MemberRank
    Dec 2011 Join Date
    Kyōto, JapanLocation
    162Posts

    Re: Enabled Key , GunZ.exe not work

    Quote Originally Posted by Ronny786 View Post
    I really dont know bout serialkey 208. Just try building in BRZ or kOR
    I don't know , i building with country KOR ? enabled seri key GunZ.exe but not working ?

    Sorry my english is bad

  10. #10
    Hi, Im Ryuzu yerij007 is offline
    MemberRank
    Oct 2011 Join Date
    Behind You!Location
    311Posts

    Re: Enabled Key , GunZ.exe not work

    Should be on CGLEncryption.cpp
    [CODE=… CODE/]
    Later ill give the codes.

  11. #11
    Proficient Member Desperate is offline
    MemberRank
    Dec 2011 Join Date
    Kyōto, JapanLocation
    162Posts

    Re: Enabled Key , GunZ.exe not work

    Quote Originally Posted by yerij007 View Post
    Should be on CGLEncryption.cpp
    [CODE=… CODE/]
    Later ill give the codes.
    Code:
    /**********************************************************************
      GunZ Launcher Enctiption
    
       file : CGLEncription.cpp
       desc : °ÇÁî ½ÇÇà¿¡ ÇÊ¿äÇÑ ½Ã¸®¾ó ۸¦ ¾Ïȣȭ ÇÑ´Ù.
    ***********************************************************************/
    
    
    
    #include "stdafx.h"
    #include "CGLEncription.h"
    #include "MCrypt.h"
    #include <Mmsystem.h>
    #include <math.h>
    
    #define DATA_MSG_INTERNATIONAL		"I_hate_hacker"
    #define DATA_MSG_LAUNCHDEV			"I_love_MAIET"
    #define DATA_MSG_TEST				"Find_Me"
    
    /*
    // CreateSerialKey
    bool CGLEncription::CreateSerialKey()
    {
    	// Create random seed
    	unsigned char szSerialKey[ MAX_BUF];
    	srand( (unsigned)time( NULL));
    	for ( int i = 0;  i < MAX_BUF;  i++)
    		szSerialKey[ i] = (unsigned char)( rand() % 256);
        
    
    	// Get limited time
    	DWORD dwLimitedTime = timeGetTime() + 60000;
    	char szTime[ 20];
    	memset( szTime, 0, sizeof(szTime));
    	sprintf( szTime, "%X", dwLimitedTime);
    
    
    	// Get Disk serial number
    	char szDiskLabel[ 128];
    	char szFileSysName[ 128];
    	DWORD dwDiskSerial;
    	DWORD dwMaxNameLength = 0; 
    	DWORD dwFileSystemFlags = 0;
    	char szDirectory[ 256];
    	GetCurrentDirectory( sizeof( szDirectory), szDirectory);
    	szDirectory[ 3] = 0;
    	GetVolumeInformation( szDirectory, szDiskLabel, sizeof(szDiskLabel)-1, &dwDiskSerial,
    														&dwMaxNameLength,
    														&dwFileSystemFlags,
    														szFileSysName,
    														sizeof( szFileSysName) - 1);
    	char szDiskSerial[ 20];
    	memset( szDiskSerial, 0, sizeof(szDiskSerial));
    	sprintf( szDiskSerial, "%X", dwDiskSerial);
    
    
    	// Set Data
    	char szData[ 20];
    	memset( szData, 0, sizeof(szData));
    	strcpy( szData, DATA_MSG_LAUNCHDEV);
    
    
    	// Mixing data
    	int nPos = szSerialKey[ MAX_BUF - 1] % 10;
    	for ( i = 0;  i < 20;  i++)
    	{
    		int nAbsPos = (int)((i / 10) * 10) + nPos;
    
    		szSerialKey[      nAbsPos] = (unsigned char)szTime[ nAbsPos];
    		szSerialKey[ 20 + nAbsPos] = (unsigned char)szDiskSerial[ nAbsPos];
    		szSerialKey[ 40 + nAbsPos] = (unsigned char)szData[ nAbsPos];
    
    		nPos = ( nPos + 7) % 10;
    	}
    
    
    	// Get CRC
    	szSerialKey[ MAX_BUF - 2] = 0;
    	for ( i = 0;  i < 60;  i++)
    		szSerialKey[ MAX_BUF - 2] += szSerialKey[ i];
    	
    
    	// Encrypt
    	MSeed cSeed;
    	unsigned char byKey[ SEED_USER_KEY_LEN];
    	memset( byKey, 0, sizeof( byKey));
    	unsigned char byIV[ SEED_BLOCK_LEN];
    	memset( byIV, 0, sizeof( byIV));
    	for ( int i = 0;  i < 20;  i++)
    	{
    		if ( i < SEED_USER_KEY_LEN)
    			byKey[ i] = szSerialKey[ 200 + i];
    		if ( i < SEED_BLOCK_LEN)
    	        byIV[ i]  = szSerialKey[ 220 + i];
    	}
    	if ( !cSeed.InitKey( byKey, byIV))
    		return false;
    
    	DWORD dwLength;
    	unsigned char szCriptSerialKey[ MAX_BUF];
    	if ( !cSeed.Encrypt( szSerialKey, 60, szCriptSerialKey, &dwLength))
    		return false;
    
    	memcpy( szSerialKey, szCriptSerialKey, dwLength);
    	szSerialKey[ MAX_BUF - 3] = (unsigned char)dwLength;
    
    
    	// Write to clip board
    	bool bRetVal = false;
    	if ( ::OpenClipboard( NULL))
    	{
    		HGLOBAL hMem;
    		hMem = GlobalAlloc( GMEM_DDESHARE, MAX_BUF + 1);
    		char* buffer = (char*)GlobalLock( hMem);
    		memcpy( buffer, szSerialKey, MAX_BUF);
    		GlobalUnlock( hMem);
    
    		bRetVal = ( ::SetClipboardData( CF_GUNZLAUNCHER, hMem) == NULL) ? false : true;
    
    		::CloseClipboard();
    	}
    
    
    	return bRetVal;
    }
    */
    
    // atodw
    DWORD atodw( const char* szValue)
    {
    	int nCount = 0;
    	DWORD dwValue = 0;
    
    	while ( *(szValue + nCount) != 0)
    	{
    		dwValue *= 16;
    
    		if ( ( *(szValue + nCount) >= '0') && ( *(szValue + nCount) <= '9'))
    			dwValue += *(szValue + nCount) - '0';
    		else
    			dwValue += *(szValue + nCount) - 'A' + 10;
    
    		nCount++;
    	}
    
    	return dwValue;
    }
    
    
    // GetEncription
    int CGLEncription::Decription( void)
    {
    	unsigned char szSerialKey[ MAX_BUF];
    	memset( szSerialKey, 0, MAX_BUF);
    
    
    	// Read from clipboard
    	if ( ! ::OpenClipboard( NULL))
    	{
    		mlog( "Serialkey error : 201\n");
    		return false;
    	}
    
    	if ( !IsClipboardFormatAvailable( CF_GUNZLAUNCHER))
    	{
    		mlog( "Serialkey error : 202\n");
    		MessageBox(NULL, "Please start from Launcher.", NULL, MB_OK | MB_ICONERROR);
    		return false;
    	}
    
    	memcpy( szSerialKey, (unsigned char*)GetClipboardData( CF_GUNZLAUNCHER), MAX_BUF);
    
    	::CloseClipboard();
    
    
    	// Variables;
    	char szTime[ 20];
    	memset( szTime, 0, sizeof( szTime));
    
    	char szDiskSerial[ 20];
    	memset( szDiskSerial, 0, sizeof( szDiskSerial));
    
    	char szData[ 20];
    	memset( szData, 0, sizeof( szData));
    
    
    	// Decrypt
    	MSeed cSeed;
    	unsigned char byKey[ SEED_USER_KEY_LEN];
    	memset( byKey, 0, sizeof( byKey));
    	unsigned char byIV[ SEED_BLOCK_LEN];
    	memset( byIV, 0, sizeof( byIV));
    	for ( int i = 0;  i < 20;  i++)
    	{
    		if ( i < SEED_USER_KEY_LEN)
    			byKey[ i] = szSerialKey[ 200 + i];
    		if ( i < SEED_BLOCK_LEN)
    	        byIV[ i]  = szSerialKey[ 220 + i];
    	}
    	if ( !cSeed.InitKey( byKey, byIV))
    	{
    		mlog( "Serialkey error : 203\n");
    		return false;
    	}
    
    	DWORD dwLength;
    	unsigned char szCryptSerialKey[ MAX_BUF];
    	if ( !cSeed.Decrypt( szSerialKey, szSerialKey[ MAX_BUF - 3], szCryptSerialKey, &dwLength))
    	{
    		mlog( "Serialkey error : 204\n");
    		return false;
    	}
    
    	memcpy( szSerialKey, szCryptSerialKey, dwLength);
    
    
    
    	// Check CRC
    	unsigned char byCRC = 0;
    	for ( int i = 0;  i < 60;  i++)
    		byCRC += szSerialKey[ i];
    
    	if ( byCRC != szSerialKey[ MAX_BUF - 2])
    	{
    		mlog( "Serialkey error : 205\n");
    		return false;
    	}
    
    
    	// Decoding
    	int nPos = szSerialKey[ 60] % 10;
    	for ( int i = 0;  i < 20;  i++)
    	{
    		int nAbsPos = (int)((i / 10) * 10) + nPos;
    
    		szTime[ nAbsPos]        = (char)szSerialKey[      nAbsPos];
    		szDiskSerial[ nAbsPos]  = (char)szSerialKey[ 20 + nAbsPos];
    		szData[ nAbsPos]        = (char)szSerialKey[ 40 + nAbsPos];
    
    		nPos = ( nPos + 3) % 10;
    	}
    
    
    	// Check time
    	DWORD dwTime = atodw( szTime);
    	DWORD dwCurrTime = timeGetTime();
    	if ( (DWORD)atodw( szTime) < timeGetTime())
    	{
    		mlog( "Serialkey error : 206\n");
    		return false;
    	}
    
    
    	// Check serial number
    	char szDiskLabel[ 128];
    	char szFileSysName[ 128];
    	DWORD dwDiskSerial;
    	DWORD dwMaxNameLength = 0; 
    	DWORD dwFileSystemFlags = 0;
    	char szDirectory[ 256];
    	GetCurrentDirectory( sizeof( szDirectory), szDirectory);
    	szDirectory[ 3] = 0;
    	GetVolumeInformation( szDirectory, szDiskLabel, sizeof(szDiskLabel)-1, &dwDiskSerial,
    														&dwMaxNameLength,
    														&dwFileSystemFlags,
    														szFileSysName,
    														sizeof( szFileSysName) - 1);
    
    	if ( (DWORD)atodw( szDiskSerial) != dwDiskSerial)
    	{
    		mlog( "Serialkey error : 207\n");
    		return false;
    	}
    
    
    	// Check Data
    	if ( strcmp( szData, DATA_MSG_INTERNATIONAL) == 0)
    		return GLE_LAUNCH_INTERNATIONAL;
    	else if ( strcmp( szData, DATA_MSG_LAUNCHDEV) == 0)
    		return GLE_LAUNCH_DEVELOP;
    	else if ( strcmp( szData, DATA_MSG_TEST) == 0)
    		return GLE_LAUNCH_TEST;
    
    
    	mlog( "Serialkey error : 208\n");
    	return false;
    }

  12. #12
    Hi, Im Ryuzu yerij007 is offline
    MemberRank
    Oct 2011 Join Date
    Behind You!Location
    311Posts

    Re: Enabled Key , GunZ.exe not work

    The Correct
    Code:
    /**********************************************************************
      GunZ Launcher Enctiption
    
       file : CGLEncription.cpp
       desc : °ÇÁî ½ÇÇà¿¡ ÇÊ¿äÇÑ ½Ã¸®¾ó ۸¦ ¾Ïȣȭ ÇÑ´Ù.
    ***********************************************************************/
    
    
    
    #include "stdafx.h"
    #include "CGLEncription.h"
    #include "MCrypt.h"
    #include <Mmsystem.h>
    #include <math.h>
    
    #define DATA_MSG_INTERNATIONAL		"I_hate_hacker"
    #define DATA_MSG_LAUNCHDEV			"I_love_MAIET"
    #define DATA_MSG_TEST				"Find_Me"
    
    /*
    // CreateSerialKey
    bool CGLEncription::CreateSerialKey()
    {
    	// Create random seed
    	unsigned char szSerialKey[ MAX_BUF];
    	srand( (unsigned)time( NULL));
    	for ( int i = 0;  i < MAX_BUF;  i++)
    		szSerialKey[ i] = (unsigned char)( rand() % 256);
        
    
    	// Get limited time
    	DWORD dwLimitedTime = timeGetTime() + 60000;
    	char szTime[ 20];
    	memset( szTime, 0, sizeof(szTime));
    	sprintf( szTime, "%X", dwLimitedTime);
    
    
    	// Get Disk serial number
    	char szDiskLabel[ 128];
    	char szFileSysName[ 128];
    	DWORD dwDiskSerial;
    	DWORD dwMaxNameLength = 0; 
    	DWORD dwFileSystemFlags = 0;
    	char szDirectory[ 256];
    	GetCurrentDirectory( sizeof( szDirectory), szDirectory);
    	szDirectory[ 3] = 0;
    	GetVolumeInformation( szDirectory, szDiskLabel, sizeof(szDiskLabel)-1, &dwDiskSerial,
    														&dwMaxNameLength,
    														&dwFileSystemFlags,
    														szFileSysName,
    														sizeof( szFileSysName) - 1);
    	char szDiskSerial[ 20];
    	memset( szDiskSerial, 0, sizeof(szDiskSerial));
    	sprintf( szDiskSerial, "%X", dwDiskSerial);
    
    
    	// Set Data
    	char szData[ 20];
    	memset( szData, 0, sizeof(szData));
    	strcpy( szData, DATA_MSG_LAUNCHDEV);
    
    
    	// Mixing data
    	int nPos = szSerialKey[ MAX_BUF - 1] % 10;
    	for ( i = 0;  i < 20;  i++)
    	{
    		int nAbsPos = (int)((i / 10) * 10) + nPos;
    
    		szSerialKey[      nAbsPos] = (unsigned char)szTime[ nAbsPos];
    		szSerialKey[ 20 + nAbsPos] = (unsigned char)szDiskSerial[ nAbsPos];
    		szSerialKey[ 40 + nAbsPos] = (unsigned char)szData[ nAbsPos];
    
    		nPos = ( nPos + 7) % 10;
    	}
    
    
    	// Get CRC
    	szSerialKey[ MAX_BUF - 2] = 0;
    	for ( i = 0;  i < 60;  i++)
    		szSerialKey[ MAX_BUF - 2] += szSerialKey[ i];
    	
    
    	// Encrypt
    	MSeed cSeed;
    	unsigned char byKey[ SEED_USER_KEY_LEN];
    	memset( byKey, 0, sizeof( byKey));
    	unsigned char byIV[ SEED_BLOCK_LEN];
    	memset( byIV, 0, sizeof( byIV));
    	for ( int i = 0;  i < 20;  i++)
    	{
    		if ( i < SEED_USER_KEY_LEN)
    			byKey[ i] = szSerialKey[ 200 + i];
    		if ( i < SEED_BLOCK_LEN)
    	        byIV[ i]  = szSerialKey[ 220 + i];
    	}
    	if ( !cSeed.InitKey( byKey, byIV))
    		return false;
    
    	DWORD dwLength;
    	unsigned char szCriptSerialKey[ MAX_BUF];
    	if ( !cSeed.Encrypt( szSerialKey, 60, szCriptSerialKey, &dwLength))
    		return false;
    
    	memcpy( szSerialKey, szCriptSerialKey, dwLength);
    	szSerialKey[ MAX_BUF - 3] = (unsigned char)dwLength;
    
    
    	// Write to clip board
    	bool bRetVal = false;
    	if ( ::OpenClipboard( NULL))
    	{
    		HGLOBAL hMem;
    		hMem = GlobalAlloc( GMEM_DDESHARE, MAX_BUF + 1);
    		char* buffer = (char*)GlobalLock( hMem);
    		memcpy( buffer, szSerialKey, MAX_BUF);
    		GlobalUnlock( hMem);
    
    		bRetVal = ( ::SetClipboardData( CF_GUNZLAUNCHER, hMem) == NULL) ? false : true;
    
    		::CloseClipboard();
    	}
    
    
    	return bRetVal;
    }
    */
    
    // atodw
    DWORD atodw( const char* szValue)
    {
    	int nCount = 0;
    	DWORD dwValue = 0;
    
    	while ( *(szValue + nCount) != 0)
    	{
    		dwValue *= 16;
    
    		if ( ( *(szValue + nCount) >= '0') && ( *(szValue + nCount) <= '9'))
    			dwValue += *(szValue + nCount) - '0';
    		else
    			dwValue += *(szValue + nCount) - 'A' + 10;
    
    		nCount++;
    	}
    
    	return dwValue;
    }
    
    
    // GetEncription
    int CGLEncription::Decription( void)
    {
    	unsigned char szSerialKey[ MAX_BUF];
    	memset( szSerialKey, 0, MAX_BUF);
    
    
    	// Read from clipboard
    	if ( ! ::OpenClipboard( NULL))
    	{
    		mlog( "Serialkey error : 201\n");
    		return false;
    	}
    
    	if ( !IsClipboardFormatAvailable( CF_GUNZLAUNCHER))
    	{
    		mlog( "Serialkey error : 202\n");
    		MessageBox(NULL, "Please start from Launcher.", NULL, MB_OK | MB_ICONERROR);
    		return false;
    	}
    
    	memcpy( szSerialKey, (unsigned char*)GetClipboardData( CF_GUNZLAUNCHER), MAX_BUF);
    
    	::CloseClipboard();
    
    
    	// Variables;
    	char szTime[ 20];
    	memset( szTime, 0, sizeof( szTime));
    
    	char szDiskSerial[ 20];
    	memset( szDiskSerial, 0, sizeof( szDiskSerial));
    
    	char szData[ 20];
    	memset( szData, 0, sizeof( szData));
    
    
    	// Decrypt
    	MSeed cSeed;
    	unsigned char byKey[ SEED_USER_KEY_LEN];
    	memset( byKey, 0, sizeof( byKey));
    	unsigned char byIV[ SEED_BLOCK_LEN];
    	memset( byIV, 0, sizeof( byIV));
    	for ( int i = 0;  i < 20;  i++)
    	{
    		if ( i < SEED_USER_KEY_LEN)
    			byKey[ i] = szSerialKey[ 200 + i];
    		if ( i < SEED_BLOCK_LEN)
    	        byIV[ i]  = szSerialKey[ 220 + i];
    	}
    	if ( !cSeed.InitKey( byKey, byIV))
    	{
    		mlog( "Serialkey error : 203\n");
    		return false;
    	}
    
    	DWORD dwLength;
    	unsigned char szCryptSerialKey[ MAX_BUF];
    	if ( !cSeed.Decrypt( szSerialKey, szSerialKey[ MAX_BUF - 3], szCryptSerialKey, &dwLength))
    	{
    		mlog( "Serialkey error : 204\n");
    		return false;
    	}
    
    	memcpy( szSerialKey, szCryptSerialKey, dwLength);
    
    
    
    	// Check CRC
    	unsigned char byCRC = 0;
    	for ( int i = 0;  i < 60;  i++)
    		byCRC += szSerialKey[ i];
    
    	if ( byCRC != szSerialKey[ MAX_BUF - 2])
    	{
    		mlog( "Serialkey error : 205\n");
    		return false;
    	}
    
    
    	// Decoding
    	int nPos = szSerialKey[ 60] % 10;
    	for ( int i = 0;  i < 20;  i++)
    	{
    		int nAbsPos = (int)((i / 10) * 10) + nPos;
    
    		szTime[ nAbsPos]        = (char)szSerialKey[      nAbsPos];
    		szDiskSerial[ nAbsPos]  = (char)szSerialKey[ 20 + nAbsPos];
    		szData[ nAbsPos]        = (char)szSerialKey[ 40 + nAbsPos];
    
    		nPos = ( nPos + 3) % 10;
    	}
    
    
    	// Check time
    	DWORD dwTime = atodw( szTime);
    	DWORD dwCurrTime = timeGetTime();
    	if ( (DWORD)atodw( szTime) < timeGetTime())
    	{
    		mlog( "Serialkey error : 206\n");
    		return false;
    	}
    
    
    	// Check serial number
    	char szDiskLabel[ 128];
    	char szFileSysName[ 128];
    	DWORD dwDiskSerial;
    	DWORD dwMaxNameLength = 0; 
    	DWORD dwFileSystemFlags = 0;
    	char szDirectory[ 256];
    	GetCurrentDirectory( sizeof( szDirectory), szDirectory);
    	szDirectory[ 3] = 0;
    	GetVolumeInformation( szDirectory, szDiskLabel, sizeof(szDiskLabel)-1, &dwDiskSerial,
    														&dwMaxNameLength,
    														&dwFileSystemFlags,
    														szFileSysName,
    														sizeof( szFileSysName) - 1);
    
    	if ( (DWORD)atodw( szDiskSerial) != dwDiskSerial)
    	{
    		mlog( "Serialkey error : 207\n");
    		return false;
    	}
    
    
    	// Check Data
    	if ( strcmp( szData, DATA_MSG_INTERNATIONAL) == 0)
    		return GLE_LAUNCH_INTERNATIONAL;
    	else if ( strcmp( szData, DATA_MSG_LAUNCHDEV) == 0)
    		return GLE_LAUNCH_DEVELOP;
    	else if ( strcmp( szData, DATA_MSG_TEST) == 0)
    		return GLE_LAUNCH_TEST;
    
    
    	mlog( "Serialkey error : 208\n");
    	return false;
    }
    Like Button :3



Advertisement