Hi Jeremy,<br><br>I am in D7 and have the following 3 events implemented in several service application, which are onStart, onStop, onShutdown on the TService instance.<br><br>Best regards,<br><br>Paul Hectors<br><br><div>
<span class="gmail_quote">On 8/9/07, <b class="gmail_sendername">Jeremy Coulter</b> &lt;<a href="mailto:vss@vss.co.nz">vss@vss.co.nz</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<font style="font-family: tahoma; font-size: 10pt;"><p style="font-family: tahoma; font-size: 10pt;">&nbsp;
</p><div>&nbsp;Hi All.</div><div>I have built a windows service in D2k7, and the 
dman thing wont close down when Windows does a restart !!</div><div>I have 
added code to listen to &nbsp;&nbsp;&nbsp; WMQueryEndSession WMEndSession 
and WMClose&nbsp; with no joy.</div><div>&nbsp;</div><div>If I stop the 
service, it restarts fine.</div><div>&nbsp;</div><div>Anyone got any 
suggestions??</div><div>&nbsp;</div><div>Jeremy<br><br></div><p></p></font>

<br>_______________________________________________<br>NZ Borland Developers Group - Delphi mailing list<br>Post: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz
</a><br>Admin: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>Unsubscribe: send an email to 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br></blockquote></div><br>