08 2010 档案

摘要:编译环境VS2008,UNICODE编码#include <atlconv.h>BYTE m_MAC[10][6];//the mac address of this computer, 10 NICsint m_nMAC;void CGetAdapterMacDlg::GetMac(){  PIP_ADAPTER_INFO pAdapterInfo;  PIP_ADAPTER_INF... 阅读全文
posted @ 2010-08-24 16:31 zhouli 阅读(673) 评论(0) 推荐(1)
摘要:先下载deelx.h文件/Files/pbreak/deelx.zip举个简单的例子:#include "deelx.h" //包含头文件BOOL CContrlPane::IPCheck(CString ipAddress){  // 25[0-5] (250 - 255)  // 2[0-4]\\d (200 - 249)  // [0-1]\\d{2} (000 - 199)  // [1-... 阅读全文
posted @ 2010-08-23 13:16 zhouli 阅读(691) 评论(0) 推荐(0)
摘要:#include <LMACCESS.H>#include <LMERR.H>#include <LMAPIBUF.H>#include <iostream>#include <vector>using namespace std;vector<CString> m_account;GetOSUserName(){  LPUS... 阅读全文
posted @ 2010-08-23 11:22 zhouli 阅读(493) 评论(0) 推荐(0)
摘要:BOOL GetLocalHostInfo(){  //得到主机名称  int nComputerNameLen;  nComputerNameLen = MAX_COMPUTERNAME_LENGTH + 1;  if(SOCKET_ERROR == gethostname(m_chLocalHostName,nComputerNameLen))    return FALSE;  //////... 阅读全文
posted @ 2010-08-20 16:47 zhouli 阅读(254) 评论(0) 推荐(0)