Sorry Tomas, I'm not sure if I follow you're requirements, but have you looked at the IntPtr class?
Jim > -----Original Message----- > From: Thomas Tomiczek [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 7:45 AM > To: [EMAIL PROTECTED] > Subject: [DOTNET] Marshalling HANDLE - how? > > > Hello, > > How do I "cover up" a handle in C# for interop through COM? > > I basically have to come up with a way to return a handle from a COM > object to C# in order then to use it in another managed C++ object. > > Anyone ever done this? > > Regards > > Thomas Tomiczek > THONA Consulting Ltd. > (Microsoft MVP C#/.NET) > > You can read messages from the DOTNET archive, unsubscribe > from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.