I would like to use PrintScreen as a way for my program to take a screenshot. I have read that, in DOS at least, a screenshot is generated with interrupt 5. So, I need a way to call this interrupt. I tried to write a very simple program just to try this out:
Code:
int main()
{
__asm { int 5 }
return 0;
}
But I got an access violation when I ran it. So.. I guess user-level applications are not allowed to generate interrupts. My question is, can this be done with a driver? at all? I have no experience with drivers, so I want to know if this is at least possible before getting into it. Like I said in the title, this is for Windows 32-bit operating systems/processors.