G
gf.z
Unregistered / Unconfirmed
GUEST, unregistred user!
得到显卡名称的代码!!
procedure TForm1.ButtonClick(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);
aListbox.Items.Add(lpDisplayDevice.DeviceString); {there is also additional information in lpDisplayDevice}
end;
end;
运行好在alistbox中显示的显卡型号为:
NVIDIA GeForce2 MX/MX 400
NetMeeting driver
多出来一个“NetMeeting driver”
这是在win2000下的结果,在win98下正常!
怎么样在win2000下得到正确结果?(不出来NetMeeting driver)
procedure TForm1.ButtonClick(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);
aListbox.Items.Add(lpDisplayDevice.DeviceString); {there is also additional information in lpDisplayDevice}
end;
end;
运行好在alistbox中显示的显卡型号为:
NVIDIA GeForce2 MX/MX 400
NetMeeting driver
多出来一个“NetMeeting driver”
这是在win2000下的结果,在win98下正常!
怎么样在win2000下得到正确结果?(不出来NetMeeting driver)