Kernel mode programming in VC++

A

Arun

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
 
H

Howard

Arun said:
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
 
B

BigBrian

Arun said:
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.
 
M

mlimber

Arun said:
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-lite/how-to-post.html#faq-5.9

Cheers! --M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top