News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Hardware Enumerator [pre-release]

Started by Raistlin, January 24, 2017, 10:19:31 PM

Previous topic - Next topic

Raistlin

[UPDATED to Ver 0.8 pre-release]

Added : Detects for DirectX, dotNET4, M/B & BIOS, default S/Card

@AW27: Memory bug -> crazy pointers (my fault entirely)
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

aw27

Almost all bugs fixed.
However:
1) It does not detect more than 1 monitor. I have 2,  some people more. (* see below)
2) Model is wrong, what it is showing is Extended Model.
3) I have no explanation for the font style changing to bold or for font color change. I have not checked in the help file.  :biggrin:
4) Static boxes are small to contain the information, I believe you should use read-only Edit boxes allowing the user to read till the end, or show it in a tool tip when it does not fit in the static box.
5) It should save all the information to a file.

* This is the monitor information provided by my software AWRCP about my 2 28" monitors:

*DISPLAY\BNQ78DD\5&818829c&0&UID4353_0*
1) Monitor ID:
Commercial Name: BenQ GC2870
Manufacturer Name Code: BNQ
Product Code ID: 78DD
Serial Number ID: L6H05058019
Week of Manufacture: 25
Year of Manufacture: 2017
2) Basic Display Parameters:
Display Transfer Characteristic: 120
Max Horizontal Image Size (cm): 62
Max Vertical Image Size (cm): 34
Video Input Type: Digital
Supported Display Features:
- Active Off Supported: True
- Display Type: RGB color display
- GTF Support: False
- Has Preferred Timing Mode: True
- sRGB Supported: True
- Standby Supported (VESA DPMS): False
- Suspend Supported (VESA DPMS): False
3) Video Connector Type:
Technology: HDMI
4) Analog Video Input Parameters:
5) Digital Video Input Parameters:
Is DFP 1.x Compatible: False
6) Color Characteristics:
Blue: X=156, Y=55
Default White: X=321, Y=337
Green: X=268, Y=704
Red: X=702, Y=317

*DISPLAY\BNQ78DD\5&818829c&0&UID4354_0*
1) Monitor ID:
Commercial Name: BenQ GC2870
Manufacturer Name Code: BNQ
Product Code ID: 78DD
Serial Number ID: 86H11124019
Week of Manufacture: 23
Year of Manufacture: 2017
2) Basic Display Parameters:
Display Transfer Characteristic: 120
Max Horizontal Image Size (cm): 62
Max Vertical Image Size (cm): 34
Video Input Type: Digital
Supported Display Features:
- Active Off Supported: True
- Display Type: RGB color display
- GTF Support: False
- Has Preferred Timing Mode: True
- sRGB Supported: True
- Standby Supported (VESA DPMS): False
- Suspend Supported (VESA DPMS): False
3) Video Connector Type:
Technology: HDMI
4) Analog Video Input Parameters:
5) Digital Video Input Parameters:
Is DFP 1.x Compatible: False
6) Color Characteristics:
Blue: X=156, Y=55
Default White: X=321, Y=337
Green: X=268, Y=704
Red: X=702, Y=317

Raistlin

QuoteAlmost all bugs fixed.
However:
1) It does not detect more than 1 monitor. I have 2,  some people more. (* see below)
2) Model is wrong, what it is showing is Extended Model.
3) I have no explanation for the font style changing to bold or for font color change. I have not checked in the help file.

@AW:
0) "Almost all bugs fixed " -  :bgrin: - I take it the data corruption is now solved - again thanks for your input
1) I'am not quite sure I understand your meaning - the detections are for the default display adapter attached to the desktop.
    (sample code on page 4 of this thread)
2) But I do see your point, I'll add this in the next version update
3) Can you clarify ? - or PM/email me a screenshot please

Quote4) Static boxes are small to contain the information, I believe you should use read-only Edit boxes allowing the user to read till the end..
5) It should save all the information to a file

Very GOOD ideas - I should really brush-up on my interface design.
I'll definitely add & modify for these in the next version update.  :t
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

Siekmanski

Hi Raistlin,

My computer has 2 sound cards on board and 1 virtual sound card.
In total 11 Stereo output channels.

As default sound card it shows the 7th stereo output channel of my default soundcard. ( should be the first )
hint: the first guid returned is the default and is equal to 1 of the following enumerated guids.

The rest seems correct.  8)
Creative coders use backward thinking techniques as a strategy.

Raistlin

Thanks Siekmanski - it was'nt clear on MSDN (see below). Your explanation makes more sense  :biggrin:

RE:
The primary device is enumerated twice, first with NULL in lpGuid and then with its GUID in that parameter.
So I mistakenly thought the GUID on first return was NULL and then the first actual GUID was the default.
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

zedd151

Lemme switch over to Windows 10 - I'm on Windows 7 right now without the proper drivers installed.... (can't get new drivers for an older OS for this 'puter)

Raistlin

Why zedd151, what's it showing?
You've got my email\PM.  :icon_eek:
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

zedd151

#82
Quote from: Raistlin on July 01, 2018, 10:35:35 PM
Why zedd151, what's it showing?
You've got my email\PM.  :icon_eek:

Nothing bad, just it's missing the Display info.. I'm still on 7 now if you want to see it...

This is from Windows 7 Ultimate:

Raistlin

Wow, you had me worried. No problems then  :icon_mrgreen:
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

zedd151

Oh no, it's all good.  :t

I put the screen capture in my previous post...
As soon as I'm finished defragging my storage drive, I'll do another from Windows 10 Home Edition....

zedd151

#85
Here is the screen capture from WIndows 10 Home edition...

Raistlin

Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

zedd151


zedd151

#88
From Windows xp sp3 Professional in Virtual Box --- 32 bits


Surprisingly a lot of the info still holds true from Virtual Box, but not all. Being in a virtual environment does strip away some functionality.


This is a test, only a test.   :P



Raistlin

@Zedd: Yes a VM will do that - I tested the profiler under under HyperV with
             Linux OpenSuse Leap & WINE = It works !  :bgrin: Even shows WINE
             .NET support, however still need to get DirectX to work for Linux.

             As to the screenshot you posted:
             1) SVM switch is toggled (VM mode - so no problems there)
             2) Interestingly FMA3 switch is now off (probably the VM hypervisor ? - I'll investigate)
             3) HTT switch is off // (VM mode - you assigned 1 core to the VM & cache also reflects such - so all good)
             4) RAM size is understandable - you assigned 1 GB of the 4GB actual - display card is probably utilizing partial RAM
             5) Display card is not showing - what Display adapter is showing inside the XP's device manager ? - I'am interested to know please
             6) x64 mode now disabled in CPUID - did you specifically select x86 compatable VM ? - I'am interested to know please
             7) Registry error showing on internal error flags - probably due to .NET detection - so all fine there as well.
                                                             
             But yes, the VM environment loads it's own hardware kernel
             emulation that strips the standard functionalities. More updates
             coming soon.
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...