小小鸭

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年6月29日

摘要: '添加 Command1 Timer1Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPrivate Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMs 阅读全文
posted @ 2012-06-29 16:31 小小鸭 阅读(718) 评论(0) 推荐(0) 编辑

摘要: '添加 Command1Private Sub Command1_Click() MsgBox "CPU系列号:" & GetCpuEnd SubPublic Function GetCpu() As String On Error Resume Next Dim TmpCode$ Dim objWMIService As Object, objItem As Object, colItems As Object Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") Set co 阅读全文
posted @ 2012-06-29 16:13 小小鸭 阅读(193) 评论(0) 推荐(0) 编辑

摘要: '添加 Picture1 Picture2 Command1 Imagelist1 ListView1Option Explicit'**************************** 进程 APIPrivate Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPrivate Declare Function GetParent 阅读全文
posted @ 2012-06-29 16:11 小小鸭 阅读(219) 评论(0) 推荐(0) 编辑

摘要: '添加 Command1Private Sub Command1_Click() Dim aa$, winIP As Object aa = aa & "本机电脑名称:" & Environ("computername") & vbCrLf aa = aa & "本机用户名称:" & Environ("username") & vbCrLf Set winIP = CreateObject("MSWinsock.Winsock") MsgB 阅读全文
posted @ 2012-06-29 15:56 小小鸭 阅读(282) 评论(0) 推荐(0) 编辑

摘要: '添加Command1Option ExplicitConst NORMAL_PRIORITY_CLASS = &H20&Const STARTF_USESTDHANDLES = &H100&Const STARTF_USESHOWWINDOW = &H1Private Type SECURITY_ATTRIBUTES nLength As Long lpSecurityDescriptor As Long bInheritHandle As LongEnd TypePrivate Type STARTUPINFO cb As Long lpRe 阅读全文
posted @ 2012-06-29 15:55 小小鸭 阅读(393) 评论(0) 推荐(0) 编辑

摘要: '添加 Command1和ListView1Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As LongPrivate Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lp 阅读全文
posted @ 2012-06-29 15:49 小小鸭 阅读(1577) 评论(0) 推荐(0) 编辑