Could someone please assist me with this code, I have tried to create this from the help file and even though it compliles correctly, the RasEnumConnections API call will not return the correct results. My code is as follows.

{
int ReturnCode =0;
unsigned long *lpcb =0, *lpcConnections =0;
unsigned long *my_hRasConn =0;
RASCONN *lpRasConn[255];

lpRasConn[0]->dwSize = sizeof(RASCONN);

ReturnCode = RasEnumConnections(lpRasConn[0], lpcb, lpcConnections);

if(ReturnCode == ERROR_SUCCESS)
{
RasHangUp(lpRasConn);
}
my_hRasConn = my_hRasConn;
}

Thankyou