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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-02-2016, 11:43
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Changes:
  • Renamed 'CheckFileSHA1' function to 'CheckFileHash'.
  • function prototype changes.
  • Added support for MD5, SHA256(SHA-2) hash algorithms.
Code:
const
  DCP_MD5 = 1;
  DCP_SHA1 = 2;
  DCP_SHA256 = 4; // SHA-2

Type
THashProgress = function(OverallProgress,FileProgress: Integer): Boolean;

function CheckFileHash(const Filename,HashHex: PAnsichar; PctOfTotal: integer; callback: THashProgress; DCP_Hash: integer): integer; external 'CheckFileHash@files:Isab.dll stdcall delayload';
Function return codes:

0: All OK.
-1: Hash check aborted.
-2: File hash does not match.
-3: Source File not found.
-4: Bad flag argument.

Last edited by peterf1999; 14-02-2016 at 09:28.
Reply With Quote
The Following 5 Users Say Thank You to peterf1999 For This Useful Post:
altef_4 (12-02-2016), arkantos7 (12-02-2016), Carldric Clement (13-02-2016), Razor12911 (17-02-2016), y_thelastknight (07-04-2016)
Sponsored Links
  #2  
Old 02-03-2016, 05:48
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Changes: v0.0.9.0:

Added the following procedure/function to dll:
Code:
procedure SetBtnPosSize(BtnIdx,X,Y,Height,Width: integer); external 'SetBtnPosSize@files:Isab.dll stdcall delayload';
procedure GetBtnPosSize(BtnIdx: integer; var X,Y,Height,Width: integer); external 'GetBtnPosSize@files:Isab.dll stdcall delayload';
procedure SetBtnCaption(BtnIdx,CaptionLeftOffset,CaptionTopOffset: integer; const Caption, FontName: Pansichar; Size: integer; const FontStyle: integer; AntiAlias,Shadow: boolean); external 'SetBtnCaption@files:Isab.dll stdcall delayload';
function GetBtnCaption(BtnIdx: integer): PAnsichar; external 'GetBtnCaption@files:Isab.dll stdcall delayload';
procedure SetBtnCaptionColor(BtnIdx:integer; DefaultCaptionARGB, HoverCaptionARGB, LBtnDownCaptionARGB, DisabledCaptionARGB,ShadowCaptionARGB :Cardinal); external 'SetBtnCaptionColor@files:Isab.dll stdcall delayload';
Attached Files
File Type: 7z example.7z (826.5 KB, 74 views)
Reply With Quote
The Following 3 Users Say Thank You to peterf1999 For This Useful Post:
altef_4 (02-03-2016), arkantos7 (02-03-2016), Razor12911 (06-03-2016)
  #3  
Old 12-03-2016, 08:01
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Added the following function to dll:

Code:
function GetDirectXVersion: Pansichar; external 'GetDirectXVersion@files:Isab.dll stdcall delayload';
Reply With Quote
The Following 4 Users Say Thank You to peterf1999 For This Useful Post:
altef_4 (12-03-2016), arkantos7 (12-03-2016), RamiroCruzo (13-03-2016), y_thelastknight (07-04-2016)
  #4  
Old 14-03-2016, 11:32
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Changes v.0.0.9.2:
  • GetDirectXVersion function prototype changes.
Code:
const
  Dx_Gpu = 1; // DirectX supported by GPU
  Dx_Sys = 2; // DirectX installed on system

function GetDirectXVersion(const F_Dx: integer): Pansichar; external 'GetDirectXVersion@files:Isab.dll stdcall delayload';
Windows 7 Ultimate x64:

W7.PNG

Windows 10 Pro x64:

W10.JPG
Attached Files
File Type: 7z GetSysInfo_GetDirectXVersion.7z (620.2 KB, 79 views)
Reply With Quote
The Following 4 Users Say Thank You to peterf1999 For This Useful Post:
altef_4 (16-03-2016), arkantos7 (15-03-2016), BAMsE (23-03-2016), y_thelastknight (07-04-2016)
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
Inno Setup: Additional Libraries altef_4 Conversion Tutorials 50 21-10-2020 09:59
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 18:53.


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