Help me please

09/18/2014 21:22 GemeosBSVIP#1
Could you help me set up this foundation HWID in DLL?

Code:
if (_reason == DLL_PROCESS_ATTACH)
	{
		
		HW_PROFILE_INFO hwProfileInfo;


		if(GetCurrentHwProfile(&hwProfileInfo) != NULL){
			char *cHWID = "{846ee340-7039-11de-9d20-806e6f6e6963}";
			char *cHWID2 = hwProfileInfo.szHwProfileGuid;
			MessageBox(0,cHWID2,cHWID,0);


			printf("Hardware GUID: %s\n", hwProfileInfo.szHwProfileGuid);
			printf("Hardware Profile: %s\n", hwProfileInfo.szHwProfileName);

			//if(strcmp(hwProfileInfo.szHwProfileGuid, cHWID)){
			if(mystrcmp(cHWID2, cHWID)){
				MessageBoxA(0,"HWID Checked","",0);
				printf("Hardware ID check passed.\n");
			}else{
				HGLOBAL hText;
				char *pText;
				hText = GlobalAlloc(GMEM_DDESHARE|GMEM_MOVEABLE, 100);
				pText = (char*)GlobalLock(hText);
				strcpy(pText, hwProfileInfo.szHwProfileGuid);
				GlobalUnlock(hText);
 
				OpenClipboard(NULL);
				EmptyClipboard();
				SetClipboardData(CF_TEXT, hText);
				CloseClipboard();
				MessageBoxA(0, TEXT("HWID detection failed !!!\n HWID copyied to Clipboard! \n Bye"),"Information",0);

			}
		}else{
			return 0;
		}
			
	}
09/18/2014 21:25 Omdi#2
Here you go :)!
[Only registered and activated users can see links. Click Here To Register...]
09/18/2014 21:38 Terrat#3
Quote:
Originally Posted by GemeosBSVIP View Post
Could you help me set up this foundation HWID in DLL?

Code:
if (_reason == DLL_PROCESS_ATTACH)
	{
		
		HW_PROFILE_INFO hwProfileInfo;


		if(GetCurrentHwProfile(&hwProfileInfo) != NULL){
			char *cHWID = "{846ee340-7039-11de-9d20-806e6f6e6963}";
			char *cHWID2 = hwProfileInfo.szHwProfileGuid;
			MessageBox(0,cHWID2,cHWID,0);


			printf("Hardware GUID: %s\n", hwProfileInfo.szHwProfileGuid);
			printf("Hardware Profile: %s\n", hwProfileInfo.szHwProfileName);

			//if(strcmp(hwProfileInfo.szHwProfileGuid, cHWID)){
			if(mystrcmp(cHWID2, cHWID)){
				MessageBoxA(0,"HWID Checked","",0);
				printf("Hardware ID check passed.\n");
			}else{
				HGLOBAL hText;
				char *pText;
				hText = GlobalAlloc(GMEM_DDESHARE|GMEM_MOVEABLE, 100);
				pText = (char*)GlobalLock(hText);
				strcpy(pText, hwProfileInfo.szHwProfileGuid);
				GlobalUnlock(hText);
 
				OpenClipboard(NULL);
				EmptyClipboard();
				SetClipboardData(CF_TEXT, hText);
				CloseClipboard();
				MessageBoxA(0, TEXT("HWID detection failed !!!\n HWID copyied to Clipboard! \n Bye"),"Information",0);

			}
		}else{
			return 0;
		}
			
	}
I going to die you copied my code 1 to 1 from my thread and mr smith posted the fix there #close
Next time make it self or copy a bit because i think you c and p it only :)
09/18/2014 21:42 snow#4
Quote:
Originally Posted by Dreamsläps View Post
I going to die you copied my code 1 to 1 from my thread and mr smith posted the fix there #close
^this.
Oh, and it was Omdihar, not Smith. :p

#closed