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, 13 November 2017

Kernel Debugging & Crash Analysis for Windows, Nashua (Amherst) NH, 4 December 2017

Writing WDF Drivers I: Core Concepts, Nashua (Amherst) NH, 8 January 2018

WDF Drivers II: Advanced Implementation Techniques, Nashua (Amherst) NH, 15 January 2018


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 10  
04 Jan 18 03:35
weilin jiang
xxxxxx@foxmail.com
Join Date: 30 Nov 2017
Posts To This List: 11
How the driver can call User API?

As above. Looking forward to your reply!
  Message 2 of 10  
04 Jan 18 07:11
Don Burn
xxxxxx@windrvr.com
Join Date: 23 Feb 2011
Posts To This List: 1376
How the driver can call User API?

You provide a user space service and use an inverted call to communicate. Don Burn Windows Driver Consulting Website: http://www.windrvr.com -----Original Message----- From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@foxmail.com Sent: Thursday, January 04, 2018 3:35 AM To: Windows System Software Devs Interest List <xxxxx@lists.osr.com> Subject: [ntdev] How the driver can call User API? As above. Looking forward to your reply! --- NTDEV is sponsored by OSR Visit the list online at: <http://www.osronline.com/showlists.cfm?list=ntdev> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <http://www.osr.com/seminars> To unsubscribe, visit the List Server section of OSR Online at <http://www.osronline.com/page.cfm?name=ListServer>
  Message 3 of 10  
04 Jan 18 08:01
weilin jiang
xxxxxx@foxmail.com
Join Date: 30 Nov 2017
Posts To This List: 11
How the driver can call User API?

Do you mean that user communicate with driver active?such as ioctl , and the= n driver control user servive=E2=80=99s behavior by out buffer . ___________________________________________ God is a boy. > =E5=9C=A8 2018=E5=B9=B41=E6=9C=884=E6=97=A5=EF=BC=8C20:11=EF=BC=8Cburn@win= drvr.com <xxxxx@lists.osr.com> =E5=86=99=E9=81=93=EF=BC=9A >=20 > You provide a user space service and use an inverted call to communicate. >=20 >=20 > Don Burn > Windows Driver Consulting > Website: http://www.windrvr.com=20 >=20 >=20 >=20 <...excess quoted lines suppressed...> re > drivers! > Details at <http://www.osr.com/seminars> >=20 > To unsubscribe, visit the List Server section of OSR Online at > <http://www.osronline.com/page.cfm?name=3DListServer> >=20 >=20 > --- > NTDEV is sponsored by OSR >=20 tdev> >=20 > MONTHLY seminars on crash dump analysis, WDF, Windows internals and softwa= re drivers! > Details at <http://www.osr.com/seminars> >=20 > To unsubscribe, visit the List Server section of OSR Online at <http://www= .osronline.com/page.cfm?name=3DListServer> >=20
  Message 4 of 10  
04 Jan 18 08:27
Don Burn
xxxxxx@windrvr.com
Join Date: 23 Feb 2011
Posts To This List: 1376
How the driver can call User API?

Inverted call is described in = http://www.osronline.com/article.cfm?id=3D94 an updated article with = KMDF is at = https://www.osr.com/nt-insider/2013-issue1/inverted-call-model-kmdf/=20 Don Burn Windows Driver Consulting Website: http://www.windrvr.com=20 -----Original Message----- From: xxxxx@lists.osr.com = [mailto:xxxxx@lists.osr.com] On Behalf Of = xxxxx@foxmail.com Sent: Thursday, January 04, 2018 8:01 AM To: Windows System Software Devs Interest List <xxxxx@lists.osr.com> Subject: Re: [ntdev] How the driver can call User API? Do you mean that user communicate with driver active?such as ioctl , and = then driver control user servive=E2=80=99s behavior by out buffer . ___________________________________________ God is a boy. > =E5=9C=A8 = 2018=E5=B9=B41=E6=9C=884=E6=97=A5=EF=BC=8C20:xxxxx@windrvr.com = <xxxxx@lists.osr.com> =E5=86=99=E9=81=93=EF=BC=9A >=20 > You provide a user space service and use an inverted call to = communicate. >=20 >=20 > Don Burn > Windows Driver Consulting > Website: http://www.windrvr.com >=20 >=20 >=20 > -----Original Message----- > From: xxxxx@lists.osr.com <...excess quoted lines suppressed...> software drivers! > Details at <http://www.osr.com/seminars> >=20 > To unsubscribe, visit the List Server section of OSR Online at=20 > <http://www.osronline.com/page.cfm?name=3DListServer> >=20 --- NTDEV is sponsored by OSR Visit the list online at: = <http://www.osronline.com/showlists.cfm?list=3Dntdev> MONTHLY seminars on crash dump analysis, WDF, Windows internals and = software drivers! Details at <http://www.osr.com/seminars> To unsubscribe, visit the List Server section of OSR Online at = <http://www.osronline.com/page.cfm?name=3DListServer>
  Message 5 of 10  
04 Jan 18 14:42
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11741
How the driver can call User API?

xxxxx@foxmail.com wrote: > Do you mean that user communicate with driver active? such as ioctl, and then driver control user servive’s behavior by out buffer. Yes, essentially.  The key thing to take away here is that a kernel driver cannot call into a user-mode code at all.  If you need user-mode processing, then you have to have a user-mode process do it for you. What are you planning to do?  If you describe the design, perhaps we can suggest an alternative. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
  Message 6 of 10  
06 Jan 18 22:27
weilin jiang
xxxxxx@foxmail.com
Join Date: 30 Nov 2017
Posts To This List: 11
How the driver can call User API?

Hi Roberts, thanks your reply ! This is a filter driver, and it is started while power on. The filter driver wants to call EnumDisplayDevices to get some information but this is not implemented in kernel mode by microsoft. The filter driver initialize according the information. Are there any other way ? xxxxx@foxmail.com From: xxxxx@probo.com Date: 2018-01-05 03:41 To: Windows System Software Devs Interest List Subject: Re: [ntdev] How the driver can call User API? xxxxx@foxmail.com wrote: > Do you mean that user communicate with driver active? such as ioctl, and then driver control user servive’s behavior by out buffer. Yes, essentially. The key thing to take away here is that a kernel driver cannot call into a user-mode code at all. If you need user-mode processing, then you have to have a user-mode process do it for you. What are you planning to do? If you describe the design, perhaps we can suggest an alternative. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc. --- NTDEV is sponsored by OSR Visit the list online at: <http://www.osronline.com/showlists.cfm?list=ntdev> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <http://www.osr.com/seminars> To unsubscribe, visit the List Server section of OSR Online at <http://www.osronline.com/page.cfm?name=ListServer>
  Message 7 of 10  
07 Jan 18 00:39
Doron Holan
xxxxxx@microsoft.com
Join Date: 08 Sep 2005
Posts To This List: 10129
How the driver can call User API?

Why does your filter need to find displays? What is going to do once it finds one? Do you want the filter to render something on the screen? Bent from my phone ________________________________ From: xxxxx@lists.osr.com <xxxxx@lists.osr.com> on behalf of xxxxx@foxmail.com <xxxxx@lists.osr.com> Sent: Saturday, January 6, 2018 7:26:57 PM To: Windows System Software Devs Interest List Subject: Re: Re: [ntdev] How the driver can call User API? Hi Roberts, thanks your reply ! This is a filter driver, and it is started while power on. The filter driver wants to call EnumDisplayDevices to get some information but this is not implemented in kernel mode by microsoft. The filter driver initialize according the information. Are there any other way ? ________________________________ xxxxx@foxmail.com From: xxxxx@probo.com<mailto:xxxxx@lists.osr.com> Date: 2018-01-05 03:41 To: Windows System Software Devs Interest List<mailto:xxxxx@lists.osr.com> Subject: Re: [ntdev] How the driver can call User API? xxxxx@foxmail.com wrote: > Do you mean that user communicate with driver active? such as ioctl, and then driver control user servive?s behavior by out buffer. Yes, essentially. The key thing to take away here is that a kernel driver cannot call into a user-mode code at all. If you need user-mode processing, then you have to have a user-mode process do it for you. What are you planning to do? If you describe the design, perhaps we can suggest an alternative. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc. --- NTDEV is sponsored by OSR Visit the list online at: <http://www.osronline.com/showlists.cfm?list=ntdev> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <http://www.osr.com/seminars> To unsubscribe, visit the List Server section of OSR Online at <http://www.osronline.com/page.cfm?name=ListServer> --- NTDEV is sponsored by OSR Visit the list online at: <http://www.osronline.com/showlists.cfm?list=ntdev> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <http://www.osr.com/seminars> To unsubscribe, visit the List Server section of OSR Online at <http://www.osronline.com/page.cfm?name=ListServer> --
  Message 8 of 10  
07 Jan 18 01:01
weilin jiang
xxxxxx@foxmail.com
Join Date: 30 Nov 2017
Posts To This List: 11
How the driver can call User API?

Yes. I want to filter the display adapter which render s the screen ,but the filter filters all display adapter currently. I can know which display adapter renders the screen from EnumDisplayAdapter.The filter driver must know the information before display adapter power on. ___________________________________________ God is a boy. > ??? 2018???1???7??????13:xxxxx@microsoft.com <xxxxx@lists.osr.com> ????????? > > Why does your filter need to find displays? What is going to do once it finds one? Do you want the filter to render something on the screen? > > Bent from my phone > From: xxxxx@lists.osr.com <xxxxx@lists.osr.com> on behalf of xxxxx@foxmail.com <xxxxx@lists.osr.com> > Sent: Saturday, January 6, 2018 7:26:57 PM > To: Windows System Software Devs Interest List > Subject: Re: Re: [ntdev] How the driver can call User API? > <...excess quoted lines suppressed...> --
  Message 9 of 10  
07 Jan 18 01:56
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11741
How the driver can call User API?

On Jan 6, 2018, at 10:00 PM, xxxxx@foxmail.com <xxxxx@lists.osr.com> wrote: > > Yes. I want to filter the display adapter which render s the screen ,but the filter filters all display adapter currently. I can know which display adapter renders the screen from EnumDisplayAdapter.The filter driver must know the information before display adapter power on. Has it occurred to that, before the display adapter driver runs, EnumDisplayAdapter is not going to find anything? All of the user interface concepts (screens, desktops, windows) are user-mode concepts. Kernel doesn't get involved, so there is no information to find. You need to frame your problem in a different way. If your filter is getting loaded for every driver, can't you use the device identification to figure out which devices to filter and which to skip? ??? Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc. --
  Message 10 of 10  
07 Jan 18 08:46
weilin jiang
xxxxxx@foxmail.com
Join Date: 30 Nov 2017
Posts To This List: 11
How the driver can call User API?

That is the driver must get information gotten from EnumDisplayAdapter to hook display adapter???s DxgkInitialize . If the information of EnumDisplayAdapter is in the registry,it is best way get information from registry. Are there any other way? ___________________________________________ God is a boy. > ??? 2018???1???7??????14:xxxxx@probo.com <xxxxx@lists.osr.com> ????????? > >> On Jan 6, 2018, at 10:00 PM, xxxxx@foxmail.com <xxxxx@lists.osr.com> wrote: >> >> Yes. I want to filter the display adapter which render s the screen ,but the filter filters all display adapter currently. I can know which display adapter renders the screen from EnumDisplayAdapter.The filter driver must know the information before display adapter power on. > > Has it occurred to that, before the display adapter driver runs, EnumDisplayAdapter is not going to find anything? > > All of the user interface concepts (screens, desktops, windows) are user-mode concepts. Kernel doesn't get involved, so there is no information to find. You need to frame your problem in a different way. If your filter is getting loaded for every driver, can't you use the device identification to figure out which devices to filter and which to skip? > ??? <...excess quoted lines suppressed...> --
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 04:23.


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