By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,918 Members | 1,247 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,918 IT Pros & Developers. It's quick & easy.

Kernel mode programming in VC++

P: n/a
Hello Experts,

I have an asm routine which uses privileged instructions like in, out,
cli, etc., I need to execute this as a Win32 application under VC++.
Since the instructions are privileged, I can't execute the same under User
mode as a normal Win32 application, so I have to execute this routine in
kernel mode.

One solution is to encapsulte the routine as a Device driver for Windows &
call the same from the application, but, I am looking out for a easy
solution. Please help...

Thank you.

Regards,
Arun

Jul 6 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Arun" <ar**********@in.bosch.comwrote in message
news:e8**********@ns2.fe.internet.bosch.com...
Hello Experts,

I have an asm routine which uses privileged instructions like in, out,
cli, etc., I need to execute this as a Win32 application under VC++.
Since the instructions are privileged, I can't execute the same under User
mode as a normal Win32 application, so I have to execute this routine in
kernel mode.

One solution is to encapsulte the routine as a Device driver for Windows &
call the same from the application, but, I am looking out for a easy
solution. Please help...
The easiest solution will be to ask someone in a newsgroup where they know
what the heck you're talking about! :-) Try one of the newsgroups on the
news.microsoft.com server. Platform-specific questions are off-topic here.

-Howard
Jul 6 '06 #2

P: n/a

Arun wrote:
Hello Experts,

I have an asm routine which uses privileged instructions like in, out,
cli, etc., I need to execute this as a Win32 application under VC++.
Since the instructions are privileged, I can't execute the same under User
mode as a normal Win32 application, so I have to execute this routine in
kernel mode.

One solution is to encapsulte the routine as a Device driver for Windows &
call the same from the application, but, I am looking out for a easy
solution. Please help...

Thank you.

Regards,
Arun
This is off topic in this newsgroup. Here, we discuss the standard c++
language. Anything that is platform specific is off topic. You do
realize that your question is about the windows operating system and
not the C++ language.

Jul 6 '06 #3

P: n/a
Arun wrote:
I have an asm routine which uses privileged instructions like in, out,
cli, etc., I need to execute this as a Win32 application under VC++.
Since the instructions are privileged, I can't execute the same under User
mode as a normal Win32 application, so I have to execute this routine in
kernel mode.

One solution is to encapsulte the routine as a Device driver for Windows &
call the same from the application, but, I am looking out for a easy
solution. Please help...
Please ask in a more apprpriate newsgroup. This one is for discussing
the C++ language proper, not various platforms that support it. See
this FAQ for what is on-topic here and for a list of other places you
might consider asking:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Jul 6 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.