encryptor256,
As the link I posted showed, it most definitely is possible. That is from a kernel module or other ring-0 program. You aren't, however, going to write an application to do that. Even if you write a driver to do this, you'll basically have to completely reload the kernel once you want to return back so the default action here would be to just let the system reboot when your driver completes what it's doing in real mode... but if you're going to do that, why not just do what Frank said and boot off of a disk. it's easier and your program will begin execution in a known stable state.