Terminating a program through vb

Hi.
Is there a way of terminating a program through my vb program? Say, if I have notepad open and I want to close it through the vb program I'm writing, how would I do it. Send me code, that would be easier for me, since I am new to vb. Please make sure that code compiles in vb5. Thanks

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MikeP
I have done as you told me to, but the program is not closing the window.
I have put these lines in a module:
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Declare Function CloseWindow Lib "user32" (ByVal hwnd As Long) As Long

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

MikeP
I have done as you told me to, but the program is not closing the window.
I have put these lines in a module:
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Declare Function CloseWindow Lib "user32" (ByVal hwnd As Long) As Long

Hey CoRpSe
I have tried putting null string for both name and class [ H = FindWindow("", "") ] though no success. I have tried H = FindWindow("", "notepad"), no success there either. Another thing I found is everytime the program runs, H returns a value of 0. Correct me if I'm wrong but shouldn't that be anything but 0?

Thanks Mike. The program works. Just have a question. What if I want to close someother program not just notepad, say vb, sound recorder, media player or someother program. What is the process for that? Would I type in the name of program, the executable, the window caption or something else?