468,468 Members | 2,673 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,468 developers. It's quick & easy.

Kernel mode programming in VC++

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
3 2392

"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

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
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.

Similar topics

12 posts views Thread by Andrew Chalk | last post: by
50 posts views Thread by Romeo Colacitti | last post: by
4 posts views Thread by tzuchien.chiu | last post: by
8 posts views Thread by Edward Diener | last post: by
3 posts views Thread by h.silent57 | last post: by
1 post views Thread by Sachin Gole | last post: by
20 posts views Thread by Jimmy | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.