This action will force synchronization from 精易科技/eapi, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#include "..\include_eapi_header.h"inline bool NetAddConnection(char* path, char* dev) {std::string device = dev;if (device.size() > 1 && device.back() != ':')device += ':';std::string remote_path = path;if (remote_path.size() > 2 && remote_path.substr(0, 2) != "\\\\")remote_path = "\\\\" + remote_path;NETRESOURCEA NetResource = { 0 };NetResource.dwType = RESOURCETYPE_ANY;NetResource.dwScope = RESOURCE_GLOBALNET;NetResource.dwUsage = RESOURCEUSAGE_CONNECTABLE;NetResource.lpLocalName = const_cast<char*>(device.c_str());NetResource.lpRemoteName = const_cast<char*>(remote_path.c_str());NetResource.lpProvider = NULL;if (::WNetAddConnection2A(&NetResource, 0, 0, 0) != NO_ERROR)return false;return true;}// 调用格式: SDT_BOOL 映射网络驱动器, 命令说明: "将指定的网络资源映射到本地驱动器。成功返回真;失败返回假。"// 参数<1>: 网络资源路径 SDT_TEXT, 参数说明: "要映射到本地的网络资源路径。"// 参数<2>: 驱动器 SDT_TEXT, 参数说明: "映射到本地的驱动器名。"EAPI_EXTERN_C void eapi_NetAddConnection_79_eapi(PMDATA_INF pRetData, INT nArgCount, PMDATA_INF pArgInf){if (pArgInf->m_pText && pArgInf[1].m_pText && *pArgInf[1].m_pText != '0円'){pRetData->m_bool = NetAddConnection(pArgInf->m_pText, pArgInf[1].m_pText);;}else{pRetData->m_bool = FALSE;}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。