// UNCPath (cPath, [nMode]) // nMode & 1<<0 return original path on error FOXFUN( UNCPath ) { char const *s = _str_param(0, pp); char uni[MAX_PATH * 2]; DWORD size = sizeof(uni); if (NO_ERROR == <B>WNetGetUniversalName</B>(s, UNIVERSAL_NAME_INFO_LEVEL, uni, &size)) _RetChar(reinterpret_cast<UNIVERSAL_NAME_INFO *>(uni)->lpUniversalName); else _ret_str(_int_param(1, pp) & 1<<0 ? s : ""); } // 2001-10-12