VB或VC编写-怎样隐藏或打乱其他窗体的标题字样-的代码
最近病毒在我身边猖獗了见到有"杀毒""木马"等字样的软件或网页都关了搞得我连杀毒工具都运行不了我想编写一个小软件可以打乱或隐藏其他窗体标题的但自己在编程方面又菜得很就在这...
最近病毒在我身边猖獗了 见到有"杀毒""木马"等字样的软件或网页都关了 搞得我连杀毒工具都运行不了 我想编写一个小软件可以打乱或隐藏其他窗体标题的 但自己在编程方面又菜得很 就在这跪求这方面的源代码了 VB或VC的均可 有劳大虾们了 (本人承诺如果够好的话,定追加分,本人虽菜但分还是有的)
展开
4个回答
展开全部
这段代码能把系统自带记事本的标题("无标题 - 记事本")改成“hello”
你可以先打开记事本,然后运行程序测试一下,
要想改变杀软的标题吧"无标题 - 记事本"该成杀软的标题,“hello”改成你想要的字符
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_SETTEXT = &HC
Private Sub Command1_Click()
Dim WindowHandle As Long
WindowHandle = FindWindow(vbNullString, "无标题 - 记事本")
SendMessage WindowHandle, WM_SETTEXT, 0, ByVal CStr("hello") '发送hello消息
End Sub
你可以先打开记事本,然后运行程序测试一下,
要想改变杀软的标题吧"无标题 - 记事本"该成杀软的标题,“hello”改成你想要的字符
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_SETTEXT = &HC
Private Sub Command1_Click()
Dim WindowHandle As Long
WindowHandle = FindWindow(vbNullString, "无标题 - 记事本")
SendMessage WindowHandle, WM_SETTEXT, 0, ByVal CStr("hello") '发送hello消息
End Sub
展开全部
VB的
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As String) As Long
Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Private Sub Command1_Click()
Dim hwnd As Long
hwnd = FindWindow(0&, "MEDIA (E:)") '原标题MEDIA (E:)
SetWindowText hwnd, "123" '将标题改为 "123"
End Sub
同楼上问,直接到别的电脑下过来就行,不要着病毒。
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As String) As Long
Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Private Sub Command1_Click()
Dim hwnd As Long
hwnd = FindWindow(0&, "MEDIA (E:)") '原标题MEDIA (E:)
SetWindowText hwnd, "123" '将标题改为 "123"
End Sub
同楼上问,直接到别的电脑下过来就行,不要着病毒。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
有这时间还不如想想怎么杀毒。。时间长了小心什么帐号之类的被盗,到时候哭都来不及。。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
焚烧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询