我的命令为什么返回值为 0,错在哪里了?
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPrivate Sub Command1_Click()
'Dim hwnd2 As Long
hwnd2 = FindWindow(Notepad, "新建文本文档.txt - 记事本")
MsgBox hwnd2
'SendMessage hwnd2, &H10, 0, 0
'postmessage hwnd2, &H10, 0, 0
'vbNullString
End Sub