读取Rockey4
參照Rockey4文檔,mark一下。
#include<windows.h> #include "Ry4S.h" #include <stdio.h> #pragma comment(lib,"Ry4S.lib")void main(int argc,char* argv[]) {if (argc < 3){printf("please input p1 and p2 password\n");return;}WORD retcode;WORD handle,p1,p2,p3,p4;DWORD lp1,lp2;BYTE buffer[1024];//默認(rèn)密碼//p1 = 0xc44c;//p2 = 0xc8f8;//將密碼轉(zhuǎn)換成16進(jìn)制p1 = strtol(argv[1],NULL,16);p2 = strtol(argv[2],NULL,16);p3 = 0;p4 = 0;//讀取ukeyretcode = Rockey(RY_FIND,&handle,&lp1,&lp2,&p1,&p2,&p3,&p4,buffer);if (retcode){printf("Rockey not found!\n");return;}printf("ukey id is %x\n",lp1); }
?
總結(jié)