Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 _taccess() 函数时遇到问题:
int nAccess = _taccess("x:", 06);
x是我的 DVD-ROM。该函数在 WinXP 和 Win7 中返回不同的结果:在 WinXP 中,该函数返回 -1,表示它不可写。但是在 Win7 中,该函数返回 0,表示它是可写的。
x
它是如何发生的?那么如果要检查DVD-ROM(如“x:”)可写怎么办?