{"id":364,"date":"2012-07-17T23:08:43","date_gmt":"2012-07-17T14:08:43","guid":{"rendered":"http:\/\/soundengine.jp\/wordpress\/tips\/?p=364"},"modified":"2014-02-06T23:42:36","modified_gmt":"2014-02-06T14:42:36","slug":"querydosdevice%e3%81%a7%e3%83%89%e3%83%a9%e3%82%a4%e3%83%96%e3%81%ae%e3%83%87%e3%83%90%e3%82%a4%e3%82%b9%e5%90%8d%e3%83%9e%e3%83%83%e3%83%94%e3%83%b3%e3%82%b0%e5%8f%96%e5%be%97","status":"publish","type":"post","link":"https:\/\/soundengine.jp\/wordpress\/tips\/tutorial\/364\/","title":{"rendered":"QueryDosDevice\u3067\u30c9\u30e9\u30a4\u30d6\u306e\u30c7\u30d0\u30a4\u30b9\u540d\u30de\u30c3\u30d4\u30f3\u30b0\u53d6\u5f97"},"content":{"rendered":"<h2 id=\"content_1_0\">QueryDosDevice  <a class=\"anchor_super\" id=\"ia541ca4\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-06-22#ia541ca4\" title=\"ia541ca4\"> <\/a><\/h2>\n<p>Windows\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u308b\u969b\u306b\u30c7\u30d0\u30a4\u30b9\u540d\u30de\u30c3\u30d4\u30f3\u30b0\u304c\u77e5\u308a\u305f\u3044\u5834\u5408\u304c\u3042\u308b\u3002\u3053\u308c\u3092\u77e5\u308b\u305f\u3081\u306eWin32 SDK\u306e\u95a2\u6570\u304cQueryDosDevice\u3067\u3042\u308b\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u3053\u306e\u95a2\u6570\u3067\u306f\u3001\u7279\u5b9a\u306eMS-DOS \u30c7\u30d0\u30a4\u30b9\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3057\u3059\u3079\u3066\u306eMS-DOS \u30c7\u30d0\u30a4\u30b9\u540d\u3092\u5217\u6319\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002\u82e5\u5e72\u7565\u3092\u3059\u308b\u304c\u3001<\/p>\n<pre>D:\r\nIDE#CdRomHL-DT-ST_DVDRAM_GSA-H42N\r\nDISPLAY1\r\nACPI\r\nVolume<\/pre>\n<p>\u4f8b\u3048\u3070\u3053\u3093\u306a\u611f\u3058\u3067\u51fa\u3066\u304f\u308b\u3002\u30c7\u30d0\u30a4\u30b9\u306b\u3088\u3063\u3066\u306f\u3001GUID\u306a\u3093\u304b\u3082\u4ed8\u52a0\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308b\u3002<\/p>\n<div class=\"jumpmenu\">\n<\/div>\n<h2 id=\"content_1_1\">\u30c9\u30e9\u30a4\u30d6\u306e\u30c7\u30d0\u30a4\u30b9\u540d\u30de\u30c3\u30d4\u30f3\u30b0  <a class=\"anchor_super\" id=\"w222cb4d\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-06-22#w222cb4d\" title=\"w222cb4d\"> <\/a><\/h2>\n<p>\u30c9\u30e9\u30a4\u30d6\u306b\u5bfe\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u540d\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u305d\u308c\u305e\u308c\u77e5\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u4f8b\u3048\u3070\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u4f7f\u3046\u3068\u3088\u3044\u3002(VisalC++\u306eMFC\/ATL\u306eCString\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3002<\/p>\n<pre>CString strDiskPath;\r\nTCHAR pTargetPath[ 4096 ];\r\n\r\nfor( int nCount = 0; nCount &lt; 26; nCount++ )\r\n{\r\n\tstrDiskPath.Format( _T( \"%c:\" ), _T( 'A' ) + nCount );\r\n\r\n\tif( 0 != QueryDosDevice( strDiskPath, pTargetPath, 4096 ) )\r\n\t{\r\n\t\t\/\/ \u767a\u898b\r\n\t}\r\n}<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3042\u308d\u3046\u304b\u3002QueryDosDevice\u306e3\u3064\u76ee\u306e\u5f15\u6570\u306f\u3001\u3069\u3046\u3084\u3089\u30d0\u30a4\u30c8\u6570\u3067\u306f\u306a\u304f\u6587\u5b57\u6570\u306e\u3088\u3046\u306a\u3093\u3067sizeof( pTargetPath )\u3068\u3059\u308b\u3068Unicode\u7248\u306e\u6642\u306b\u306f\u5fc5\u305a\u5931\u6557\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001sizeof( pTargetPath ) \/ sizeof( TCHAR )\u306a\u3069\u3068\u3059\u308c\u3070\u5b8c\u5168\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3060\u308d\u3046\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u308c\u306b\u3088\u3063\u3066\u53d6\u5f97\u3067\u304d\u308b\u30c7\u30d0\u30a4\u30b9\u540d\u30de\u30c3\u30d4\u30f3\u30b0\u3067\u3042\u308b\u304c\u3001my\u30de\u30b7\u30f3\u4f8b\u3048\u3070\u6b21\u306e\u3088\u3046\u306a\u6587\u5b57\u5217\u304c\u51fa\u3066\u304d\u305f\u3002<\/p>\n<blockquote>\n<p class=\"quotation\">\\Device\\CdRom0<\/p>\n<p class=\"quotation\">\\Device\\Harddisk1\\DP(1)0-0+d<\/p>\n<\/blockquote>\n<p>\u4e00\u3064\u76ee\u306f\u3001CD-ROM\u30c9\u30e9\u30a4\u30d6\u306e\u3067\u3001\u4e8c\u3064\u76ee\u306fClipDrive\u3068\u3044\u3046USB\u30e1\u30e2\u30ea\u3067\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>QueryDosDevice Windows\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u308b\u969b\u306b\u30c7\u30d0 &hellip; <a href=\"https:\/\/soundengine.jp\/wordpress\/tips\/tutorial\/364\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-364","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"_links":{"self":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":3,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":3305,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/364\/revisions\/3305"}],"wp:attachment":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/media?parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/categories?post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/tags?post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}