Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: AW: How To Terminate Application From DLL ?


Message #1 by "Grau Kilian (rds)" <rds@a...> on Mon, 21 Oct 2002 13:45:16 +0200




AW: [pro_vb] How To Terminate Application From DLL ?




Hi Franky,


If you are execute your dll code true the VB App. just use the END command and it will stop all of it.
If you're using the dll in another PID you have to call API commands to close you app.



this bit of code woud help you:
Declare Function TerminateProcess Lib "kernel32" Alias "TerminateProcess" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long

cheers Kilian


-----Ursprüngliche Nachricht-----
Von: Franky Nathanael [mailto:franky@m...]
Gesendet: Montag, 21. Oktober 2002 12:41
An: professional vb
Betreff: [pro_vb] How To Terminate Application From DLL ?



Hi all...


Does anyone know how to terminate application from class module? I've
created an application that will be expired within 30 days, my function is
exist on class module (*.dll) and I want to terminate the application from
my dll, please help me....


Thank's in advance,


Franky




---
Visual C# - A Guide for VB6 Developers
This book will make it easy to transfer your skills 
from Visual Basic 6 to C#, the language of choice 
of the .NET Framework.
http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059







  Return to Index