Multi-OEM/Retail Project {MRP} - Mk3

Discussion in 'MDL Projects and Applications' started by mxman2k, Oct 15, 2016.

  1. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,067
    210
    QT v109.5-Test2's Graphics Section Additional Data...

    Test with VMware (win7):
    Code:
      ===============================================[ Basic Graphics Information ]===============================================
     
    Adapter 1 Description      : VMware SVGA 3D {Ref:v}
    Adapter 1 Video Memory     : 8 MiB
    Adapter 1 Driver Date      : 2016-12-13
    Adapter 1 Driver Version   : 8.15.1.50
    Adapter 1 Bits Per Pixel   : 32 
    Adapter 1 Video Mode Desc  : 1024 x 768 x 4294967296 colors 
     
    Video Ram {VRam} Notes     : The data may not always be accurate due to Windows API limitations, or if using shared RAM.
    General Notes              : Hardware that is not compatible with Windows Display Driver Model returns inaccurate values.
    WinSat Status Information  : No assessment available. Run 'WinSat Formal' from within a Admin CMD prompt first. 
    Test with Non Virtual Machine (w10):
    Code:
      ===============================================[ Basic Graphics Information ]===============================================
     
    Adapter 1 Description      : NVIDIA GeForce GTX 1050 Ti {Ref:v}
    Adapter 1 Video Memory     : 4,095 MiB {Results above 4,096 MiB cannot be shown correctly, see VRam notes}
    Adapter 1 Driver Date      : 2018-01-03
    Adapter 1 Driver Version   : 23.21.13.9065
    Adapter 1 Bits Per Pixel   : 32 
    Adapter 1 Video Mode Desc  : 1920 x 1080 x 4294967296 colors 
     
    Video Ram {VRam} Notes     : The data may not always be accurate due to Windows API limitations, or if using shared RAM.
    General Notes              : Hardware that is not compatible with Windows Display Driver Model returns inaccurate values.
    WinSat Scores {Max: 9.9}   : CPU: 8.1 | RAM: 8.1 | Graphics: 8.5 | Primary Disk: 8.2 | Base Rating: 8.1
    WinSat Status Information  : Data is valid. 
    The 'Video Mode Desc' Color's value is what is returned via the API/Wmic, so that i will leave up to you to convert it. :p

    Testing continues... :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. bundyal

    bundyal MDL Junior Member

    Jun 28, 2014
    91
    90
    0
    QT v109.5-Test2's Graphics Section Additional Data...

    ===============================================[ Basic Graphics Information ]===============================================

    Adapter 1 Description : Intel{R} HD Graphics 4600 {Ref:v}
    Adapter 1 Video Memory : 1.024 MiB
    Adapter 1 Driver Date : 2020-05-15
    Adapter 1 Driver Version : 20.19.15.5144

    Adapter 2 Description : NVIDIA GeForce RTX 2070 SUPER {Ref:v}
    Adapter 2 Video Memory : 4.095 MiB {Results above 4,096 MiB cannot be shown correctly, see VRam notes}
    Adapter 2 Driver Date : 2020-05-15
    Adapter 2 Driver Version : 26.21.14.4614
    Adapter 2 Bits Per Pixel : 32
    Adapter 2 Video Mode Desc : 1920 x 1080 x 4294967296 kleuren

    Video Ram {VRam} Notes : The data may not always be accurate due to Windows API limitations, or if using shared RAM.
    General Notes : Hardware that is not compatible with Windows Display Driver Model returns inaccurate values.
    WinSat Scores {Max: 9.9} : CPU: 9 | RAM: 9 | Graphics: 8,4 | Primary Disk: 8,05 | Base Rating: 8,05
    WinSat Status Information : Data is valid.
     
  3. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,067
    210
    The BPP/Video Mode and some other parts may not show if the adaptor is not 'active' at the time of the query.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    #6324 Carlos Detweiller, Sep 23, 2020
    Last edited: Sep 23, 2020
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,067
    210
    #6326 mxman2k, Sep 23, 2020
    Last edited: Sep 23, 2020
    (OP)
    I see it is using the WMIC method and not the vbscript one :g:, the wmic one if the ram value is not a whole amount such as 1GB, 2GB and is say 1.5GB etc then it fails, i am working on a way to work around this problem....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,067
    210
    Hopefully found a way around the odd values above Zero such as 1.5GiB etc...

    This is only for the WMIC method, but if the value returned by the API is a negative number which it can sometimes then it throws the calculations out and will set as zero (N/A) to prevent a crash, plus SET /A is limited to 32 bit operations and below zero is set as zero.

    I now use another method which can go way up to EiB, TiB, YiB , however this routine will only use the inputted value to calculate it does not obtain the value from the OS...

    Also the routine will set the returned value to zero IF the inputted amount is a negative amount.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,067
    210
    #6332 mxman2k, Sep 23, 2020
    Last edited: Sep 23, 2020
    (OP)
    Code:
    Adapter 2 Description      : Intel{R} Q45/Q43 Express Chipset {Microsoft Corporation - WDDM 1.1} {Ref:w}
    Adapter 2 Video Memory     : 1.63 GB [Rounded Value] {Results above 4 GB cannot be shown correctly, see VRam notes} 
    At least it shown the amount this time :)

    Before the old routine could not show the .63 part because SET /A only works with integers and as it had a fraction amount, it ended up being zeroed, the new routine's convert bytes program can work with fractions.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    Good enough for that edge case.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,067
    210
    I agree at least now it will show the right amount (if below 4GB/GiB) when the older wmic routine is used and like VBScript it will show the fraction part too. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,067
    210
    When i think a particular section is OK, a rare case kicks the door in on my coding :D

    I not like to give in, and in this scenario i managed to fix the glitch.

    Sadly for 4GiB+ gfx cards i have to take a break as it was taking over my life with trying things and i have to admit defeat on that for now, so the message will stay mentioning that over 4GiB wont be shown.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,211
    90,793
    340
    Why not give general values?
    e.g. 1 GB or greater, 2 GB or greater..

    even Microsoft's WU Detectoid calculate it similary
    Code:
    b.WmiQuery Namespace="root\cimv2" WqlQuery="SELECT AdapterRAM FROM Win32_VideoController WHERE AdapterRAM >= 4293918720"
    
    b.WmiQuery Namespace="root\cimv2" WqlQuery="SELECT AdapterRAM FROM Win32_VideoController WHERE AdapterRAM >= 2147483648"
    
    b.WmiQuery Namespace="root\cimv2" WqlQuery="SELECT AdapterRAM FROM Win32_VideoController WHERE AdapterRAM >= 1073741824"
     
  14. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,067
    210
    Win32_videocontroller wont detect over 4gb as it is seems 32bit only.

    Powershell even failed which i thought would be more 64bit capable.

    Seems using a program language such as C or maybe .net can access the gfx card direct as i have tried every normal way following all the ms docs.

    For now i will leave things as they are as i want to concentrate on other project parts as they been left behind a bit.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,854
    2,108
    60
    can I install the OEM branding on my computer later ?
     
  16. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,679
    103,534
    450
    No, it's oobe based.

    You can brand many things manually though.

    System Brand Changer v1.2.1 is available but doesn't work properly on 10 atm.
     
  17. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,067
    210
    When i get some time to work on the 'online' branding version of the project, it will work in the same way as the Branding one Alphawaves wrote, i had started a GUI version but it is on hold at moment as other things in life take precedence.

    Hopefully after when MRP 130 is released in October i will have the time to resume that GUI, it will be written using AutoIT, so most AV's will throw its dummy out due to the way it works but nothing nasty will be within it. It just an easier way for me to program GUI's as i tried C++ and totally got confused in its syntax.

    Typing on my phone during my break at work, sorry for spelling errors.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...