How to communicate from kernel mode to user mod app

Hi All,
Thanks to all for your valuable suggesion.

I already mention in my post that while finding some tutorial or stuff about
communicating with user mode app from kernel mode i got that sample and i
just tried for my knowledge purpose weather its working or not .only this is
the reason that i tried that for checking although i started implementing
inverted call for getting my work done i dont have any issue at all with
inverted call.I asked about that problem from you expert people just to know
the reason why that was failing because i was unable to find out the reason,
there is no any other intension behind asking that problem from you people
because you are expert in this having years of experience.

Lastly if this is not the best way to increase our knowledge level then i am
really very sorry that i am heading in wrong direction.if you expert people
can give me right direction for learning anything new about which we are
unknown i would be very thankful to you.

Best Regards
Nayan


Spice up your IM conversations. New, colorful and animated emoticons. Get
chatting! http://server1.msn.co.in/SP05/emoticons/

Nayan,

Like everything else on the internet the samples you find for Windows
drivers are everything from outstanding to toxix waste. The samples
Microsoft puts out in the DDK/WDK can be relied on to show good practices,
the code from Osronline.con, Ndis.com, wd-3.com and sysinternals.com is
also quite good. After that you have to have be careful, there is some
excellent code, and some total garbage and in some cases it is on the same
sites. It is reasonable to ask on a group on the quality of a sample, just
provide a link to the original.

For increasing your knowledge, look at the articles on the site I
listed, plus especially http://www.microsoft.com/whdc/default.mspx the
Microsoft site for drivers. Use the archives, for example checking the OSR
archives you would have found lots of discussion of calling user mode over
the years.

Of course, if you can take a class from one of the excellent firms that
offer them, or go to Microsoft’s WinHEC or DDC conferences definitely do
that to increase knowledge and experience.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“nayan kumar” wrote in message
news:xxxxx@ntdev…
> Hi All,
> Thanks to all for your valuable suggesion.
>
> I already mention in my post that while finding some tutorial or stuff
> about communicating with user mode app from kernel mode i got that sample
> and i just tried for my knowledge purpose weather its working or not
> .only this is the reason that i tried that for checking although i
> started implementing inverted call for getting my work done i dont have
> any issue at all with inverted call.I asked about that problem from you
> expert people just to know the reason why that was failing because i was
> unable to find out the reason, there is no any other intension behind
> asking that problem from you people because you are expert in this
> having years of experience.
>
> Lastly if this is not the best way to increase our knowledge level then i
> am really very sorry that i am heading in wrong direction.if you expert
> people can give me right direction for learning anything new about which
> we are unknown i would be very thankful to you.
>
> Best Regards
> Nayan
>
> _________________________________________________________________
> Spice up your IM conversations. New, colorful and animated emoticons. Get
> chatting! http://server1.msn.co.in/SP05/emoticons/
>
>

NAYAN:

You’ve have no reason to apologize. These lists, while very useful,
can at times be significantly populated with a lot of self-serving
criticism for a variety of reasons; I have certainly been guilty of that
at times. There is no reason to feel bad, because, while what you are
attempting is basically impossible and unreasonable, we all started
somewhere, and the bottom line is that no one on this list had a gun to
his or her head and had to respond to your question; he or she could
have just not answered, or, as many did, just give you the facts.

Best of luck,

mm

>> xxxxx@hotmail.com 2007-01-13 09:03 >>>
Hi All,
Thanks to all for your valuable suggesion.

I already mention in my post that while finding some tutorial or stuff
about
communicating with user mode app from kernel mode i got that sample and
i
just tried for my knowledge purpose weather its working or not .only
this is
the reason that i tried that for checking although i started
implementing
inverted call for getting my work done i dont have any issue at all
with
inverted call.I asked about that problem from you expert people just to
know
the reason why that was failing because i was unable to find out the
reason,
there is no any other intension behind asking that problem from you
people
because you are expert in this having years of experience.

Lastly if this is not the best way to increase our knowledge level then
i am
really very sorry that i am heading in wrong direction.if you expert
people
can give me right direction for learning anything new about which we
are
unknown i would be very thankful to you.

Best Regards
Nayan


Spice up your IM conversations. New, colorful and animated emoticons.
Get
chatting! http://server1.msn.co.in/SP05/emoticons/


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Martin O’Brien wrote:

You’ve have no reason to apologize. These lists, while very useful,
can at times be significantly populated with a lot of self-serving
criticism for a variety of reasons; I have certainly been guilty of that
at times. There is no reason to feel bad, because, while what you are
attempting is basically impossible and unreasonable, we all started
somewhere, and the bottom line is that no one on this list had a gun to
his or her head and had to respond to your question; he or she could
have just not answered, or, as many did, just give you the facts.

This may be a point of view thing. When people begin to ask questions
on a forum like this, they tend to think of it as a telephone
conversation with an individual expert, one-on-one. In that situation,
criticism and generalizations can seem daunting and discouraging.

On the other hand, those of us who have been here a while tend to think
of this forum as a panel discussion in a large lecture hall, and I think
that’s a better model. Specific questions very often raise issues of
general concern, and we would be remiss to let the issues go by without
comment. Also, as I’ve said before, these posts now live forever in
various different archives. A year from now, some inexperienced person
will go looking for the answer to a similar question. If they just see
an answer with no cautions, they may get the wrong impression.

So, when someone asks how to use a power drill on a 2x4 that is sitting
on their lap, I’ll explain how to do it, but I’m also going to feel free
to explain why a sawhorse is a much better idea.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Fair enough and agreed. My basic observation about these sorts of
questions and issue with them is that they tend to produce the amazingly
long threads about very little, which wouldn’t really matter, except
that, at least for me, these lists, while invaluable, can take a long
time to get through.

mm

>> xxxxx@probo.com 2007-01-15 13:07 >>>
Martin O’Brien wrote:
You’ve have no reason to apologize. These lists, while very useful,
can at times be significantly populated with a lot of self-serving
criticism for a variety of reasons; I have certainly been guilty of
that
at times. There is no reason to feel bad, because, while what you
are
attempting is basically impossible and unreasonable, we all started
somewhere, and the bottom line is that no one on this list had a gun
to
his or her head and had to respond to your question; he or she could
have just not answered, or, as many did, just give you the facts.

This may be a point of view thing. When people begin to ask questions
on a forum like this, they tend to think of it as a telephone
conversation with an individual expert, one-on-one. In that
situation,
criticism and generalizations can seem daunting and discouraging.

On the other hand, those of us who have been here a while tend to
think
of this forum as a panel discussion in a large lecture hall, and I
think
that’s a better model. Specific questions very often raise issues of
general concern, and we would be remiss to let the issues go by
without
comment. Also, as I’ve said before, these posts now live forever in
various different archives. A year from now, some inexperienced
person
will go looking for the answer to a similar question. If they just
see
an answer with no cautions, they may get the wrong impression.

So, when someone asks how to use a power drill on a 2x4 that is
sitting
on their lap, I’ll explain how to do it, but I’m also going to feel
free
to explain why a sawhorse is a much better idea.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Hi All,
According to your suggession i implemented inverted call for
sending interrupt register val to user mode app, Although its working fine
in normal cases but when i call the that function in which i put the
dequeuing logic from deferred procedure call my system gets restarted.

at this point i am not able to find out the reason why it is hapening so if
any one can help me to solve this problem i would be very thankful to you
people.

i am taking help from ddk sample in my case path is as follow
C:\WINDDK\3790.1830\src\general\pcidrv.

Best Regards
Nayan


Over 200000 Jobs @ naukri.com ! Choose The Best One
http://naukri.com/tieups/tieups.php?othersrcp=4358

> -----Original Message-----

From: xxxxx@lists.osr.com [mailto:bounce-275866-
xxxxx@lists.osr.com] On Behalf Of nayan kumar
Sent: Wednesday, January 17, 2007 6:33 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] How to communicate from kernel mode to user mod app

Hi All,
According to your suggession i implemented inverted call for
sending interrupt register val to user mode app, Although its working fine
in normal cases but when i call the that function in which i put the
dequeuing logic from deferred procedure call my system gets restarted.

[PCAUSA] All parameters that you pass to the driver during asynchronous I/O
must persist until the call is completed. If you allocate a parameter on the
stack instead of from the heap then the stack variable will not exist when
the call completes. If that happens, the system could crash.

Examine everything that you pass to the driver and make sure it is allocated
properly.

Thomas F. Divine

at this point i am not able to find out the reason why it is hapening so
if
any one can help me to solve this problem i would be very thankful to you
people.

i am taking help from ddk sample in my case path is as follow
C:\WINDDK\3790.1830\src\general\pcidrv.

Best Regards
Nayan


Over 200000 Jobs @ naukri.com ! Choose The Best One
http://naukri.com/tieups/tieups.php?othersrcp=4358


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Hi All,
Thanks to all people for putting me in comfort zone by giving your
valuable suggesion.I got success in acomplishing my work.Its working
properly now.

I again beg a pardon if any of my queries made you feel embrrassed. Whenever
i stuck with any problem i usually try everything whatever comes in my mind
or i get any clue from somewhere else due to my curious nature and the fact
that i just started swimming in this sea.

Hopefully you great people will understand this.

Best Regards
Nayan


Catch all the cricketing action right here. Live score, match reports,
photos et al. http://content.msn.co.in/Sports/Cricket/Default.aspx

Hi All,
Thanks to all people for putting me in comfort zone by giving your
valuable suggesion.I got success in acomplishing my work.Its working
properly now.

I again beg a pardon if any of my queries made you feel embrrassed. Whenever
i stuck with any problem i usually try everything whatever comes in my mind
or i get any clue from somewhere else due to my curious nature and the fact
that i just started swimming in this sea.

Hopefully you great people will understand this.

Best Regards
Nayan


Always wanted to be a writer? Here’s your chance!
http://content.msn.co.in/Contribute/Default.aspx