VB中为何OpenProcess总是返回0???? 15
DimhwndAsLongDimpidAsLongDimpHandleAsLonghwnd=FindWindow(vbNullString,"计算器")GetWindow...
Dim hwnd As Long
Dim pid As Long
Dim pHandle As Long
hwnd = FindWindow(vbNullString, "计算器")
GetWindowThreadProcessId hwnd, pid
pHandle = OpenProcess(STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or SPECIFIC_RIGHTS_ALL, False, pid)
Label1.Caption = hwnd & Chr(13) & pid & Chr(13) & pHandle
其中hwnd 和pid的值都已经获取
各位大侠,高手快来呀,本人已经提高悬赏分了,希望你们能帮下忙,稍微花个一两分钟帮我这个忙,本人不胜感激,谢了! 展开
Dim pid As Long
Dim pHandle As Long
hwnd = FindWindow(vbNullString, "计算器")
GetWindowThreadProcessId hwnd, pid
pHandle = OpenProcess(STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or SPECIFIC_RIGHTS_ALL, False, pid)
Label1.Caption = hwnd & Chr(13) & pid & Chr(13) & pHandle
其中hwnd 和pid的值都已经获取
各位大侠,高手快来呀,本人已经提高悬赏分了,希望你们能帮下忙,稍微花个一两分钟帮我这个忙,本人不胜感激,谢了! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询