I am trying to get the list of paths of all the device drivers loaded currently on my Windows PC.
In two ways I tackled the situation:
- I first tried, using
EnumDeviceDrivers( )
withGetDeviceDriverFileName( )
. - Next I tried,
EnumServicesStatus( )
withQueryServiceConfig( )
Both are giving me the path name of device drivers. First one is giving the path name in fully qualified form whereas the latter is giving the path name which contains some environment variables
Using the first one is kind of tedious whereas the second function is easy to use. That's why I want to know if there is any function available by which I can perform the task easily and get the full qualified path name ( eg: C:\Windows\System32\.........)