{"id":83,"date":"2007-12-15T21:20:01","date_gmt":"2007-12-15T21:20:01","guid":{"rendered":"http:\/\/pblog.ru\/lab\/?p=13"},"modified":"2007-12-15T21:20:01","modified_gmt":"2007-12-15T21:20:01","slug":"games187","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=83","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u0444\u0430\u0439\u043b\u0430"},"content":{"rendered":"<p>\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0444\u0430\u0439\u043b\u0430?<br \/>\n<!--more--><\/p>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:580px; height:320px; overflow:auto\"><div>SetFileAttributes ('\u0444\u0430\u0439\u043b',\u0430\u0442\u0440\u0438\u0431\u0443\u0442);\n\n\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b:\nfaReadOnly\nfaHidden\nfaSysFile\nfaVolumeID\nfaDirectory\nfaArchive\nfaAnyFile\n\n\/\/\u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f\nprocedure TForm1.SetTimeFile(FileName: string);\nvar\n  FileHandle: THandle;\n  st: TSystemTime;\n  ft, ft1: TFileTime;\nbegin\n  FileHandle := CreateFile(PChar(FileName),\n    GENERIC_WRITE, FILE_SHARE_READ,\n    nil,\n    OPEN_EXISTING,\n    FILE_ATTRIBUTE_NORMAL, 0);\n  if FileHandle <> INVALID_HANDLE_VALUE then\n  begin\n    DateTimeToSystemTime(Now, st);\n    SystemTimeToFileTime(st, ft); \/\/ converts to file time format\n    LocalFileTimeToFileTime(ft, ft1);\n    SetFileTime(FileHandle, nil, @ft1, nil);\n    Windows.CloseHandle(FileHandle);\n  end\n  else\n    showmessage('Error!');\nend;\n<\/div><\/pre>\n<p><a href=\"http:\/\/www.programmersforum.ru\/member.php?u=703\">\u041a\u0432\u0435\u043d\u0434\u0438<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0444\u0430\u0439\u043b\u0430?<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,365],"tags":[185,341,342],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/83"}],"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\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=83"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/83\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}