|
-
Nov 30th, 1999, 04:15 AM
#1
Thread Starter
Junior Member
Hi!!!
My Windows NT Task Manager is driving me crazy. Using VB, how can I end Winword.exe application from my "Processes" tab? The "Processes" tab doesn't recognize the word "Quit". "Applications" tab does not show that the application is running at all.
Please tell me what to do if you can!
Thank you!
-
Nov 30th, 1999, 04:47 AM
#2
Try:
Code:
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_CLOSE = &H10
Private Sub Command1_Click()
'OpusApp is the Classname of MSWord
Call SendMessage(FindWindow("OpusApp", vbNullString), WM_CLOSE, 0&, ByVal 0&)
End Sub
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Dec 1st, 1999, 04:16 AM
#3
Thread Starter
Junior Member
Aaron, thanks so much!
Is there anything you don't know? 
You've helped me on several ocasions already.
Thanks again.
Olga.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|