求VB高手进行解答,高手请进!!!!!

PublicDeclareFunctionFindWindowLib"user32"Alias"FindWindowA"(ByVallpClassNameAsString... Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Integer, ByVal nCmdShow As Integer) As Integer
Public Declare Function SetFocus Lib "user32" (ByVal hwnd As Integer) As Integer
Public Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, ByVal lpProcessAttributes As Int32, ByVal lpThreadAttributes As Int32, ByVal bInheritHandles As Int32, ByVal dwCreationFlags As Int32, ByVal lpEnvironment As Int32, ByVal lpCurrentDriectory As Int32, ByRef lpStartupInfo As STARTUPINFO, ByRef lpProcessInformation As PROCESS_INFORMATION) As Int32
Public Declare Function CreateDesktop Lib "user32" Alias "CreateDesktopA" (ByVal lpszDesktop As String, ByVal lpszDevice As String, ByVal pDevmode As Int32, ByVal dwFlags As Int32, ByVal dwDesiredAccess As Int32, ByVal lpsa As Int32) As Int32
Public Declare Function CloseDesktop Lib "user32" (ByVal hDesktop As Int32) As Int32
Public Declare Function SwitchDesktop Lib "user32" (ByVal hDesktop As Int32) As Int32
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Int16, ByVal wMsg As Int16, ByVal wParam As Int16, ByVal lParam As Int16) As Int16
Public Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As IntPtr, ByVal lpString As String, ByVal cch As IntPtr) As IntPtr
Public Declare Function EnumWindows Lib "user32.dll" (ByVal lpEnumFunc As Callback, ByVal lParam As IntPtr) As Boolean
Public Delegate Function Callback(ByVal hWnd As IntPtr, ByVal lParam As IntPtr) As Boolean
Public Declare Function SetParent Lib "user32" (ByVal hWndChild As Int32, ByVal hWndNewParent As Int32) As Int32
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Int32, ByVal nIndex As Int32, ByVal dwNewLong As Int32) As Int32
Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Int32, ByVal nIndex As Int32) As Int32
Public Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Int32, ByVal hWndInsertAfter As Int32, ByVal x As Int32, ByVal y As Int32, ByVal cx As Int32, ByVal cy As Int32, ByVal wFlags As Int32) As Int32
Public Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Int32, ByRef lpRect As RECT) As Int32
Public Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Int32, ByVal dwMilliseconds As Int32) As Int32
Public Const WS_CAPTION = &HC00000 Public Const WS_THICKFRAME = &H40000 Public Const SWP_NOMOVE = &H2 Public Const SWP_NOSIZE = &H1 Public Const SWP_NOZORDER = &H4 Public Const SWP_NOACTIVATE = &H10 Public Const SWP_FRAMECHANGED = &H20
Public Const HWND_TOP = 0 Public Const GWL_STYLE& = (-16)
Public Const WM_CLOSE = &H10 Public Const INFINITE = -1&
就是这些代码在做什么???
还有那个“user32”在干什么事情?
每个句子里都有lib,lib 是干什么用的??
展开
 我来答
ZaZeZo
2008-08-01 · 超过24用户采纳过TA的回答
知道答主
回答量:50
采纳率:0%
帮助的人:74.7万
展开全部
简单讲:
user32.dll gdi32.dll kenerl.dll 等都是系统的DLL, VB加载他们, 使用其中的函数完成特定的工作, lib 就是一种标示, 告诉VB要加载什么DLL
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
385762
2008-07-30 · TA获得超过463个赞
知道小有建树答主
回答量:1098
采纳率:0%
帮助的人:651万
展开全部
这时api的声明,lib表示库,user32表示系统的dll文件user32.dll这个文件
需要使用它里面的api函数,这种声明方式是固定的
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
百度网友133cb66fa
2008-07-30 · TA获得超过324个赞
知道小有建树答主
回答量:692
采纳率:0%
帮助的人:385万
展开全部
就是,,,乱贴了这么长的代码,,日了
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
百度网友b05cbd91c
2008-07-29 · 超过71用户采纳过TA的回答
知道小有建树答主
回答量:250
采纳率:0%
帮助的人:212万
展开全部
你想知道什么...?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(2)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式