Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #76  
Old 30-03-2016, 08:18
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 947 Times in 233 Posts
peterf1999 is on a distinguished road
GetSysInfo procedure replaced by:

Code:
function GetCpuName: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetCpuMaxClockSpeed: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetCpuCurrentClockSpeed: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetCpuManufacturer: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetCpuPhysicalCores: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetCpuLogicalCores: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetGpuName: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetGpuRam: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetVideoDescription: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetHorizontalResolution: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetVerticalResolution: PAnsichar; external 'GetVerticalResolut[email protected]:Isab.dll stdcall delayload';
function GetRefreshRate: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetAudioDeviceName: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetTotalVisibleMemory: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetFreePhysicalMemory: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetOSName: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetOSVersionMajor: Cardinal; external '[email protected]:Isab.dll stdcall delayload';
function GetOSVersionMinor: Cardinal; external '[email protected]:Isab.dll stdcall delayload';
function GetOSBuildNumbers: Cardinal; external '[email protected]:Isab.dll stdcall delayload';
function GetServicePackMajorVersion: Word; external '[email protected]:Isab.dll stdcall delayload';
function GetServicePackMinorVersion: Word; external '[email protected]:Isab.dll stdcall delayload';
function GetOSArchitecture: Byte; external '[email protected]:Isab.dll stdcall delayload';
Reply With Quote
The Following 7 Users Say Thank You to peterf1999 For This Useful Post:
altef_4 (30-03-2016), arkantos7 (30-03-2016), BAMsE (31-03-2016), RamiroCruzo (30-03-2016), Razor12911 (30-03-2016), Simorq (01-12-2017), y_thelastknight (07-04-2016)
Sponsored Links
  #77  
Old 30-03-2016, 10:09
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 357
Thanks: 244
Thanked 905 Times in 232 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by peterf1999 View Post
GetSysInfo procedure replaced by:

Code:
function GetCpuName: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetCpuMaxClockSpeed: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetCpuCurrentClockSpeed: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetCpuManufacturer: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetCpuPhysicalCores: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetCpuLogicalCores: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetGpuName: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetGpuRam: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetVideoDescription: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetHorizontalResolution: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetVerticalResolution: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetRefreshRate: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetAudioDeviceName: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetTotalVisibleMemory: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetFreePhysicalMemory: integer; external '[email protected]:Isab.dll stdcall delayload';
function GetOSName: PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
function GetOSVersionMajor: Cardinal; external '[email protected]:Isab.dll stdcall delayload';
function GetOSVersionMinor: Cardinal; external '[email protected]:Isab.dll stdcall delayload';
function GetOSBuildNumbers: Cardinal; external '[email protected]:Isab.dll stdcall delayload';
function GetServicePackMajorVersion: Word; external '[email protected]:Isab.dll stdcall delayload';
function GetServicePackMinorVersion: Word; external '[email protected]:Isab.dll stdcall delayload';
function GetOSArchitecture: Byte; external '[email protected]:Isab.dll stdcall delayload';
You can try to use interfaces instead creating so many exported functions (but only for unicode version)
Reply With Quote
The Following 2 Users Say Thank You to altef_4 For This Useful Post:
peterf1999 (30-03-2016), Simorq (01-12-2017)
  #78  
Old 30-03-2016, 10:25
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 947 Times in 233 Posts
peterf1999 is on a distinguished road
Quote:
Originally Posted by altef_4 View Post
You can try to use interfaces instead creating so many exported functions (but only for unicode version)
I know, but I used the old procedure getsysinfo to retrieve values. It was the fastest way
Reply With Quote
  #79  
Old 01-04-2016, 11:35
BAMsE's Avatar
BAMsE BAMsE is offline
The World Is Yener's
 
Join Date: Mar 2011
Location: in front of the monitor
Posts: 358
Thanks: 49
Thanked 266 Times in 89 Posts
BAMsE is on a distinguished road
peterf1999 there was a problem with GetSysInfo (not tested with current version, but I think it will be too) on rigs with more than one graphic adapter
Reply With Quote
  #80  
Old 02-04-2016, 04:31
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 947 Times in 233 Posts
peterf1999 is on a distinguished road
Quote:
Originally Posted by BAMsE View Post
peterf1999 there was a problem with GetSysInfo (not tested with current version, but I think it will be too) on rigs with more than one graphic adapter
Which function (GetGpuName/GetGpuRam) fails?
Reply With Quote
  #81  
Old 02-04-2016, 17:22
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 430
Thanks: 101
Thanked 611 Times in 186 Posts
rinaldo is on a distinguished road
__________________
if you understand read more
Reply With Quote
  #82  
Old 03-04-2016, 05:28
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 947 Times in 233 Posts
peterf1999 is on a distinguished road
  • Renamed 'GetFileSHA1' function to 'GetFileHash'.
  • function prototype changes.
  • Added support for SHA512(SHA-2) hash algorithm to both functions (GetFileHash, CheckFileHash).
Code:
const
  DCP_MD5 = 1;
  DCP_SHA1 = 2;
  DCP_SHA256 = 4; // SHA-2
  DCP_SHA512 = 8; //SHA-2
Code:
function GetFileHash(const Filename: PAnsichar; const DCP_Hash: integer): PAnsichar; external '[email protected]:Isab.dll stdcall delayload';
Reply With Quote
The Following 4 Users Say Thank You to peterf1999 For This Useful Post:
arkantos7 (06-04-2016), Razor12911 (09-04-2016), Simorq (14-09-2017), y_thelastknight (07-04-2016)
  #83  
Old 06-04-2016, 07:51
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 947 Times in 233 Posts
peterf1999 is on a distinguished road
  • Renamed 'GetGpuRam' function to 'GetGpuVRam'.
  • Optimized WMI code and queries for faster retrieval of values.
  • Now the gpu's functions should work on multi-gpu configuration.
Reply With Quote
The Following 4 Users Say Thank You to peterf1999 For This Useful Post:
arkantos7 (06-04-2016), Razor12911 (09-04-2016), Simorq (14-09-2017), y_thelastknight (07-04-2016)
  #84  
Old 04-05-2016, 01:36
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 947 Times in 233 Posts
peterf1999 is on a distinguished road
SystemInfo (ISab.dll v0.1.0.4):
  • GetGpuName function returns all vga adapters (running and off line)
Attached Files
File Type: rar SystemInfo_ISab_v0.1.0.4.rar (627.4 KB, 109 views)

Last edited by peterf1999; 05-05-2016 at 00:56.
Reply With Quote
The Following 4 Users Say Thank You to peterf1999 For This Useful Post:
arkantos7 (04-05-2016), ffmla (27-08-2016), RamiroCruzo (04-05-2016), Simorq (14-09-2017)
  #85  
Old 10-04-2017, 05:02
nizcoz nizcoz is offline
Registered User
 
Join Date: Apr 2016
Location: argentina
Posts: 53
Thanks: 2
Thanked 1 Time in 1 Post
nizcoz is on a distinguished road
Somebody can upload an example code to use this library to check hash after installation? Thanks!
Reply With Quote
  #86  
Old 24-05-2017, 02:26
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is online now
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 6,834
Thanks: 2,658
Thanked 7,718 Times in 2,751 Posts
pakrat2k2 is on a distinguished road
Quote:
Originally Posted by peterf1999 View Post
SystemInfo (ISab.dll v0.1.0.4):
  • GetGpuName function returns all vga adapters (running and off line)
still reports gpuram incorrectly, says on amd 8gb its has only 4gb
Reply With Quote
  #87  
Old 30-11-2017, 09:26
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 947 Times in 233 Posts
peterf1999 is on a distinguished road
@mods
Please delete this thread.
Reply With Quote
  #88  
Old 30-11-2017, 09:50
Gupta Gupta is offline
Registered User
 
Join Date: Aug 2016
Location: India
Posts: 351
Thanks: 122
Thanked 537 Times in 197 Posts
Gupta is on a distinguished road
this thread is good for reading purposes, may be good to lock it rather
__________________
XD
Reply With Quote
The Following User Says Thank You to Gupta For This Useful Post:
ffmla (02-12-2017)
  #89  
Old 01-12-2017, 16:00
Grumpy's Avatar
Grumpy Grumpy is offline
Moderator
 
Join Date: Jun 2004
Location: Australia
Posts: 5,279
Thanks: 651
Thanked 1,124 Times in 479 Posts
Grumpy is on a distinguished road
Quote:
Originally Posted by peterf1999 View Post
@mods
Please delete this thread.
Why Peter? It is a very useful thread and you have put a lot of work into it, I can not see any point in Deleting it entirely, I could Lock the thread for you?
__________________
Can't find a Game Conversion? Check the 'Conversion INDEX'
Reply With Quote
The Following 2 Users Say Thank You to Grumpy For This Useful Post:
Cesar82 (10-07-2018), Simorq (01-12-2017)
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inno Setup: Additional Libraries altef_4 Conversion Tutorials 47 16-08-2018 11:16
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 125 13-03-2016 18:39
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Tutorial using CI 8.0.0 yener90 Conversion Tutorials 424 21-10-2014 09:49



All times are GMT -7. The time now is 14:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Copyright 2000-2018, FileForums @ https://fileforums.com