<sw************@yahoo.comschrieb:
I am using a VB.Net COM library to provide multi-threading to an
existing VB6 app. Library functions that start background operations
create an EventWaitHandle to be used to cancel the operation. How can
I return some kind of reference to the EventWaitHandle to the VB6 app
that can be used later in another library function call to cancel the
operation?
Take a look at the overloaded constructor of 'EventWaitHandle'. Some
overloads accept a 'name' parameter which you can use to set the name of a
system-level event wait handle object. You can later use this name to get
access to the object by creating a new instance of the class and passing the
name to the constructor.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>