| 
 
| 赞 | 2 |  
| VIP | 143 |  
| 好人卡 | 1 |  
| 积分 | 1 |  
| 经验 | 216792 |  
| 最后登录 | 2019-10-10 |  
| 在线时间 | 24 小时 |  
 Lv1.梦旅人 
	梦石0 星屑61 在线时间24 小时注册时间2008-8-5帖子1924 | 
| 更新了……以上奶油和夏娜的测试均通过 ^^ 
 修正的问题是:
 调用 OpenThread 的时候需要申请访问权限,如果像我之前那样用的是 THREAD_ALL_ACCESS(即所有可能的权限),在 Windows Vista 及更新的 Windows 平台下可以正常运行,而在 Vista 之前就不行了,因为——
 
 Windows Server 2003 and Windows XP/2000:  The value of the THREAD_ALL_ACCESS flag increased on Windows Server 2008 and Windows Vista. If an application compiled for Windows Server 2008 and Windows Vista is run on Windows Server 2003 or Windows XP/2000, the THREAD_ALL_ACCESS flag contains access bits that are not supported and the function specifying this flag fails with ERROR_ACCESS_DENIED. To avoid this problem, specify the minimum set of access rights required for the operation. If THREAD_ALL_ACCESS must be used, set _WIN32_WINNT to the minimum operating system targeted by your application (for example, #define _WIN32_WINNT _WIN32_WINNT_WINXP). 另外还发现了在 Windows XP 下 RM 游戏的进程只创建了 6 个线程,而不像 Vista 有 7 个,于是修正为取最后一个线程(按照创建顺序)
 | 
 |