Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 141
  • Last Modified:

Sharing handles between apps

Hello experts,

I am trying something that I am not sure if is possible or not.  I have one application that I wrote that connects to my File server using Wininet.dll.  I have another app that I would like to have get passed the active InternetConnect() handle so that it can continue communications with my File server.  The first app would be running and active when the second app tried to borrow its Internet handle.  IS this possible and if so which handle from Wininet in the first app should I attempt to pass?  Thanks for all suggestions and or answers.

1 Solution
No, that isn't possible. Not directly. The only way you might get this done is by using a DLL in between which has a shared data area (only standard DLL's). So you might let open the DLL a connection and share handles between threads and processes. Another way would be to use named pipes, but as far as I know you cannot create named pipes with VB.
Richie_SimonettiIT OperationsCommented:
GlowmanAuthor Commented:
OK, well I guess thats all the discussion on this question.  Thank you y2ksw.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now