Wininet.dll Internet dial function.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sean Barnes

    #1

    Wininet.dll Internet dial function.

    Hello all,

    I am having a bit a problem with the InternetDial function in the
    wininet.dll.

    The problem is that despite passing in a null terminated string as the
    lpszConnectoid param to the function it simply picks the top connection in
    an alphanumericall y sorted list obtained from the rasapi32.dll
    RasEnumEntries function.

    Stranger still it works fine on XP but 2K shows this problem. I have
    searched MSDN and there is no indication that I should employ different
    methods of calling the function to achieve this.

    http://msdn.microsoft.com/library/de...ternetdial.asp

    This is the page dealing with this function.

    Other than this the function works correctly, dialing and establishing a
    connection and passing back a connection number that I later use via
    InternetHangup to end the call.

    Any one seen this one before or know a fix?

    Thanks in advance Folks.

    Sean.


  • Sean Barnes

    #2
    Re: Wininet.dll Internet dial function.

    Guys,

    I withdraw the question. I was incorrectly terminating the string "/0" not
    "\0" DOH!!!!!!!!!!!! !!!!!


    "Sean Barnes" <sbarnes@burbol .co.uk> wrote in message
    news:%23VaSm03g DHA.2436@tk2msf tngp13.phx.gbl. ..[color=blue]
    > Hello all,
    >
    > I am having a bit a problem with the InternetDial function in the
    > wininet.dll.
    >
    > The problem is that despite passing in a null terminated string as the
    > lpszConnectoid param to the function it simply picks the top connection in
    > an alphanumericall y sorted list obtained from the rasapi32.dll
    > RasEnumEntries function.
    >
    > Stranger still it works fine on XP but 2K shows this problem. I have
    > searched MSDN and there is no indication that I should employ different
    > methods of calling the function to achieve this.
    >
    >[/color]
    http://msdn.microsoft.com/library/de...ternetdial.asp[color=blue]
    >
    > This is the page dealing with this function.
    >
    > Other than this the function works correctly, dialing and establishing a
    > connection and passing back a connection number that I later use via
    > InternetHangup to end the call.
    >
    > Any one seen this one before or know a fix?
    >
    > Thanks in advance Folks.
    >
    > Sean.
    >
    >[/color]


    Comment

    Working...