Article ID: 160622
Article Last Modified on 7/11/2005
if (!RasDial(NULL, NULL, &MyRasdialParams, 0L, NULL, &hRasConn))
{
cb = sizeof(proj_buf);
proj_buf.dwSize = cb;
if (!RasGetProjectionInfo(hRasConn, RASP_PppIp, (LPVOID)&proj_buf, &cb))
printf("Client ip addr is %s\n", proj_buf.szIpAddress);
}
If your program did not establish the RAS connection, you need to call the
RasEnumConnections API to obtain a list of RAS connections already
established on your client machine. From this list of existing RAS
connections, you can obtain a RAS connection handle that you can then pass
into RasGetProjectionInfo (as the first parameter).
Keywords: kbapi kbhowto kbip kbnetwork KB160622