可能我们都喜欢用盗版的软件,所以很讨厌密码之类的东东,怎么办呢,可以用一个密码查看器来解决这些问题,今天我就封装了一个DLL,可以满足大家的这种欲望!!只要你将鼠标放到密码框的位置! DLL的头文件很简单的啦! int __stdcall PassWord (char *pswd); pswd:即为密码; 界面为: 代码为: #include "windows.h" #include #include "windef.h" #include #include #include "pswd.h" #include "ps.h" static int panelHandle; int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { if (InitCVIRTE (hInstance, 0, 0) == 0) return -1; /* out of memory */ if ((panelHandle = LoadPanel (0, "pswd.uir", PANEL)) < 0) return -1; DisplayPanel (panelHandle); RunUserInterface (); DiscardPanel (panelHandle); return 0; } int CVICALLBACK QuitCallback (int panel, int control, int event, void *callbackData, int eventData1, int eventData2) { switch (event) { case EVENT_COMMIT: QuitUserInterface (0); break; } return 0; } int CVICALLBACK timer2 (int panel, int control, int event, void *callbackData, int eventData1, int eventData2) { char ps[200]; switch (event) { case EVENT_TIMER_TICK: ps[0] = '\0';   assWord (ps); SetCtrlVal (panelHandle, PANEL_STRING, ps); break; } return 0; }
J9yC0Bjm.rar (151.24 KB)
|