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...
阅读全文
摘要:先下载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-...
阅读全文
摘要:#include <LMACCESS.H>#include <LMERR.H>#include <LMAPIBUF.H>#include <iostream>#include <vector>using namespace std;vector<CString> m_account;GetOSUserName(){ LPUS...
阅读全文
摘要:BOOL GetLocalHostInfo(){ //得到主机名称 int nComputerNameLen; nComputerNameLen = MAX_COMPUTERNAME_LENGTH + 1; if(SOCKET_ERROR == gethostname(m_chLocalHostName,nComputerNameLen)) return FALSE; //////...
阅读全文

浙公网安备 33010602011771号