Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Kernel mode programming in VC++

0 views
Skip to first unread message

Arun

unread,
Jul 6, 2006, 11:05:11 AM7/6/06
to
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

Kerem Gümrükcü

unread,
Jul 12, 2006, 10:27:31 AM7/12/06
to
Hi,

you cant execute priviliged instructions in user mode, since this is the
layer three of the x86 architecture. You must pass the usermode/kernelmode
boundary with e.g IOCTL or another method (socket, IPC, etc.) and give
your user-mode application the results. Best and safe is IOCTL i
recommend...

I think your question fits here: http://www.osronline.com/
Maybe they can help you...


Best Regards

Kerem Gümrükcü


"Arun" <arunku...@in.bosch.com> schrieb im Newsbeitrag
news:e8j8rb$2uk$1...@ns2.fe.internet.bosch.com...

0 new messages