![]() |
2 Attachment(s)
I wonder what it is that you're doing wrong bro but here is another place in regedit where you can get GPU info for all GPUs installed.
|
Quote:
This GUID is variable from system to system. Here there are 6 GUIDs with DedicatedVideoMemory values, one of which is from the ON-BOARD video card. But the GUID bears no resemblance to those of your images. https://i.imgur.com/vXXrx3Z.png How to identify the correct GUID to obtain the video value? Would this method work with older operating systems like WindowsXP or Vista, 7, etc? I could make a list and search all GUIDs until I found a value other than 0, but how do I know if it would be the correct GUID? The value in DedicatedVideoMemory is not correct here. It should be 4 GB but it results 4239917056 = 4043.5 MB = 3.94 GB. |
1 Attachment(s)
Quote:
SOFTWARE\Microsoft\DirectX\ - DirectX is a clue so one has to go on msdn which is here https://docs.microsoft.com/en-us/win...i_adapter_desc https://stackoverflow.com/questions/...r-amd/56599035 Also found this Visual Basic code so I translated it to pascal so here Code:
usesQuote:
Quote:
|
@Razor12911
If possible, share the compiled executable for me to check here. I changed the code to use with Delphi 2010 (I only have this version installed), but in the Delphi 2010 version it does not have uses DXGI, so I include this DXGI from the link The results here were well below what should be displayed (3584 MB).And in the second result he detected "Microsoft Basic Render Driver (0 MB)" I don't know if I did something wrong or the DXGI I used doesn't work, so if possible share the exe for me to compare. Thanks! |
2 Attachment(s)
there
edit: something I'm only realizing now XD, this method might have issues because it is SIZE_T that is being used which is an equivalent to NativeInt in Delphi. NativeInt in x86 is actually a 32-bit integer, however this can be fixed by merging this code to the same idea I shared earlier about the same info being available on registry here |
You have correctly displayed the value of the main video card.
https://i.imgur.com/RsCj6ED.png Did not detect Intel (R) HD Graphics 4000 https://i.imgur.com/p8fz5yS.png Did something go wrong with my adaptation? Or maybe the DXGI I used doesn't work for that. Code:
uses |
I don't understand the basics are here https://docs.microsoft.com/en-us/win...ideocontroller in the WMI class, because used DX structures, also I think that only the primary vga that is used is of interest.
Code:
Name_GPU.Text = "GPU Name : " & GPU_Name() |
Quote:
Only for that reason the matter continues. |
2 Attachment(s)
try this one, you can remove the DXGI code if you having issues and just use the registry. Should produce the same results.
Code:
uses |
1 Attachment(s)
Thanks @Razor12911
I just didn't understand one thing ... In your code above, the registration information overlaps the GDXI values (if parametter UseDXGI = true). Shouldn't there be an "end else" in place of "end;"? Code:
inc(i);Thanks again Razor12911 for the code, it's working perfectly, especially the version using registry that also detects the ON-BOARD video card. |
I made it to work like that for a reason. Remember you said your intel you was not detected. So after dxgi is done detecting gpus using its methods, if any gpus were missed then registry code adds the remaining gpus. This is why I didn’t use “else”.
But then you might say why not just get rid of dxgi if doesn’t detect all gpus. Here is why, registry skips gpus with names that have already been detected which means if SLi/Crossfire was used, registry method will not be able to detect this but dxgi will be able to. While dxgi has issues of detecting intel gpu, registry helps dxgi Plus we have no idea if the same registry idea works on older operating systems so it’s best to have both methods working together So you can see why both code have to exist because they nullify the disadvantages they both have, furthermore. Dxgi has issues detecting gpu size in x86 because the value type used in x86 has the same issue as with wmi adapterram where gpu over 4gb is misread. Tl;dr both code help mitigate their own disadvantages so the code works flawlessly |
@Razor12911
Now I understand. Thanks! There will only be differences in the results checking or not DXGI if you use SLI/Crossfire. |
SysInfo Library 2
2 Attachment(s)
SysInfo Library 2 Added:
Thanks Cesar82, Razor12911 ... who helped. |
1 Attachment(s)
Quote:
It seems to be working perfectly. For those who have Inno Setup 6 installed and do not have the knowledge to change the script and want to do the test, I attached to this post the script adapted for Inno Setup 6.0 or newer. |
Quote:
|
Quote:
|
1 Attachment(s)
Quote:
|
Quote:
|
1 Attachment(s)
Quote:
|
1 Attachment(s)
Quote:
as I have same problem whenever I unplugin my earphone it shows |
1 Attachment(s)
Works fine here :p
|
1 Attachment(s)
Perfect
(Low End Pc) |
Hi is there anyone here on the forum that WILL help me.
I have asked 3 people but no one wants to help. Who can change the script from Project1 or SysInfo DLL 2 and make it into a batch script ? Project1 you have to click on a button first to read the GPU Memory, I want the GPU Memory to be read and saved on the desktop as .txt and the script preferably as a batch file. SysInfo DLL 2 also looks good, but only read out and save as .txt with a batch script. Now it's a setup and you have to click Next, I don't want to see a fixed screen at all. This would also be nice in a batch file. Detecting Graphics Adapter Data Basic Graphics Information Adapter 1 Description : NVidia RTX 2070 Super Adapter 1 Video Memory : 8.00 GB [Rounded Value]. Adapter 1 Driver Date : 2021-02-23 Adapter 1 Driver Version : 27.21.14.6172 Adapter 1 Bits Per Pixel : 32 Adapter 1 Video Mode Desc : 1920 x 1080 x 4294967296 colors Adapter 2 Intel(R) HD Graphics 4600 (128 MB) Adapter 2 Video Memory : 128 MB [Rounded Value] Adapter 2 Driver Date : 2021-02-23 Adapter 2 Driver Version : 27.21.14.6172 Adapter 2 Bits Per Pixel : 32 Adapter 2 Video Mode Desc : 1920 x 1080 x 4294967296 colors And if that's not possible, then just this, Adapter 1 Description : NVidia RTX 2070 Super Adapter 1 Video Memory : 8.00 GB [Rounded Value] Adapter 2 Intel(R) HD Graphics 4600 (128 MB) Adapter 2 Video Memory : 128 MB [Rounded Value] Display this script with read in and then save it to the desktop as a .txt Please message back if you are willing and able to make this batch script for me please, if you have the time. Then you are the best for me. Best regards |
Problem
2 Attachment(s)
1) Your dll was very good, but in the [ANSI] version, (Free Space) and (Total Space), it shows the disk size incorrectly.
2) Not working on windowsXP (X86)/(X64) |
| All times are GMT -7. The time now is 06:46. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com