<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Как получить адрес d3d9.drawindexedprimitive.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16674&amp;type=atom" />
	<updated>2021-10-21T06:45:16Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16674</id>
		<entry>
			<title type="html"><![CDATA[Re: Как получить адрес d3d9.drawindexedprimitive.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150183#p150183" />
			<content type="html"><![CDATA[<p>Не знаю.<br />Подобным не занимался.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-10-21T06:45:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150183#p150183</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как получить адрес d3d9.drawindexedprimitive.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150182#p150182" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>У меня все перехватывает.<br /></p><div class="codebox"><pre><code>drawindexedprimitive_Hook(device, D3DPRIMITIVETYPE, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount)
{
   Critical
   DllCall(pOriginal_drawindexedprimitive, &quot;ptr&quot;, device, &quot;uint&quot;, D3DPRIMITIVETYPE, &quot;int&quot;, BaseVertexIndex, &quot;uint&quot;, MinVertexIndex, &quot;uint&quot;, NumVertices, &quot;uint&quot;, startIndex, &quot;uint&quot;, primCount)
   return
}</code></pre></div></blockquote></div><p>Спасибо за ответ. Я заменил функцию возврата вашим ответом. Работает нормально.</p><p>Эээ ... так я могу задать более глубокий вопрос? Я пытаюсь сделать san andreas wallhack с помощью minhook. Есть много материалов по cpp, но я не знаю, как делать cpp, поэтому я собираюсь попробовать сделать свой собственный с помощью ahk в целях собственной жадности и обучения.</p><p>Теперь вы можете подключить функции &quot;EndScene&quot;, &quot;drawindexedprimitive&quot;<br />Подскажите, пожалуйста, как сделать так, чтобы персонаж видел сквозь стену?</p>]]></content>
			<author>
				<name><![CDATA[nullmdn]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41945</uri>
			</author>
			<updated>2021-10-21T06:13:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150182#p150182</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как получить адрес d3d9.drawindexedprimitive.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150181#p150181" />
			<content type="html"><![CDATA[<p>У меня все перехватывает.<br /></p><div class="codebox"><pre><code>drawindexedprimitive_Hook(device, D3DPRIMITIVETYPE, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount)
{
   Critical
   DllCall(pOriginal_drawindexedprimitive, &quot;ptr&quot;, device, &quot;uint&quot;, D3DPRIMITIVETYPE, &quot;int&quot;, BaseVertexIndex, &quot;uint&quot;, MinVertexIndex, &quot;uint&quot;, NumVertices, &quot;uint&quot;, startIndex, &quot;uint&quot;, primCount)
   return
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-10-21T04:35:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150181#p150181</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как получить адрес d3d9.drawindexedprimitive.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150178#p150178" />
			<content type="html"><![CDATA[<p>Привет. Пожалуйста, поймите, что я использую переводчик, чтобы оставить сообщение.</p><div class="codebox"><pre><code>d3d := Direct3DCreate9(D3D_SDK_VERSION := 32) 
VarSetCapacity(D3DPRESENT_PARAMETERS, 48+2*A_PtrSize, 0) 
NumPut(1, D3DPRESENT_PARAMETERS, 0)   ; BackBufferWidth
NumPut(1, D3DPRESENT_PARAMETERS, 4)   ; BackBufferHeight
NumPut(1, D3DPRESENT_PARAMETERS, 24)   ; D3DSWAPEFFECT_DISCARD
NumPut(1, D3DPRESENT_PARAMETERS, 24+2*A_PtrSize)   ; Windowed
IDirect3D9_CreateDevice(d3d, D3DADAPTER_DEFAULT := 0, D3DDEVTYPE_HAL := 1, 0, D3DCREATE_HARDWARE_VERTEXPROCESSING := 0x00000040, &amp;D3DPRESENT_PARAMETERS, device)
EndScene := NumGet(NumGet(device+0)+42*A_PtrSize) </code></pre></div><p>Мне удалось получить адрес EndScene, используя приведенный выше код.<br />Теперь мне нужен адрес drawindexedprimitive.<br />Это относится к 82-му индексу, поэтому &gt;&gt; EndScene: = NumGet (NumGet (device + 0) + 42 * A_PtrSize), &lt;&lt; где я установил 42 на 82, но он не возвращает правильный адрес. Как мне получить адрес drawindexedprimitive?</p>]]></content>
			<author>
				<name><![CDATA[nullmdn]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41945</uri>
			</author>
			<updated>2021-10-20T22:34:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150178#p150178</id>
		</entry>
</feed>
