Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-2024, 16:53
Mr.Leng Mr.Leng is offline
Friend
 
Join Date: Sep 2023
Posts: 5
Rept. Given: 0
Rept. Rcvd 4 Times in 3 Posts
Thanks Given: 1
Thanks Rcvd at 15 Times in 5 Posts
Mr.Leng Reputation: 4
Bug fixes for EnigmaHardwareID source code

Posts
https://forum.exetools.com/showthread.php?t=20765

Error in retrieving hardware serial number in Windows 7 virtual machine.Error in function void GetHDDString().

My modification method:

void RemoveParentheses(char* str)
{
char* dest = str;
for (char* src = str; *src != '\0'; ++src) {
if (*src != '(' && *src != ')') {
*dest = *src;
++dest;
}
}
*dest = '\0';
}
--------------------------------------------------------------------------
----------------------Keep the original code logic unchanged------------
----------------------add code-----------------------------------------
StringLen2 = strlen(bytes_values);
for (i = 0; i < StringLen2; i += 2) // reverse chars
{
char firstChar = bytes_values[i];
char SecondChar = bytes_values[i + 1];
if (SecondChar != 0)
{
bytes_values[i + 1] = firstChar;
bytes_values[i] = SecondChar;
}
}
strcat_s(HDDStr, bytes_values);

//add code
RemoveParentheses(HDDStr);
}
else
strcat_s(HDDStr, SecondString);

//add code
RemoveParentheses(HDDStr);
--------------------------------------------------------------------------
----------------------Keep the original code logic unchanged------------

Last edited by Mr.Leng; 04-20-2024 at 17:01.
Reply With Quote
The Following User Gave Reputation+1 to Mr.Leng For This Useful Post:
user1 (04-23-2024)
The Following 4 Users Say Thank You to Mr.Leng For This Useful Post:
niculaita (04-21-2024), tonyweb (04-24-2024), user1 (04-23-2024), wx69wx2023 (04-22-2024)
  #2  
Old 04-22-2024, 05:55
Ayumi Ayumi is offline
Banned User
 
Join Date: Oct 2023
Posts: 23
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 4
Thanks Rcvd at 29 Times in 12 Posts
Ayumi Reputation: 1
This fix also works for Windows 8 in virtual machine (not need for 8.1)
Reply With Quote
  #3  
Old 04-22-2024, 08:40
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 821
Rept. Given: 46
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 730
Thanks Rcvd at 1,136 Times in 527 Posts
chants Reputation: 51
Quote:
Originally Posted by Ayumi View Post
This fix also works for Windows 8 in virtual machine (not need for 8.1)
Tyro, I'm not sure there is much relevance to Win8/8.1 anymore:
Quote:
https://gs.statcounter.com/os-version-market-share/windows/desktop/worldwide
It's basically less than 1% or computers, more use Win7 by far than Win8. Generally Win10/11 are most important and in rarer cases 7. Perhaps you use old software and are a mere fledgling when it comes to modern OS but I'd encourage updating if only for security updates.
Reply With Quote
  #4  
Old 04-23-2024, 16:10
CodeCracker CodeCracker is offline
VIP
 
Join Date: Jun 2011
Posts: 625
Rept. Given: 38
Rept. Rcvd 555 Times in 210 Posts
Thanks Given: 33
Thanks Rcvd at 2,927 Times in 501 Posts
CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699
@Mr.Leng: Many thanks for bug report.
let me know if problems was solved in uploaded.
https://workupload.com/file/ydhLR2XhpHQ
https://workupload.com/file/JdqjhJtqTkK
Reply With Quote
The Following User Says Thank You to CodeCracker For This Useful Post:
tonyweb (04-24-2024)
  #5  
Old 04-28-2024, 14:23
NON NON is offline
Banned User
 
Join Date: Sep 2023
Posts: 77
Rept. Given: 2
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 30
Thanks Rcvd at 21 Times in 16 Posts
NON Reputation: 2
Not work for Windows 7 SP1 in virtual machine (64-bit).
Reply With Quote
Reply

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
EnigmaHardwareID CodeCracker Community Tools 8 03-23-2024 18:39
VB6 N-CODE - Stop any servive and Start any APP-Release and Source Code wilson bibe General Discussion 5 04-10-2013 00:23


All times are GMT +8. The time now is 15:14.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2025 )