Calling a user mode library or service from a kernel driver

Hi,

Is it possible to call a user mode library or service from a kernel driver?
How connection can be setup?

Best Reagrds,
Elahe

Not possible. The UM library should pend a request and the driver completes it with data or state

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of elahe shekuhi
Sent: Monday, August 18, 2014 10:19 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Calling a user mode library or service from a kernel driver

Hi,

Is it possible to call a user mode library or service from a kernel driver?
How connection can be setup?

Best Reagrds,
Elahe
— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thanks.

Kernel drivers can call .lib kernel library or export drivers. Is it right?

I want some functionality of my driver to be done in one other library. One
approach is using kernel export drivers?

On Tue, Aug 19, 2014 at 9:18 AM, Doron Holan
wrote:

> Not possible. The UM library should pend a request and the driver
> completes it with data or state
>
>
>
> d
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *elahe shekuhi
> Sent: Monday, August 18, 2014 10:19 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Calling a user mode library or service from a kernel
> driver
>
>
>
> Hi,
>
>
>
> Is it possible to call a user mode library or service from a kernel
> driver?
>
> How connection can be setup?
>
>
>
> Best Reagrds,
>
> Elahe
>
> — NTDEV is sponsored by OSR Visit the list at:
> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
> http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
> other seminars visit: 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 at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Sure

d

Bent from my phone


From: elahe shekuhimailto:xxxxx
Sent: ?8/?18/?2014 11:24 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: Re: [ntdev] Calling a user mode library or service from a kernel driver

Thanks.

Kernel drivers can call .lib kernel library or export drivers. Is it right?

I want some functionality of my driver to be done in one other library. One approach is using kernel export drivers?

On Tue, Aug 19, 2014 at 9:18 AM, Doron Holan > wrote:
Not possible. The UM library should pend a request and the driver completes it with data or state

d

From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of elahe shekuhi
Sent: Monday, August 18, 2014 10:19 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Calling a user mode library or service from a kernel driver

Hi,

Is it possible to call a user mode library or service from a kernel driver?
How connection can be setup?

Best Reagrds,
Elahe
— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: 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 at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
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 at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

>Is it possible to call a user mode library or service from a kernel driver?

Not possible at all.

Use inverted call IOCTLs for this.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

>I want some functionality of my driver to be done in one other library. One approach is using kernel

export drivers?

Yes, one of the ways. Export driver is like a kernel mode DLL.

Also ensure that you really need this stuff to be in a separate binary.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com