03 2010 档案

摘要:原文:http://www.cnblogs.com/baaigeini/archive/2009/03/09/1407078.html   一、获取当前文件的路径 1.   System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName      获取模块... 阅读全文
posted @ 2010-03-20 11:14 cxun 阅读(488) 评论(0) 推荐(0)
摘要:如果在很短的时间内连接获取随机数,会发现获取的随机数是同一个,下面例子可以实现短时间内快速获取不一样的随机数:   #include <windows.h> #include <iostream> using namespace std; //#define USE_QUICK_RAND DWORD WINAPI thread(PVOID pBuf) { &#... 阅读全文
posted @ 2010-03-07 22:47 cxun 阅读(536) 评论(0) 推荐(0)
摘要:下面是使用 CRITICAL_SECTION 实现互斥的例子:   #include <windows.h> #include <iostream> using namespace std; //#define USE_CRITICAL_SECTION CRITICAL_SECTION g_cs; DWORD WINAPI thread(PVOID pBuf)... 阅读全文
posted @ 2010-03-07 22:44 cxun 阅读(2496) 评论(0) 推荐(0)
摘要:参考原文:如何获取Windows系统登陆用户名 http://www.vckbase.com/document/viewdoc/?id=1241以SYSTEM权限运行的进程,若用GetUserName()方法获取到的用户名则为SYSTEM,若想获取当前登录系统的用户名,可用以下代码(支持XP及以上):BOOL CSecurityTool::GetLogUserXP(CString& str... 阅读全文
posted @ 2010-03-07 11:31 cxun 阅读(1305) 评论(0) 推荐(0)
摘要:原文:http://aimlab.cs.uoregon.edu/ISDPE10/papers.html (EI indexed; Technically sponsored by IEEE computer society)   The Second International Symposium on Data processing, Privacy, and E-comm... 阅读全文
posted @ 2010-03-04 09:00 cxun 阅读(387) 评论(0) 推荐(0)