摘要: 1 #include "stdafx.h" 2 #include 3 #include 4 #include 5 #pragma comment(lib,"IPHlpApi.lib") 6 using namespace std; 7 8 BOOL GetLocalAdap... 阅读全文
posted @ 2015-01-21 20:51 柳絮飘诗 阅读(388) 评论(0) 推荐(0) 编辑
摘要: void GetPcNameAndIp(CString &strPCName,vector &vIp){ vIp.clear(); WSADATA wsadata; WORD dwVersionRequested; int err = WSAStartup(dwVersionRequeste... 阅读全文
posted @ 2015-01-21 20:19 柳絮飘诗 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1 BOOL NetShare(char * pShareName,char * pSharePath) 2 { 3 USES_CONVERSION; 4 SHARE_INFO_502 si502; 5 NET_API_STATUS nas; 6 ... 阅读全文
posted @ 2015-01-21 20:15 柳絮飘诗 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 1 void CreateDir(const string& strPath) 2 { 3 if (PathFileExists(strPath.c_str())) 4 { 5 return; 6 } 7 8 size_t sPrePos = 0... 阅读全文
posted @ 2015-01-21 19:36 柳絮飘诗 阅读(1382) 评论(0) 推荐(1) 编辑