Metick / DMALibrary

Simple but extensive library for DMA users, made for gamehacking
MIT License
317 stars 67 forks source link

how to get gafAsyncKeyStateExport? #31

Open nethuige opened 1 month ago

nethuige commented 1 month ago

gafAsyncKeyStateExport = user_session_state + 0x3690;

I would like to ask how to get it using 0x3690? I used ida to open the win32ksgd.sys of the win11 22h2 version, but the offset was never found.

Metick commented 1 month ago

The one you're looking for is not in win32ksgd.sys. You can find the offset in win32kbase.sys, within the NtUserGetAsyncKeyState function you'll find the offset you're looking for. image

as you can see on the photo attached.

lishaoju commented 1 month ago

The one you're looking for is not in win32ksgd.sys. You can find the offset in win32kbase.sys, within the NtUserGetAsyncKeyState function you'll find the offset you're looking for. image

as you can see on the photo attached.

Xbox Is there any way to obtain the status

Metick commented 1 month ago

The one you're looking for is not in win32ksgd.sys. You can find the offset in win32kbase.sys, within the NtUserGetAsyncKeyState function you'll find the offset you're looking for. image as you can see on the photo attached.

Xbox Is there any way to obtain the status

Do you english?

lishaoju commented 1 month ago

您要找的那个不在win32ksgd.sys。可以在 win32kbase.sys 中找到偏移量,在 NtUserGetAsyncKeyState 函数中,你将找到要查找的偏移量。图像正如您在所附照片上看到的那样。

Xbox 有什么方法可以获取状态吗

您会说英语吗?

Sorry, my English isn't very good. How do I get the button state of a game controller?

nethuige commented 1 month ago

您要查找的文件不在 win32ksgd.sys 中。您可以在 win32kbase.sys 中找到偏移量,在 NtUserGetAsyncKeyState 函数中您将找到您要查找的偏移量。 图像

正如您在所附照片中看到的。

thank you very much!

Metick commented 1 month ago

您要找的那个不在win32ksgd.sys。可以在 win32kbase.sys 中找到偏移量,在 NtUserGetAsyncKeyState 函数中,你将找到要查找的偏移量。图像正如您在所附照片上看到的那样。

Xbox 有什么方法可以获取状态吗

您会说英语吗?

Sorry, my English isn't very good. How do I get the button state of a game controller?

You don't you need dinput and xinput for that. aka just read the ingame input system instead.