Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Video Adaptor Name 1

Status
Not open for further replies.

m1tch

Programmer
Jul 28, 2005
4
GB
Does anyone know the code to retrieve the name of the computers video adaptor?
 
quick and dirty,

you'll need a button and a listbox on a form :
add windows and graphics to the uses list

Code:
procedure TForm1.Button1Click(Sender: TObject);
var
  lpDisplayDevice: TDisplayDevice;
  dwFlags: DWORD;
  cc: DWORD;
begin
 lpdisplaydevice.cb := sizeof(lpdisplaydevice);
 dwflags := 0;
 cc:= 0;
 while EnumDisplayDevices(nil, cc, lpDisplayDevice , dwFlags) do
  begin
    inc(cc);
    listbox1.items.add(lpdisplaydevice.DeviceString);
  end;
end;

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Cheers, i'll check try it out tonight.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top