DIY自己的windows xp SP2安装盘.

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/naxin/article/details/90445

1. 抓安装光盘为xp.iso

2. 复制光盘内容到d:/xp目录下

3. 下载xp sp2, 命名为sp2.exe

4. 执行 sp2.exe -s:d:xp

5. 用ultraISO打开xp.iso,删除原来内容,加入d:/xp内所有文件.

6. 新的xp.iso即为集成sp2的windows XP sp2安装盘映像文件.

Enjoy !!

展开阅读全文

Windows XP SP2中调用WSALookupServiceBegin出现异常

08-13

我想利用Network Location Awareness来枚举系统中的可用连接,然后写了如下代码:rn WORD wVersionRequested;rn WSADATA wsaData;rn int err;rn rn wVersionRequested = MAKEWORD( 2, 2 );rn rn err = WSAStartup( wVersionRequested, &wsaData );rn if ( err != 0 ) rn /* Tell the user that we could not find a usable */rn /* WinSock DLL. */rn return err;rn rn rn /* Confirm that the WinSock DLL supports 2.2.*/rn /* Note that if the DLL supports versions later */rn /* than 2.2 in addition to 2.2, it will still return */rn /* 2.2 in wVersion since that is the version we */rn /* requested. */rn rn if ( LOBYTE( wsaData.wVersion ) != 2 ||rn HIBYTE( wsaData.wVersion ) != 2 ) rn /* Tell the user that we could not find a usable */rn /* WinSock DLL. */rn WSACleanup( );rn return WSAVERNOTSUPPORTED; rn rn rn /* The WinSock DLL is acceptable. Proceed. */rn WSAQUERYSET qsRestrictions;rn DWORD dwControlFlags;rn HANDLE valHandle = 0;rn std::list lst;rn qsRestrictions.dwSize = sizeof(WSAQUERYSET);rn qsRestrictions.dwNameSpace = 0; //NS_ALL;rn dwControlFlags = 0x0FF0; //LUP_RETURN_ALL;rnrn int result = WSALookupServiceBegin(&qsRestrictions,dwControlFlags, &valHandle);rn rn while (0 == result)rn rn DWORD dwBufferLength = sizeof(WSAQUERYSET);rn WSAQUERYSET *pResult=new WSAQUERYSET;rn pResult->dwSize=sizeof(WSAQUERYSET);rnrn rn result = WSALookupServiceNext(valHandle, dwControlFlags,&dwBufferLength, pResult);rnrn if (0==result)rn rn lst.push_back(*pResult);rn rn delete pResult;rnrn rnrnrn WSACleanup();rn结果每次程序跑到WSALookupServiceBegin那行时(DEBUG模式),就得到如下提示:rnUnhandled exception at 0x77c47fd4 in Win32SockIterator.exe: 0xC0000005: Access violation reading location 0xcccccccc.rnrn可有高人能给予正解?rn 论坛

没有更多推荐了,返回首页