Sharing handles between apps

Posted on 2003-03-26
Medium Priority
Last Modified: 2011-09-20
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.

Question by:Glowman
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

y2ksw earned 500 total points
ID: 8210778
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.
LVL 16

Expert Comment

ID: 8211094

Author Comment

ID: 8224434
OK, well I guess thats all the discussion on this question.  Thank you y2ksw.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month12 days, 11 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question