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.