<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Разблокировка файла]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13856</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13856&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Разблокировка файла».]]></description>
		<lastBuildDate>Sun, 01 Jul 2018 01:22:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126589#p126589</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Сложновато</p></blockquote></div><p>В начале да.<br />Но стоит понять алгоритм и вызвать пару раз нужные функции - не сложнее, чем dllcall.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sun, 01 Jul 2018 01:22:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126589#p126589</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126584#p126584</link>
			<description><![CDATA[<p>Это в AHK сложновато, поскольку эти интерфейсы напрямую не поддерживаются, а c++, c# они по названиям и вызываются.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 30 Jun 2018 22:28:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126584#p126584</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126583#p126583</link>
			<description><![CDATA[<p>Сложновато. С чем связана такая замороченность в доках, почему не в привычном виде названий функций?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 30 Jun 2018 21:56:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126583#p126583</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126580#p126580</link>
			<description><![CDATA[<p><a href="https://msdn.microsoft.com/ru-ru/office/ms537032(v=vs.90)">IZoneIdentifier interface</a><br />Смотрим внизу страницы, где он определяется:</p><p><span class="postimg"><img src="https://i.imgur.com/U84qlJh.png" alt="https://i.imgur.com/U84qlJh.png" /></span></p><p>Значит можно посмотреть в Urlmon.h или в UrlMon.Idl. Находим эти файлы на компьютере или в гугле, в UrlMon.Idl, например, видим:</p><p><span class="postimg"><img src="https://i.imgur.com/7QF0YBQ.png" alt="https://i.imgur.com/7QF0YBQ.png" /></span></p><p>Это порядок методов, учитывая, что первые три обычно зарезервированы. GetId в списке первый, соответственно, его номер 4 (от 0 будет 3):<br /></p><div class="quotebox"><blockquote><p>DllCall(NumGet(NumGet(ZoneIdentifier+0) + <strong>3</strong>*A_PtrSize) ...</p></blockquote></div><p>URLZONE_INTERNET надо искать запросом <em>URLZONE_INTERNET constant</em></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 30 Jun 2018 18:34:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126580#p126580</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126579#p126579</link>
			<description><![CDATA[<p>Как вы это делаете, как нонять по ссылке IZoneIdentifier::GetId method что это NumGet(NumGet(ZoneIdentifier+0) + <strong>3</strong>*A_PtrSize), и что URLZONE_INTERNET надо искать в NativeMethodsOther.cs?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 30 Jun 2018 18:16:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126579#p126579</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126578#p126578</link>
			<description><![CDATA[<div class="codebox"><pre><code>file := &quot;D:\Downloads\qweqwe.dll&quot;
PersistentZoneIdentifier := &quot;{0968E258-16C7-4DBA-AA86-462DD61E31A3}&quot;
IZoneIdentifier := &quot;{CD45F185-1B21-48E2-967B-EAD743A8914E}&quot;
IPersistFile := &quot;{0000010b-0000-0000-C000-000000000046}&quot;
ZoneIdentifier := ComObjCreate(PersistentZoneIdentifier, IZoneIdentifier)
PersistFile := ComObjQuery(ZoneIdentifier, IPersistFile)
DllCall(NumGet(NumGet(PersistFile+0) + 5*A_PtrSize), &quot;ptr&quot;, PersistFile, &quot;ptr&quot;, &amp;file, &quot;UInt&quot;, 0)  ; load
DllCall(NumGet(NumGet(ZoneIdentifier+0) + 3*A_PtrSize), &quot;ptr&quot;, ZoneIdentifier, UIntP, zone)  ; GetId
MsgBox, % zone
ObjRelease(PersistFile)
ObjRelease(ZoneIdentifier)</code></pre></div><p>С твоим файлом у меня 3 выдаёт, что соответствует <a href="https://referencesource.microsoft.com/#WindowsBase/Shared/MS/Win32/NativeMethodsOther.cs,79">URLZONE_INTERNET</a>.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 30 Jun 2018 18:09:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126578#p126578</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126577#p126577</link>
			<description><![CDATA[<p>Спасибо, с FileExist работает. А можешь код привести, я эти DllCall(NumGet(NumGet( вообще не вкуриваю.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 30 Jun 2018 17:47:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126577#p126577</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126576#p126576</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Как проверить поток я само собой не знаю.</p></blockquote></div><div class="codebox"><pre><code>if FileExist(fileName . &quot;:Zone.Identifier:$DATA&quot;)</code></pre></div><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Malcev вроде привёл пример как удалить блокировку.</p></blockquote></div><p>Ну там же есть наверно способ не только как удалить, но и как получить: <a href="https://msdn.microsoft.com/ru-ru/office/ms537031(v=vs.90)">IZoneIdentifier::GetId method</a></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 30 Jun 2018 17:41:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126576#p126576</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126574#p126574</link>
			<description><![CDATA[<p>Кроме <a href="https://autohotkey.com/boards/viewtopic.php?t=45449">этой темы</a> ничего не нашёл.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 30 Jun 2018 17:28:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126574#p126574</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126573#p126573</link>
			<description><![CDATA[<p>Как проверить поток я само собой не знаю.<br /><strong>Malcev</strong> вроде привёл пример как удалить блокировку.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 30 Jun 2018 17:27:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126573#p126573</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126571#p126571</link>
			<description><![CDATA[<p>Наверно проверить, существует ли NTFS-поток с названием %fileName%:Zone.Identifier:$DATA. Или способом, аналогичным тому, что выше привёл <strong>Malcev</strong>.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 30 Jun 2018 17:22:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126571#p126571</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126569#p126569</link>
			<description><![CDATA[<p>А как можно узнать что файл заблокирован?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 30 Jun 2018 17:16:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126569#p126569</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126240#p126240</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Зачем использовать утилиту, если можно через апи?</p></blockquote></div><p>Я этот способ привел для коллекции.</p>]]></description>
			<author><![CDATA[null@example.com (Molotok)]]></author>
			<pubDate>Wed, 20 Jun 2018 03:25:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126240#p126240</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126213#p126213</link>
			<description><![CDATA[<p>Я так понял, это нужно <strong>serzh82saratov</strong> не для себя.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 19 Jun 2018 15:54:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126213#p126213</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разблокировка файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=126212#p126212</link>
			<description><![CDATA[<p>Да, рабочий способ.<br />Я, кстати, вообще эту дурацкую фичу вырубил через групповую политику.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 19 Jun 2018 15:19:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=126212#p126212</guid>
		</item>
	</channel>
</rss>
