Is there a way to use in-line assembler instructions (IN,OUT,STI and CLI) in Visual C without having

J

Jaime Boloix

Is there a way to use in-line assembler instructions (IN,OUT, STI and CLI)
in Visual C without having to make a SYS driver with the DDK?
 
J

Jaime Boloix

Thanks, Wouldn't it be nice for it to be that simple?
It's my mistake for not being so clear. That works only in Windows 98, the
problem is with Windows 2000 and Windows XP which allow user programs to run
only in user mode and this are instructions that would only work in kernel
mode. Remember this is a Windows2000 newsgroup.
 
R

Richard MacKinnon

Ah, I knew there was more to your question, my assembler is very rusty

You are right these are priviledged instructions that cause the NT-based OSs
to terminate a user mode application

My guess is what you first deduced, you need to communicate with a driver
operating at ring 0
 

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

Top