Posted: Wed Apr 02, 2003 8:13 pm
Restored from previous forum. Originally posted by darklordz.
I created a 3d game launcher using teh help of the following snippet
this code retreives all data from a registry folder. That folder ontains otehr drivers like NetMeeting driver. How do I get Just Display Drivers noting else ? Requires Windows 2000 or later; Win9x/ME: Not supported, The EnumDisplayDevices function lets you obtain information about the display devices in a system.
Declare Function EnumDisplayDevices Lib "user32" Alias "EnumDisplayDevicesA" (Unused As Any, ByVal iDevNum As Long, lpDisplayDevice As DISPLAY_DEVICE, ByVal dwFlags As Long) As Boolean
I created a 3d game launcher using teh help of the following snippet
Code: Select all
Structure DISPLAY_DEVICE
cb.l
DeviceName.b[32]
DeviceString.b[128]
StateFlags.l
DeviceID.b[128]
DeviceKey.b[128]
EndStructure
dd.DISPLAY_DEVICE\cb=SizeOf(DISPLAY_DEVICE)
cr.s=Chr(10)
id.l=0
While EnumDisplayDevices_(0,id,@dd,0)
devname$=PeekS(@dd\DeviceName[0])
devstring$=PeekS(@dd\DeviceString[0])
devid$=PeekS(@dd\DeviceID[0])
devkey$=PeekS(@dd\DeviceKey[0])
MessageRequester("",devname$+cr+devstring$+cr+devid$+cr+devkey$,0)
id=id+1
Wend
Declare Function EnumDisplayDevices Lib "user32" Alias "EnumDisplayDevicesA" (Unused As Any, ByVal iDevNum As Long, lpDisplayDevice As DISPLAY_DEVICE, ByVal dwFlags As Long) As Boolean