<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK:createRemoteThread]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=14738&amp;type=atom" />
	<updated>2019-04-25T13:50:12Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=14738</id>
		<entry>
			<title type="html"><![CDATA[AHK:createRemoteThread]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=133837#p133837" />
			<content type="html"><![CDATA[<p>Eсть функция createRemoteThread. Как я понял она создаёт поток в удалённом процессе. Мне нужна замена этой функции, ибо когда я её использую процесс закрывается античитом. Возможно есть какие то аналоги?<br /></p><div class="codebox"><pre><code>createRemoteThread(hProcess, lpThreadAttributes, dwStackSize, lpStartAddress, lpParameter, dwCreationFlags, lpThreadId) {
    if(!hProcess) {
        ErrorLevel := ERROR_INVALID_HANDLE
        return 0
    }
    
    dwRet := DllCall(    &quot;CreateRemoteThread&quot;
                        , &quot;UInt&quot;, hProcess
                        , &quot;UInt&quot;, lpThreadAttributes
                        , &quot;UInt&quot;, dwStackSize
                        , &quot;UInt&quot;, lpStartAddress
                        , &quot;UInt&quot;, lpParameter
                        , &quot;UInt&quot;, dwCreationFlags
                        , &quot;UInt&quot;, lpThreadId
                        , &quot;UInt&quot;)
    if(dwRet == 0) {
        ErrorLEvel := ERROR_ALLOC_MEMORY
        return 0
    }
    
    ErrorLevel := ERROR_OK
    return dwRet
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ExeLLenT]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40101</uri>
			</author>
			<updated>2019-04-25T13:50:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=133837#p133837</id>
		</entry>
</feed>
