{"id":810,"date":"2008-05-29T05:01:12","date_gmt":"2008-05-29T05:01:12","guid":{"rendered":"http:\/\/6teen.ru\/?p=599"},"modified":"2008-05-29T05:01:12","modified_gmt":"2008-05-29T05:01:12","slug":"6097-2","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=810","title":{"rendered":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0441\u0448\u0430\u0440\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0434\u043b\u044f IP"},"content":{"rendered":"<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0441\u0448\u0430\u0440\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0434\u043b\u044f IP<br \/>\n<!--more--><\/p>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:580px; height:320px; overflow:auto\"><div>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0441\u0448\u0430\u0440\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0434\u043b\u044f IP\n\nprocedure Get_shares(IP: String; List: TStrings);\nvar\nhNetEnum: THandle;\nNetContainerToOpen: NETRESOURCE;\nResourceBuffer: array[1..2000] of TNetResource;\ni, a, ResourceBuf, EntiriesToGet: DWORD;\nbegin\nNetContainerToOpen.dwScope:=RESOURCE_GLOBALNET;\nNetContainerToOpen.dwType:=RESOURCETYPE_ANY;\nNetContainerToOpen.lpLocalName:=nil;\nNetContainerToOpen.lpRemoteName:=PChar(''+IP);\nNetContainerToOpen.lpProvider:=nil;\nWNetOpenEnum(RESOURCE_GLOBALNET, RESOURCETYPE_ANY, RESOURCEUSAGE_CONNECTABLE or RESOURCEUSAGE_CONTAINER, @NetContainerToOpen, hNetEnum);\nwhile TRUE do\nbegin\nRESOURCEBUF:= sizeof(ResourceBuffer);\nEntiriesToGet:=2000;\nif (NO_ERROR<> WNetEnumResource(hNetEnum, EntiriesToGet, @ResourceBuffer, ResourceBuf)) then\nbegin\nWNetCloseEnum(hNetEnum);\nexit;\nend;\nfor i:=1 to EntiriesToGet do\nList.Add(string(ResourceBuffer[i].lpRemoteName));\nend;\nend;\n\nprocedure TForm1.Button1Click(Sender: TObject);\nbegin\nGet_shares(edit1.text, Memo1.lines);\nend;\n<\/div><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0441\u0448\u0430\u0440\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0434\u043b\u044f IP<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[448,457],"tags":[1569,1675,1689],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/810"}],"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=810"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/810\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=810"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}