Settings | Sign in | Sign up

The author has 1 post.

【方法】判断光驱里是否有光盘

Floor 1 巨大八爪鱼 3/3/16 22:57
GetVolumeInformation(TEXT("G:\\"), NULL, NULL, NULL, NULL, NULL, NULL, NULL);
if (GetLastError() == ERROR_NOT_READY)
    cout << "光驱里无光盘" << endl;
else
    cout << "光驱里有光盘" << endl;

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.