#include<windows.h>
#include<string>
using namespace std;
HWND hWnd;
string str;
int con=0;
VOID CALLBACK onTimer( HWND hwnd,UINT message,UINT idTimer,DWORD dwTime);
void f()
{
for(int i=0;i<300;i++)
str+=' ';
}
HINSTANCE hInst;
LRESULT CALLBACK Wndproc(HWND,UINT,WPARAM,LPARAM);//windpws main' diclare
//以下初始化窗口类
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInst,LPSTR IpszCmdLine,int nCmdShow)
{
f();
MSG msg;
WNDCLASSEX wcex;
char IpszClassName[]="窗口";
char IpszTitle[]="密码查看器";
//窗口类定义
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = (WNDPROC)Wndproc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance,IDI_APPLICATION);
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = NULL;
wcex.lpszClassName =IpszClassName;
wcex.hIconSm = LoadIcon(wcex.hInstance, IDI_HAND);
//以下进行窗口类的注册
hInst=hInstance;
if(!RegisterClassEx(&wcex))
{
MessageBeep(0);
return FALSE;
}
//创建窗口
hWnd=CreateWindow(IpszClassName,IpszTitle,WS_OVERLAPPEDWINDOW ,0,0,300,200,NULL,NULL,hInstance,NULL);
ShowWindow(hWnd,nCmdShow);
UpdateWindow(hWnd);
HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(109));
while (GetMessage(&msg, NULL, 0, 0))
{
if (!TranslateAccelerator(msg.hwnd,hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return msg.wParam;
}
//窗口函数
LRESULT CALLBACK Wndproc(HWND hWnd,UINT message,WPARAM wParam,LPARAM Iparam)
{
if(con==0)
{
SetTimer(hWnd,0,20,onTimer);
con++;
SetWindowPos(hWnd,HWND_TOPMOST,0,0,0,0,SWP_SHOWWINDOW);
}
switch(message)
{
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hWnd,message,wParam,Iparam);
}
return 0;
}
VOID CALLBACK onTimer( HWND hwnd,UINT message,UINT idTimer,DWORD dwTime)
{
HDC hdc;
hdc = GetDC (hWnd) ;
LPPOINT point=new tagPOINT;
HWND hcap;
char buff[255],psw[255];
if(GetCursorPos(point))
{
TCHAR ls[300] ,Ls[300];
sprintf(ls,TEXT("鼠标:x:%d y:%d "),point->x,point->y);
TextOut(hdc,30,30,ls,strlen(ls));
hcap=WindowFromPoint(*point);
GetClassName(hcap,buff,255);
SendMessage(hcap,WM_GETTEXT,255,(LPARAM)psw);
sprintf(Ls,TEXT("密码: %s"),psw);
con=strlen(Ls);
TextOut(hdc,30+con,100,TEXT(str.c_str()),str.length());
TextOut(hdc,30,100,TEXT(Ls),con);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
API密码查看器
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共4个文件
exe:2个
cpp:2个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
需积分: 0 10 下载量 103 浏览量
2008-08-21
22:02:23
上传
评论
收藏 28KB RAR 举报
温馨提示
用于识别星号的密码(编辑框)。
资源详情
资源评论
资源推荐
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/EXE.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/EXE.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 4 条
- 1
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/x-dosexec](https://img-home.csdnimg.cn/images/20210720083343.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![avatar](https://profile-avatar.csdnimg.cn/0441dccebabd4ccdb57802328bf5c85d_lauo1188.jpg!1)
lauo
- 粉丝: 514
- 资源: 41
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)
评论0