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?

peterf1999 24-05-2017 06:41

Quote:

Originally Posted by pakrat2k2 (Post 459103)
HardwareInformation.ChipType

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

post file.reg from that entry, I need all values.

pakrat2k2 24-05-2017 06:48

Sapphire Rx 480 Nitro+ 8GB ( from box itself ) ??

peterf1999 24-05-2017 06:49

Quote:

Originally Posted by PrinceGupta2000 (Post 459099)
>> GetDirectXVersion returns an extended floating point value instead a null terminated ansistring.

Doesn't work :
Attachment 18432

You must convert a floating value to a string (e.g.):
Format('%.1n',[GetDirectXVersion(Dx_Sys)]);

pakrat2k2 24-05-2017 06:53

Quote:

Originally Posted by peterf1999 (Post 459105)
post file.reg from that entry, I need all values.

Code:


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Video\{F92BFB9B-59E9-4B65-8AA3-D004C26BA193}\0000]
"HighResBootCompatible"=dword:00000000
"InstalledDisplayDrivers"=hex(7):76,00,67,00,61,00,00,00,66,00,72,00,61,00,6d,\
  00,65,00,62,00,75,00,66,00,00,00,76,00,67,00,61,00,32,00,35,00,36,00,00,00,\
  76,00,67,00,61,00,36,00,34,00,6b,00,00,00,00,00
"VgaCompatible"=dword:00000001
"Device Description"="Standard VGA Graphics Adapter"
"HardwareInformation.ChipType"=hex:41,00,54,00,49,00,20,00,45,00,53,00,31,00,\
  30,00,30,00,30,00,00,00
"HardwareInformation.AdapterString"=hex:56,00,47,00,41,00,00,00
"HardwareInformation.DacType"=hex:38,00,20,00,62,00,69,00,74,00,00,00
"HardwareInformation.BiosString"=hex:30,00,31,00,2e,00,30,00,30,00,00,00
"HardwareInformation.MemorySize"=hex:00,00,00,01


peterf1999 24-05-2017 07:00

Quote:

Originally Posted by pakrat2k2 (Post 459109)
Code:


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Video\{F92BFB9B-59E9-4B65-8AA3-D004C26BA193}\0000]
"HighResBootCompatible"=dword:00000000
"InstalledDisplayDrivers"=hex(7):76,00,67,00,61,00,00,00,66,00,72,00,61,00,6d,\
  00,65,00,62,00,75,00,66,00,00,00,76,00,67,00,61,00,32,00,35,00,36,00,00,00,\
  76,00,67,00,61,00,36,00,34,00,6b,00,00,00,00,00
"VgaCompatible"=dword:00000001
"Device Description"="Standard VGA Graphics Adapter"
"HardwareInformation.ChipType"=hex:41,00,54,00,49,00,20,00,45,00,53,00,31,00,\
  30,00,30,00,30,00,00,00
"HardwareInformation.AdapterString"=hex:56,00,47,00,41,00,00,00
"HardwareInformation.DacType"=hex:38,00,20,00,62,00,69,00,74,00,00,00
"HardwareInformation.BiosString"=hex:30,00,31,00,2e,00,30,00,30,00,00,00
"HardwareInformation.MemorySize"=hex:00,00,00,01


Standard VGA Graphics Adapter???

It's a bad entry!

Are you sure your videocard drivers are installed properly?

Download Display Driver Uninstaller DDU from http://www.guru3d.com/files-details/...-download.html and then re-install the amd drivers

KaktoR 24-05-2017 07:05

Maybe this helps you out better, peter.

Gupta 24-05-2017 07:15

Quote:

Originally Posted by peterf1999 (Post 459107)
You must convert a floating value to a string (e.g.):
Format('%.1n',[GetDirectXVersion(Dx_Sys)]);

Sorry for the inconvenience forgot to replace old dll with new one everything is resolved and working

peterf1999 24-05-2017 07:17

Quote:

Originally Posted by KaktoR (Post 459111)
Maybe this helps you out better, peter.

@KaktoR
Your drivers are installed properly, instead Pakrat must install the drivers properly!

KaktoR 24-05-2017 07:31

Okay, if i understand right, pakrat must reinstall drivers to get rid of the problem.

Thanks-

pakrat2k2 24-05-2017 08:08

Quote:

Originally Posted by peterf1999 (Post 459113)
@KaktoR
Your drivers are installed properly, instead Pakrat must install the drivers properly!

Uninstalled rebooted & reinstalled now displays 8GB properly. Really strange as I had used driver uninstaller before I installed new card ??

peterf1999 24-05-2017 08:26

Quote:

Originally Posted by pakrat2k2 (Post 459116)
Uninstalled rebooted & reinstalled now displays 8GB properly. Really strange as I had used driver uninstaller before I installed new card ??

It is always a good idea to uninstall old drivers with new gpu :D

pakrat2k2 24-05-2017 08:49

I thought I had but I guess not good enough. Thanks for the program.

romulus_ut3 24-05-2017 14:08

Might be slightly in the off topic zone, but here's my two cents.

If you're going to update your display driver, the best practice is to NOT update it over your existing installation.

Simply uninstall your current display driver, Reboot, then install the newer/latest driver.

In case you're having issues with a certain display driver, you may want to uninstall your existing driver installation first from the add/remove programs, then grab the latest version of DDU (Display Driver Uninstaller by Wagnard) and let it reboot into safe mode (this tool allows you to do it) and clear out the registry remains that every driver installation leaves behind. This is essential if you want to clean install your drivers. Once DDU is done clearing out the remains of the previous driver, select restart from within DDU, it'll boot you back into normal mode, and install the latest driver as you'd normally do.

Just uninstalling and installing the latest update let's you use your customized profile/settings for games you may have done, which can cause conflicts at times as drivers have many branches of development and a certain branch may not be fully compatible with your customization. The clean install method ensures that this doesn't happen.

pakrat2k2 24-05-2017 15:57

thanks already fixed, but handy to have info, if anyone else runs into issues.


All times are GMT -7. The time now is 06:07.

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