Re: C Structures..

new topic     » goto parent     » topic index » view thread      » older message » newer message

Humm lets see:

(Not tested and being done from memory - which is quite fuzzy at times)

Be sure that you have opened the .dll first into a variable called rasapi32
and have declared RasEnumConnections.

RasEnumConnections = define_c_func(rasapi32,
"RasEnumConnectionsA",{C_POINTER,C_POINTER,C_POINTER}, C_LONG)

RasEnumConnectionsA is the ansi version of the .dll call.

Hope this helps,

Greg Harris


-----Original Message-----
From: Tom Eklof <darkspace at HOTMAIL.COM>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Sunday, August 23, 1998 6:34 AM
Subject: C Structures..


>I'm having a some trouble with the the function RasEnumConnections in
>rasapi32.dll:
>
>DWORD RasEnumConnections(
>
>    LPRASCONN  lprasconn,       // buffer to receive connections data
>    LPDWORD  lpcb,      // size in bytes of buffer
>    LPDWORD  lpcConnections // number of connections written to buffer
>);
>
>lprasconn is supposed to be a pointer to a buffer that receives an array
>of RASCONN structures, on for each connection. And before calling the
>function, an application must set the dwSize member of the first RASCONN
>structure in the buffer to sizeof(RASCONN) in order to identify the
>version of the structure being passed.
>
>(text from win32.hlp)
>
>Uh.. right. How should I handle this?
>
>(And why is the name of the function actually RasEnumConnectionsA?
>What's the A doing there?)
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu