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怎样给他赋值哦??
谢谢!!!!
{
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怎样给他赋值哦??
谢谢!!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货