View Full Version : display adaptor - visual basic 6

06-15-2007, 01:46 PM
Does anyone have any idea how to get the display adaptor information using visual basic 6?

06-16-2007, 04:50 PM
in vbscript, it can be done using WMI

Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_DisplayControllerConfiguration")
For Each objItem in colItems
WScript.Echo "Name: " & objItem.Name

i believe you can call WMI from VB6 too.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum