![]() |
Quote:
|
Quote:
|
Quote:
Quote:
|
1 Attachment(s)
I think a reading version of the registry does not work properly if you don't have a video card.
I created a version with both options in inno setup, if the result of the WMI verification is less than 0 (Negative value) it checks the registry. |
Quote:
|
Quote:
|
Quote:
Quote:
Code:
GpuName: Intel(R) HD Graphics 4600 |
Quote:
|
Quote:
Quote:
|
GpuName: NVIDIA GeForce GTX 1060 6GB
VRam: -1 MB use Int64 |
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 |
| All times are GMT -7. The time now is 23:00. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com