<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6071&amp;type=atom" />
	<updated>2011-08-01T20:05:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6071</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50332#p50332" />
			<content type="html"><![CDATA[<p>Решение уже есть (не на АХК), в <em>аську</em> послано сообщение...</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-08-01T20:05:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50332#p50332</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50324#p50324" />
			<content type="html"><![CDATA[<p>Grey ... можешь написать мне в аську ...&nbsp; обсудить реализацию ... если на ахк нет возможности сделать ... можно и на cpp написать ... темболее есть сорсы ntregedit</p>]]></content>
			<author>
				<name><![CDATA[Life85]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27118</uri>
			</author>
			<updated>2011-08-01T16:19:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50324#p50324</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50309#p50309" />
			<content type="html"><![CDATA[<p>Можете написать в icq ...&nbsp; 999464</p>]]></content>
			<author>
				<name><![CDATA[Life85]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27118</uri>
			</author>
			<updated>2011-07-31T20:05:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50309#p50309</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50308#p50308" />
			<content type="html"><![CDATA[<p>хотелось бы на AHK ...&nbsp; на AHK есть трудности в реализации ?</p>]]></content>
			<author>
				<name><![CDATA[Life85]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27118</uri>
			</author>
			<updated>2011-07-31T20:03:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50308#p50308</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50306#p50306" />
			<content type="html"><![CDATA[<p>Если язык не столь важен, можно попробовать написать на С++, откомпилировать в *.ехе, данные вводить посредству командной строки как аргументы. Вас такой вариант устраивает?</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-07-31T19:44:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50306#p50306</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50304#p50304" />
			<content type="html"><![CDATA[<p>В общем нужно реализовать переименование раздела реестра именно с помощью NtRenameKey ...&nbsp; отблагодарю 300 руб. )</p>]]></content>
			<author>
				<name><![CDATA[Life85]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27118</uri>
			</author>
			<updated>2011-07-31T19:13:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50304#p50304</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50300#p50300" />
			<content type="html"><![CDATA[<p>Дело не в правах ...</p>]]></content>
			<author>
				<name><![CDATA[Life85]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27118</uri>
			</author>
			<updated>2011-07-31T09:18:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50300#p50300</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50296#p50296" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Life85 пишет:</cite><blockquote><p>...необходимость удалить один раздел рестра для того, чтобы сбросить триал у одной программы...</p></blockquote></div><p>Следует проверить права на раздел который хотите удалить (Разрешения...), если от программы есть драйвер, то дезактивируйте его на время удаления, хотя если Вам удалось его (раздел) переименовать, то дело тут не в драйвере...</p><div class="codebox"><pre><code>NameKey := &quot;SYSTEM\ControlSet002\Control\Class\123&quot;
NeWNameKey := &quot;SYSTEM\ControlSet002\Control\Class\666&quot;
Result := RegRename(&quot;HKLM&quot;, NameKey, NeWNameKey)
RegRename(RegRoot, Key, Target)
{
   HKLM := HKEY_LOCAL_MACHINE := 0x80000002
   Result := DllCall(&quot;Advapi32.dll\RegOpenKeyEx&quot;
                   , Ptr, %RegRoot%
                   , Str, Key
                   , UInt, 0
                   , UInt, 0x20019 ; - read access
                   , &quot;Ptr *&quot;, hKey)
   CheckProcess(&quot;RegOpenKeyEx&quot;, Result)
   If !Result
      {
         Result := DllCall(&quot;Advapi32.dll\RegCreateKeyEx&quot;
                          , Ptr, %RegRoot%
                          , Str, Target
                          , UInt, 0
                          , UInt, 0
                          , UInt, 0
                          , UInt, 0x4 ; - create subkey
                          , UInt, 0
                         , &quot;Ptr *&quot;, hNewKey
                          , UInt, 0)
         CheckProcess(&quot;RegCreateKeyEx&quot;, Result)
         If !Result
            {
               Result := DllCall(&quot;Advapi32.dll\RegCopyTree&quot;
                                , Ptr, hKey
                                , UInt, 0
                                , Ptr, hNewKey)
               CheckProcess(&quot;RegCopyTree&quot;, Result)
               If !Result
                  {
                     DllCall(&quot;Advapi32.dll\RegCloseKey&quot;
                            , Ptr, hKey)
                     RegDelete, % RegRoot, % Key
                     CheckProcess(&quot;RegCloseKey&quot;, Result)
                     DllCall(&quot;Advapi32.dll\RegCloseKey&quot;
                            , Ptr, hNewKey)
                     Return, Result = 0
                  }
               Else
                  {
                     DllCall(&quot;Advapi32.dll\RegCloseKey&quot;
                            , Ptr, hNewKey)
                     RegDelete, % RegRoot, % Target
                     CheckProcess(&quot;RegCloseKey&quot;, Result)
                     DllCall(&quot;Advapi32.dll\RegCloseKey&quot;
                            , Ptr, hKey)
                     Return, Result = 0
                  }
            }
         DllCall(&quot;Advapi32.dll\RegCloseKey&quot;, Ptr, hKey)
      }
   Return, Result = 0
}
CheckProcess(Name, Result)
{
   If Result
      MsgBox,,, % Name &quot; function is failed`ncode error: &quot;Result, 2
   Else
      MsgBox,,, % Name &quot; function is success&quot;, 2
}
If Result
   MsgBox,,, Renamed, 1
Else
   MsgBox,,, Fail, 1
ExitApp</code></pre></div><p><a href="http://msdn.microsoft.com/en-us/library/ms681382(VS.85).aspx">System Error Codes</a></p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-07-31T00:08:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50296#p50296</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50295#p50295" />
			<content type="html"><![CDATA[<p>Я написал в первом посте что именно через&nbsp; NtRenameKey ...</p>]]></content>
			<author>
				<name><![CDATA[Life85]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27118</uri>
			</author>
			<updated>2011-07-30T21:53:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50295#p50295</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50294#p50294" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Life85 пишет:</cite><blockquote><p>Нужно переименовать раздел реестра...</p></blockquote></div><p>Сделано по сути вопроса...</p><p>P.S.: А зачем Вам именно через <a href="http://msdn.microsoft.com/en-us/library/cc512138(VS.85).aspx">NtRenameKey</a>?</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-07-30T21:46:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50294#p50294</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50293#p50293" />
			<content type="html"><![CDATA[<p>Спасибо за беспокойство , но мне нужен вариант реализованный на Native api с помощью NtRenameKey ... это принципиально ...&nbsp; &nbsp;отправил вам 100 рублей за беспокойство</p>]]></content>
			<author>
				<name><![CDATA[Life85]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27118</uri>
			</author>
			<updated>2011-07-30T21:38:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50293#p50293</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50291#p50291" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>; скрипт следует запустить с правами администратора (если User Account Control включен)
NameKey := &quot;SYSTEM\ControlSet002\Control\Class\123&quot;
NeWNameKey := &quot;SYSTEM\ControlSet002\Control\Class\666&quot;
Result := RegRename( &quot;HKLM&quot;, NameKey, NeWNameKey)
RegRename( RegRoot, Key, Target)
{
   HKLM := HKEY_LOCAL_MACHINE := 0x80000002
   Result := DllCall(&quot;Advapi32.dll\RegOpenKeyEx&quot;
                   , Ptr, %RegRoot%
                   , Str, Key
                   , UInt, 0
                   , UInt, 0x20019 ; - read access
                   , &quot;Ptr *&quot;, hKey)
   If !Result
      {
         Result := DllCall(&quot;Advapi32.dll\RegCreateKeyEx&quot;
                          , Ptr, %RegRoot%
                          , Str, Target
                          , UInt, 0
                          , UInt, 0
                          , UInt, 0
                          , UInt, 0x4 ; - create subkey
                          , UInt, 0
                         , &quot;Ptr *&quot;, hNewKey
                          , UInt, 0)
         If !Result
            {
               Result := DllCall(&quot;Advapi32.dll\RegCopyTree&quot;
                                , Ptr, hKey
                                , UInt, 0
                                , Ptr, hNewKey)
               If !Result
                  {
                     DllCall(&quot;Advapi32.dll\RegCloseKey&quot;
                            , Ptr, hKey)
                     RegDelete, % RegRoot, % Key
                     DllCall(&quot;Advapi32.dll\RegCloseKey&quot;
                            , Ptr, hNewKey)
                     Return, 1
                  }
               Else
                  {
                     DllCall(&quot;Advapi32.dll\RegCloseKey&quot;
                            , Ptr, hNewKey)
                     RegDelete, % RegRoot, % Target
                     DllCall(&quot;Advapi32.dll\RegCloseKey&quot;
                            , Ptr, hKey)
                     Return, 1
                  }
            }
         DllCall(&quot;Advapi32.dll\RegCloseKey&quot;, Ptr, hKey)
      }
   Return, 0
}
If Result
   MsgBox,,, Renamed, 1
Else
   MsgBox,,, Fail, 1
ExitApp</code></pre></div><p>P.S.: R308666022833</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-07-30T21:17:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50291#p50291</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50290#p50290" />
			<content type="html"><![CDATA[<p>отблагодарю материально ...&nbsp; отправлю на вебмани или телефон 200 руб )))&nbsp; уже надоело голову ломать</p>]]></content>
			<author>
				<name><![CDATA[Life85]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27118</uri>
			</author>
			<updated>2011-07-30T17:40:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50290#p50290</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Переименовать раздел реестра с помощью NtRenameKey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50281#p50281" />
			<content type="html"><![CDATA[<p>Нужно переименовать раздел реестра с помощью NtRenameKey <a href="http://msdn.microsoft.com/en-us/library/cc512138(VS.85).aspx">http://msdn.microsoft.com/en-us/library … S.85).aspx</a> Делаю так и ничего не работает .&nbsp; </p><div class="codebox"><pre><code>NameKey =HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\123
NeWNameKey =666
Result := DllCall(&quot;Ntdll\NtRenameKey&quot;, &quot;Str&quot;, NameKey, &quot;Str&quot;, NeWNameKey)</code></pre></div><p>Я не очень знакома с DllCall , подскажите что не так или подкиньте хороший мануал по DllCall на русском языке.</p>]]></content>
			<author>
				<name><![CDATA[Life85]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27118</uri>
			</author>
			<updated>2011-07-30T10:22:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50281#p50281</id>
		</entry>
</feed>
