views:

369

answers:

1

I'm trying to work out if I can check if a particular video card device driver is loaded in Windows Server 2003 using C++. Can anyone give me pointers on how I might achieve this?

Thanks

+2  A: 

Use EnumDeviceDrivers - there's an example here.

anon
Thanks for the link - quick question though, where do I get psapi.h from?
C.McAtackney
It's part of what Microsoft call the Platform SDK - it should be part of recent MS development environments and it is also available separately from MS.
anon
Hi Neil,I'm getting the following error when trying to compile the example you linked to;Error 1 error LNK2019: unresolved external symbol _GetDeviceDriverBaseNameW@12 referenced in function _main DriverChecker.obj DriverCheckerAny idea what might be causing this?
C.McAtackney
GetDeviceDriverBasename is part of the same library as EnumDeviceDrivers, so if one works, so should the other - I'm afraid I don't have an answer to this!
anon
Sorry, the other one isn't working either - should have included that too;error LNK2019: unresolved external symbol _GetDeviceDriverBaseNameW@12 referenced in function _mainerror LNK2019: unresolved external symbol _EnumDeviceDrivers@12 referenced in function _main
C.McAtackney