{"id":251,"date":"2001-11-27T00:00:00","date_gmt":"2001-11-26T15:00:00","guid":{"rendered":"http:\/\/localhost\/blog\/?p=240"},"modified":"2014-08-14T15:20:22","modified_gmt":"2014-08-14T06:20:22","slug":"%e3%83%aa%e3%83%a2%e3%83%bc%e3%83%88%e3%83%87%e3%82%b9%e3%82%af%e3%83%88%e3%83%83%e3%83%97%e3%81%a7%e5%ae%9f%e9%a8%93","status":"publish","type":"post","link":"https:\/\/denasu.com\/blog\/2001\/11\/diary251","title":{"rendered":"\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3067\u5b9f\u9a13"},"content":{"rendered":"<p>WinXP \u306e\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u4f53\u9a13\u3002\u53cb\u4eba\u304c\u81ea\u5b85\u306e\u30de\u30b7\u30f3\u3092\u5916\u304b\u3089\u64cd\u4f5c\u3057\u3066\u3044\u305f\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3055\u3048\u5927\u4e08\u592b\u306a\u3089\u304b\u306a\u308a\u4fbf\u5229\u305d\u3046\u3002\u305d\u308c\u306b\u95a2\u9023\u3057\u3066\uff08\uff1f\uff09\uff0cCD-ROM\u30c8\u30ec\u30a4\u3092\u30c9\u30e9\u30a4\u30d6\u3092\u6307\u5b9a\u3057\u3066\u958b\u9589\u3059\u308b\u65b9\u6cd5\u3002<\/p>\n<pre class=\"brush:cpp\">\r\nMCI_OPEN_PARMS  mciOpen;\r\nTCHAR           szElementName[4];\r\nTCHAR           szAliasName[32];\r\nDWORD           dwFlags;\r\nDWORD           dwAliasCount = GetCurrentTime();\r\nDWORD           dwRet;\r\nTCHAR           chDrive;\r\n\r\nchDrive = TEXT(drive_char);\r\n\r\nZeroMemory(&mciOpen, sizeof(mciOpen));\r\nmciOpen.lpstrDeviceType = (LPTSTR)MCI_DEVTYPE_CD_AUDIO;\r\nwsprintf(szElementName, TEXT(\"%c:\"), chDrive);\r\nwsprintf(szAliasName, TEXT\"CD%lu:\"), dwAliasCount);\r\n\r\nmciOpen.lpstrElementName = szElementName;\r\nmciOpen.lpstrAlias = szAliasName;\r\n\r\ndwFlags = MCI_OPEN_ELEMENT | MCI_OPEN_SHAREABLE | MCI_OPEN_ALIAS |\r\n          MCI_OPEN_TYPE | MCI_OPEN_TYPE_ID | MCI_WAIT;\r\n\r\ndwRet = mciSendCommand(0, MCI_OPEN, dwFlags, (DWORD)(LPVOID)&mciOpen);\r\n\r\nMCIDEVICEID wDeviceID = mciOpen.wDeviceID;\r\nmciSendCommand(wDeviceID, MCI_SET, MCI_SET_DOOR_OPEN, NULL);\r\n\r\nmciSendCommand(wDeviceID, MCI_CLOSE, 0, NULL);\r\n<\/pre>\n<p>\u30c8\u30ec\u30a4\u30af\u30ed\u30fc\u30ba\u306f\uff0cMCI_SET_DOOR_OPEN \u306e\u4ee3\u308f\u308a\u306b MCI_SET_DOOR_CLOSED \u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WinXP \u306e\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u4f53\u9a13\u3002\u53cb\u4eba\u304c\u81ea\u5b85\u306e\u30de\u30b7\u30f3\u3092\u5916\u304b\u3089\u64cd\u4f5c\u3057\u3066\u3044\u305f\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3055\u3048\u5927\u4e08\u592b\u306a\u3089\u304b\u306a\u308a\u4fbf\u5229\u305d\u3046\u3002\u305d\u308c\u306b\u95a2\u9023\u3057\u3066\uff08\uff1f\uff09\uff0cCD-ROM\u30c8\u30ec\u30a4\u3092\u30c9\u30e9\u30a4\u30d6\u3092\u6307\u5b9a\u3057\u3066\u958b\u9589\u3059\u308b\u65b9\u6cd5\u3002 MCI_OPEN_PARMS mciOpen; TCHAR szElementName[4]; TCHAR szAliasName[32]; DWORD dwFlags; DWORD dwAliasCount = GetCurrentTime(); DWORD dwRet; TCHAR chDrive; chDrive = TEXT(drive_char); ZeroMemory(&#038;mciOpen, sizeof(mciOpen)); mciOpen.lpstrDeviceType = (LPTSTR)MCI_DEVTYPE_CD_AUDIO; wsprintf(szElementName, TEXT(&#8220;%c:&#8221;), chDrive); wsprintf(szAliasName, TEXT&#8221;CD%lu:&#8221;), dwAliasCount); mciOpen.lpstrElementName = szElementName; mciOpen.lpstrAlias = szAliasName; dwFlags = MCI_OPEN_ELEMENT | MCI_OPEN_SHAREABLE | MCI_OPEN_ALIAS | MCI_OPEN_TYPE | MCI_OPEN_TYPE_ID | MCI_WAIT; dwRet = mciSendCommand(0, MCI_OPEN, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-251","post","type-post","status-publish","format-standard","hentry","category-computer"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4ZThs-43","_links":{"self":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/comments?post=251"}],"version-history":[{"count":2,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":2490,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/251\/revisions\/2490"}],"wp:attachment":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/media?parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/categories?post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/tags?post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}