{"id":602,"date":"2008-05-16T01:02:07","date_gmt":"2008-05-16T01:02:07","guid":{"rendered":"http:\/\/6teen.ru\/?p=567"},"modified":"2008-05-16T01:02:07","modified_gmt":"2008-05-16T01:02:07","slug":"10066-2","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=602","title":{"rendered":"\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u043f\u0440\u0438\u0432\u043e\u0434\u0430"},"content":{"rendered":"<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u043f\u0440\u0438\u0432\u043e\u0434\u0430<br \/>\n<!--more--><\/p>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:580px; height:320px; overflow:auto\"><div>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u043f\u0440\u0438\u0432\u043e\u0434\u0430\n\nprocedure TForm1.Button1Click(Sender: TObject);\nvar\n  w: dword;\n  Root: string;\n  i: integer;\nbegin\n  w := GetLogicalDrives;\n  Root := '#:\\';\n  for i := 0 to 25 do\n  begin\n    Root[1] := Char(Ord('A') + i);\n    if (W and (1 shl i)) > 0 then\n      if GetDriveType(Pchar(Root)) = *** then\n        Form1.Label1.Caption := Root;\n  end;\nend;\n\n***\nDRIVE_UNKNOWN The drive type cannot be determined.\nDRIVE_NO_ROOT_DIR The root path is invalid. For example, no volume is mounted at the path.\nDRIVE_REMOVABLE The disk can be removed from the drive.\nDRIVE_FIXED The disk cannot be removed from the drive.\nDRIVE_REMOTE The drive is a remote (network) drive.\nDRIVE_CDROM The drive is a CD-ROM drive.\nDRIVE_RAMDISK The drive is a RAM disk.\n<\/div><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u043f\u0440\u0438\u0432\u043e\u0434\u0430<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[448,459],"tags":[874,928,1791],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/602"}],"collection":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=602"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/602\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}