Hi all ,
Can I pass a user mode function pointer to kernel function and execute it
from that ??
What is inverted call ,how can I implement that.
How can I switch to user mode from a kernel function ,is there any thing
like int 2E ??
Thanx in advance.
The easiest way is to simply pend an IOCTL in your driver and have the
completion of this IOCTL trigger whatever user space activity you need to
perform.
You should not use the various examples out there of how to run user mode
functions from a kernel thread. It is possible but it is a REAL BAD IDEA.
The other alternative to the pended IOCTL approach is the shared event
approach. This version has been recently discussed on this group, so you
should search the archives for the details. In my opinion the event
approach has little advantage to the IOCTL approach and is more
complicated to implement correctly.
===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032
-----Original Message-----
From: “Pawar”
To: “NT Developers Interest List”
Date: Wed, 18 Sep 2002 09:30:49 +0530
Subject: [ntdev] How To Implement a Inverted call Mechanism
> Hi all ,
>
> Can I pass a user mode function pointer to kernel function and execute
> it
> from that ??
> What is inverted call ,how can I implement that.
> How can I switch to user mode from a kernel function ,is there any
> thing
> like int 2E ??
> Thanx in advance.
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to %%email.unsub%%
By the way How can I switch the Mode to user mode…
There is no documented way to do that, nor it is necessarely in any way.
----- Original Message -----
From: “Pawar”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Wednesday, September 18, 2002 3:40 PM
Subject: [ntdev] Re: How To Implement a Inverted call Mechanism
> By the way How can I switch the Mode to user mode…
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>
You ‘switch to user mode’ by either completing an IRP or signalling an
event.
===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032
-----Original Message-----
From: “Pawar”
To: “NT Developers Interest List”
Date: Wed, 18 Sep 2002 18:10:20 +0530
Subject: [ntdev] Re: How To Implement a Inverted call Mechanism
> By the way How can I switch the Mode to user mode…
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to %%email.unsub%%