C Structures..

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

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     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu