FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   ISSysUtils (https://fileforums.com/showthread.php?t=99184)

Razor12911 12-05-2017 16:35

ISSysUtils
 
1 Attachment(s)
Offers system detection, might work for people with GPU RAM more than 4GB.

Code:

function CPUName:String;
  external 'CPUName@files:ISSysUtils.dll cdecl';
function CPUCores:Integer;
  external 'CPUCores@files:ISSysUtils.dll cdecl';
function CPUThreads:Integer;
  external 'CPUThreads@files:ISSysUtils.dll cdecl';
function CPUSpeed:Integer;
  external 'CPUSpeed@files:ISSysUtils.dll cdecl';
function RAMSize(Physical: Boolean):Integer;
  external 'RAMSize@files:ISSysUtils.dll cdecl';
function GPUName:String;
  external 'GPUName@files:ISSysUtils.dll cdecl';
function GPUSize:Integer;
  external 'GPUSize@files:ISSysUtils.dll cdecl';
function OSName:String;
  external 'OSName@files:ISSysUtils.dll cdecl';
function OSBuild:Integer;
  external 'OSBuild@files:ISSysUtils.dll cdecl';


KaktoR 12-05-2017 17:31

1 Attachment(s)
I got an error right after CPU info

KaktoR 12-05-2017 17:39

1 Attachment(s)
I just deleted functions for RAM, compiled again, same error.
Then deleted both, CPU + RAM functions, it works.

Razor12911 12-05-2017 17:47

Quote:

Originally Posted by KaktoR (Post 458751)
I just deleted functions for RAM, compiled again, same error.
Then deleted both, CPU + RAM functions, it works.

finally!

Cesar82 13-05-2017 08:38

Error in run function CPUName.
If you use the CPUName function, an error (Acess violation at address error) occurs while executing a next function.

If you do not use the CPUName function, the other functions work perfectly.

Tested on hardware:
OS: Windows 7 Ultimate
CPU: i7 3770
GPU: GTX 970 (4 GB VRAM)
RAM: 24 GB DDR3

unarc 125 13-05-2017 22:42

1 Attachment(s)
Different error for me
Using:
Win 7 64bit SP1

KaktoR 14-05-2017 04:48

Can't get it to work with only GPUSize (CIU Script).

All informations are correct.

I could use ISSysUtils.dll for all hw checks only but there are errors (see above).

Until it get fixed i must still use hw_caps dll.

PS: Have also used ISab.dll from peterf but there it's still 4.0GB GpuVRam.

peterf1999 14-05-2017 05:51

3 Attachment(s)
Quote:

Originally Posted by KaktoR (Post 458782)
PS: Have also used ISab.dll from peterf but there it's still 4.0GB GpuVRam.

ISSysInfo.dll v0.1.9.7

Attachment 18310
Attachment 18312
  • GetDirectXVersion returns an extended floating point value instead a null terminated ansistring.
  • GetGpuVRam should work now on dedicated Videocard with Vram > 4gb.

KaktoR 14-05-2017 05:54

Thanks.

Have to rebuild some of the code in script.

pakrat2k2 24-05-2017 02:44

weird peterf's script returns incorrect value for my rx480 8gb, razors script reported it correct.

just added to script & an icon file, right under defaultdirname line
compiles without error. now to add ISSysUtils.dll to CIUV2
Code:

DefaultDirName={pf}\SysUtils example
OutputDir=.\Output\
DefaultGroupName=no
DisableDirPage=yes
DisableFinishedPage=yes
DisableProgramGroupPage=yes
DisableReadyPage=yes
DiskSpanning=yes
SlicesPerDisk=1
DiskSliceSize=2000000000
DiskClusterSize=4096
ReserveBytes=0
Compression=LZMA2/Ultra64
SolidCompression=yes
OutputBaseFilename=setup
SetupIconFile=icon.ico


peterf1999 24-05-2017 03:07

Quote:

Originally Posted by pakrat2k2 (Post 459095)
weird peterf's script returns incorrect value for my rx480 8gb, razors script reported it correct.

Post your registry file under HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Vi deo\{GUID}\0000 where HardwareInformation.ChipType value matchs your videocard

KaktoR 24-05-2017 03:09

I have a rx480 8gb too and for me it displays correct.

Gupta 24-05-2017 05:40

1 Attachment(s)
>> GetDirectXVersion returns an extended floating point value instead a null terminated ansistring.

Doesn't work :
Attachment 18432

pakrat2k2 24-05-2017 06:27

Quote:

Originally Posted by peterf1999 (Post 459096)
Post your registry file under HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Vi deo\{GUID}\0000 where HardwareInformation.ChipType value matchs your videocard

HardwareInformation.ChipType

41 00 54 00 49 00 20 00 45 00 53 00 31 00 30 00 30 00 30 00 00 00

KaktoR 24-05-2017 06:32

@pakrat: Why is mine different than yours?


All times are GMT -7. The time now is 23:15.

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