_asm int 5h usually work as prtscrn. how can check this one. not only prntscrn any interrupt like reboot int 19h.. etc. can interrupt through application.
I tried to code for reboot
int _tmain(int argc, _TCHAR* argv[])
{
//_asm mov al, 2
_asm int 19h //reboot
//_asm in 3
}
its giving access violation
Neither of the BIOS or MSDOS interrupts (int 0x10 through 0x33 and a few rarely used ones with bigger numbers) will work in a Windows application. They can only work in DOS programs. Windows provides its functionality for Windows apps using different methods and all these BIOS/DOS ints are not supported in Windows apps. In Windows apps they cause an exception, and typically result in a termination of your program by the OS.