<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Arial;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt'>I’m
using stunnel to send and receive emails in a Microsoft Access 2007
application. I would like to be able to programmatically close stunnel
when the user exits a form in the application which is used for sending and
receiving emails. I can close other programs running in Windows with the
code in this api:</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt'><a
href="http://www.mvps.org/access/api/api0025.htm">http://www.mvps.org/access/api/api0025.htm</a></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt'>This
code requires the “class name” of the application while it is
running in Windows in order to close it. Stunnel.exe does not appear to
have a class name. I’ve used the following additional api to
display the class names of all currently running apps:</span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt'><a
href="http://www.mvps.org/access/api/api0013.htm">http://www.mvps.org/access/api/api0013.htm</a></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt'>Stunnel.exe
does not show up in the list of running apps produced by this code. Is
there another way to determine the stunnel class name?</span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt'>Bill</span></font></p>
</div>
</body>
</html>