extern int currentbuffer; void ScreenGrab(void) { short xdot,ydot; RECT rect; if(currentbuffer==0) { ydot=256; } else { ydot=0; } rect.x=10; rect.y=(ydot+10); rect.w=300; rect.h=236; StoreImage(&rect,(u_long *)0x80090000); DrawSync(0); printf("Image has been stored."); }