Come across Graphics Card Programmatically The use of Visible Fundamental
Come across Graphics Card Title
Is it conceivable to discover the graphics card title from .Web code? Sure it's conceivable the use of WMI. However you want to reference the Machine.Control and import it.
Home windows Control Instrumentation
WMI is a brilliant library which accommodates the main points about quite a lot of elements required for the device to perform. Laborious Disk Force similar data, processor data, Community elements and the listing is going on. It's actually simple to question the information if you already know a little bit in regards to the information how it's arranged.
The use of WMI to Get the Graphics Card Title
WMI can be utilized to question numerous details about hardware and Working programs similar data. ManagementObjectSearcher can be utilized to question the information. It accepts two parameters. The primary parameter is to inform which phase to look known as as scope. And the second one parameter is the true question nearly very similar to SQL question. The use of the Get way of ManagementObjectSearcher will give the outcome set in a suite.
Supply Code
Imports Machine.Control
Public Elegance Form1
Non-public Sub Button1_Click(ByVal sender As Machine.Object, _
ByVal e As Machine.EventArgs) Handles Button1.Click on
MsgBox(GetGraphicsCardName())
Finish Sub
Non-public Serve as GetGraphicsCardName() As String
Dim GraphicsCardName = String.Empty
Take a look at
Dim WmiSelect As New ManagementObjectSearcher _
("rootCIMV2", "SELECT * FROM Win32_VideoController")
For Each and every WmiResults As ManagementObject In WmiSelect.Get()
GraphicsCardName = WmiResults.GetPropertyValue("Title").ToString
If (No longer String.IsNullOrEmpty(GraphicsCardName)) Then
Go out For
Finish If
Subsequent
Catch err As ManagementException
MessageBox.Display(err.Message)
Finish Take a look at
Go back GraphicsCardName
Finish Serve as
Finish Elegance
No comments