const CString CGTNetwork::GetRemoteName(const LPNETRESOURCE lpNetRS)
{
        CString str;        if ((lpNetRS != NULL) && IsServer(lpNetRS) && (lpNetRS->lpRemoteName != NULL))
        {
                str = lpNetRS->lpRemoteName;                if (0 == str.Left(2).Compare("\\\\"))
                        str.Delete(0, 2);
        }        return str;
}
在程序中怎样调用,可以取得网络上机器的ip呢?
LPNETRESOURCE lpNetRS怎样给他赋值哦??
谢谢!!!!