hi, i wendor if there is a way to know what is graphics card name ?? (MSM32).

i used to use intrruputs but, the intrrupts not work on masm32 as u know?

so, is there an easy way throw win32 api ?
thanx in adv.
Posted on 2004-12-26 13:45:58 by da-crystal
I believe that you can't do it through an API, but I think that it is very well possible to do this with DirectX APIs. But my knowledge on DX is very poor so I can't help you any further. :)




/siddhartha
Posted on 2004-12-26 23:17:37 by siddhartha
Hello da-crystal

This is how it can be done in directx9:



_D3DADAPTER_IDENTIFIER9 struct
Driver BYTE MAX_DEVICE_IDENTIFIER_STRING dup(?)
Description BYTE MAX_DEVICE_IDENTIFIER_STRING dup(?) ; this is the string your looking for
DeviceName BYTE 32 dup(?)
DriverVersion QWORD ?
VendorId DWORD ?
DeviceId DWORD ?
SubSysId DWORD ?
Revision DWORD ?
DeviceIdentifier GUID <?>
WHQLLevel DWORD ?
_D3DADAPTER_IDENTIFIER9 ends

D3DADAPTER_IDENTIFIER9 typedef _D3DADAPTER_IDENTIFIER9

d3dadapter D3DADAPTER_IDENTIFIER9<>

g_pD3D LPDIRECT3D9 NULL ;// Used to create the D3DDevice


invoke Direct3DCreate9,D3D_SDK_VERSION
if_FAILED
return E_FAIL
.endif

mov g_pD3D,eax

coinvoke g_pD3D,IDirect3D9,GetAdapterIdentifier,D3DADAPTER_DEFAULT,0,addr d3dadapter
if_FAILED
return E_FAIL
.endif


If your interested in some examples:

http://members.home.nl/siekmanski/d3dx9_asm.zip
Posted on 2004-12-27 01:07:33 by Siekmanski