Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

Monthly Seminars at OSR Headquarters

East Coast USA
Windows Internals and SW Drivers, Dulles (Sterling) VA, 9 April 2018

Writing WDF Drivers I: Core Concepts, Manchester, NH, 7 May 2018

Kernel Debugging & Crash Analysis for Windows, Manchester, NH, 21 May 2018


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 4  
08 Jan 18 04:43
James Danks
xxxxxx@gmx.com
Join Date: 26 Dec 2017
Posts To This List: 12
Enumerate devices of specified type

Is this possible to enumerate devices of specified type in kernel mode? Like enumerate all storage devices, all network cards etc. Also is there some kind of notification available when driver loads or service starts?
  Message 2 of 4  
08 Jan 18 10:11
Doron Holan
xxxxxx@microsoft.com
Join Date: 08 Sep 2005
Posts To This List: 10195
Enumerate devices of specified type

A device interface represents a specific type of device. You enumerate the current device interface instances with IoGetDeviceInterfaces. You can be told of new instances with IoRegisterPlugPlayNotification d Bent from my phone ________________________________ From: xxxxx@lists.osr.com <xxxxx@lists.osr.com> on behalf of xxxxx@gmx.com <xxxxx@lists.osr.com> Sent: Monday, January 8, 2018 1:43:04 AM To: Windows System Software Devs Interest List Subject: [ntdev] Enumerate devices of specified type Is this possible to enumerate devices of specified type in kernel mode? Like enumerate all storage devices, all network cards etc. Also is there some kind of notification available when driver loads or service starts? --- NTDEV is sponsored by OSR Visit the list online at: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fshowlists.cfm%3Flist%3Dntdev&data=02%7C01%7CDoron.Holan%40microsoft.com%7C8d5 7880399d34800477708d5567c2616%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636510 013877147085&sdata=a1AOavhNK7jJ9WMN5vYFXwARsrNzgsWGKwKPlWUXzVs%3D&reserved=0> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fse minars&data=02%7C01%7CDoron.Holan%40microsoft.com%7C8d57880399d34800477708d5567c2 616%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636510013877157098&sdata=eRE31Jd Xh3IMfQAGyyqyqjQBdGH0LyxhFCpg2SFexYM%3D&reserved=0> To unsubscribe, visit the List Server section of OSR Online at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fpage.cfm%3Fname%3DListServer&data=02%7C01%7CDoron.Holan%40microsoft.com%7C8d5 7880399d34800477708d5567c2616%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636510 013877157098&sdata=bkFFpTplcI4WdvAyShE42dmkrPqPbVSRJE5R8n6o%2FTY%3D&reserved=0> --
  Message 3 of 4  
08 Jan 18 12:04
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11894
Enumerate devices of specified type

xxxxx@gmx.com wrote: > Is this possible to enumerate devices of specified type in kernel mode? Like enumerate all storage devices, all network cards etc. > > Also is there some kind of notification available when driver loads or service starts? Allow me to state what SHOULD be one of the ten commandments of driver writing:     NEVER do anything in kernel mode that cannot be handled just as well in user mode. Enumerating and traversing the device tree has traditionally been a user-mode task.  Doron mentioned that you can connect to "device interfaces" at a kernel level; that assumes the devices you want all expose a single device interface.  Some device classes do that religiously, some do not. What are you actually trying to do? -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
  Message 4 of 4  
10 Jan 18 08:46
Iolanda Milani
xxxxxx@gmail.com
Join Date: 31 Dec 2017
Posts To This List: 17
Enumerate devices of specified type

I recommend that you have a Windows Service setup, and then communicate with it from within your device driver. The Windows Service can handle the operation and then provide the results back to the device driver if deemed necessary. This will not only be a lot more stable but also allows you to take advantage of documented user-mode APIs, and will also ease future updates for maintaining the feature within your product should changes be required at a later date.
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 06:28.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license