There is currently 1 post.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
1082 0
【方法】判断光驱里是否有光盘
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 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;
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 1082 Replies: 0
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 3/3/16 22:57
Bar Good Posts
Announcements