{"id":639,"date":"2008-05-18T01:03:02","date_gmt":"2008-05-18T01:03:02","guid":{"rendered":"http:\/\/6teen.ru\/?p=608"},"modified":"2008-05-18T01:03:02","modified_gmt":"2008-05-18T01:03:02","slug":"4685","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=639","title":{"rendered":"\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430"},"content":{"rendered":"<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430<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\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\n\nunit Unit1;\n\ninterface\n\nuses\nWindows, Messages, SysUtils, Classes, Graphics, Controls, Forms,\nDialogs, StdCtrls;\n\ntype\nTForm1 = class(TForm)\nButton1: TButton;\nprocedure Button1Click(Sender: TObject);\nend;\n\nPTIME_OF_DAY_INFO = ^TIME_OF_DAY_INFO;\nTIME_OF_DAY_INFO = record\ntod_elapsedt : DWORD;\ntod_msecs    : DWORD;\ntod_hours    : DWORD;\ntod_mins     : DWORD;\ntod_secs     : DWORD;\ntod_hunds    : DWORD;\ntod_timezone : Longint;\ntod_tinterval: DWORD;\ntod_day      : DWORD;\ntod_month    : DWORD;\ntod_year     : DWORD;\ntod_weekday  : DWORD;\nend;\n\nfunction NetRemoteTOD(Server: PWChar; var pBuffer: PTIME_OF_DAY_INFO): DWORD;\nstdcall; external 'NETAPI32.DLL';\nfunction NetApiBufferFree(pBuffer: Pointer): DWORD;\nstdcall; external 'NETAPI32.DLL';\n\nvar\nForm1: TForm1;\n\nimplementation\n\n{$R *.dfm}\n\nprocedure TForm1.Button1Click(Sender: TObject);\nvar\nTOD: PTIME_OF_DAY_INFO;\nbegin\nif NetRemoteTOD('\\\\192.168.2.108', TOD) = 0 then\ntry\nwith TOD^ do\nShowMessage(Format('Data %d %d %d Time %d:%d:%d',\n[tod_day, tod_month, tod_year, tod_hours - (tod_timezone div 60),\ntod_mins, tod_secs]));\nfinally\nNetApiBufferFree(TOD);\nend\nelse\nRaiseLastOSError;\nend;\n\nend.\n<\/div><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430<\/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":[647,814,1574,1804],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/639"}],"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=639"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/639\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=639"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}