上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 36 下一页
摘要: CFindFile finder; if (finder.FindFile(_T("c:\\*.*")) ) { do { AtlTrace("%s\n",finder.GetFilePath()); } while ( finder.FindNextFile() ); } 阅读全文
posted @ 2009-10-16 16:27 Fan Zhang 阅读(366) 评论(0) 推荐(0)
摘要: 调用分四步: 1. bind(会在数据包中传送uuid,和函数的ID号) 2. ack 3. request 4. response 阅读全文
posted @ 2009-09-24 17:19 Fan Zhang 阅读(482) 评论(1) 推荐(0)
摘要: http://www.codeproject.com/KB/IP/rpcintro1.aspx http://www.codeproject.com/KB/IP/rpcintro2.aspx 在Windows XP SP2版本时,需要将RpcServerRegisterIf替换成RpcServerRegisterIf2。 使用如下: Have a global function called Se... 阅读全文
posted @ 2009-09-24 15:09 Fan Zhang 阅读(429) 评论(0) 推荐(0)
摘要: 1. 从nessus server点击获取邀请码 2. 下载plugin 3. 在server端建立账户和密码 4. 在client端连接server,扫描 阅读全文
posted @ 2009-09-21 16:40 Fan Zhang 阅读(599) 评论(0) 推荐(0)
摘要: netstat 显示established的连接 netstat –a 显示所有连接(按机器名和已知端口名显示) netstat –an 显示所有连接(按IP和端口号显示) netstat –r 显示路由信息 阅读全文
posted @ 2009-09-21 13:29 Fan Zhang 阅读(213) 评论(0) 推荐(0)
摘要:   class ATL_NO_VTABLE CPolyCtl : public CComObjectRootEx<CComSingleThreadModel>, public CStockPropImpl<CPolyCtl, IPolyCtl, &IID_IPolyCtl, &LIBID_POLYGONLib>, public CComContr... 阅读全文
posted @ 2009-09-20 23:31 Fan Zhang 阅读(256) 评论(0) 推荐(0)
摘要: In general, the simplest way to view the COM threading architecture is to think of all the COM objects in the process as divided into groups called apartments. A COM object lives in exactly one apartm... 阅读全文
posted @ 2009-09-20 21:35 Fan Zhang 阅读(333) 评论(0) 推荐(0)
摘要: //CLSID_PolyCtl CComPtr<IUnknown> spUnk; spUnk.CoCreateInstance(__uuidof(Beeper)); CComDispatchDriver spDisp = spUnk; CComVariant vResult; HRESULT hr = spDisp.Invoke0( L"Beep"... 阅读全文
posted @ 2009-09-17 23:38 Fan Zhang 阅读(255) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;class Base {public: Base() { cout << "In Base" << endl; cout << "Virtual Pointer = " << (int*)this << end... 阅读全文
posted @ 2009-09-11 17:51 Fan Zhang 阅读(251) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;class Base {public: Base() { cout << "In Base" << endl; cout << "Virtual Pointer = " << (int*)this << endl; cout << "Ad... 阅读全文
posted @ 2009-09-11 16:18 Fan Zhang 阅读(394) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 36 下一页