| View previous topic :: View next topic |
| Author |
Message |
ircdirk How do I cheat?
Reputation: 0
Joined: 07 Apr 2009 Posts: 4
|
Posted: Tue Nov 09, 2021 5:57 am Post subject: Check if process is UWP app? |
|
|
| Is it possible to check if selected process is UWP app trough Lua Scripting? |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
ircdirk How do I cheat?
Reputation: 0
Joined: 07 Apr 2009 Posts: 4
|
Posted: Wed Nov 10, 2021 7:44 am Post subject: |
|
|
So im doing someting like this:
| Code: | local proc = executeCodeLocalEx('OpenProcess', 0x1000, 0, 18320)
local _need=createMemoryStream()
_need.writeDword(0)
local _drivername=createMemoryStream()
_drivername.size=255*10
print(executeCodeLocalEx('GetPackageFamilyName', proc, _need.Memory, _drivername.Memory))
print(readStringLocal(_drivername.Memory,255*10)) |
But im gettin error 122 ERROR_INSUFFICIENT_BUFFER.
Could someone point me to what i'm doing wrong? Please. |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Wed Nov 10, 2021 8:54 am Post subject: |
|
|
try _need.writeDword(255)
also, you can use getOpenedProcessHandle() to get the handle to the currently opened process _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
ircdirk How do I cheat?
Reputation: 0
Joined: 07 Apr 2009 Posts: 4
|
Posted: Wed Nov 10, 2021 11:46 am Post subject: |
|
|
| Dark Byte wrote: | try _need.writeDword(255)
also, you can use getOpenedProcessHandle() to get the handle to the currently opened process |
Thank u, that worked. But it only reads the first letter not the whole string  |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Wed Nov 10, 2021 12:25 pm Post subject: |
|
|
try setting the 3th parameter of readstringlocal to true so it's handled as widestring _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
ircdirk How do I cheat?
Reputation: 0
Joined: 07 Apr 2009 Posts: 4
|
Posted: Wed Nov 10, 2021 1:06 pm Post subject: |
|
|
| Dark Byte wrote: | | try setting the 3th parameter of readstringlocal to true so it's handled as widestring |
Nope, setting it to true makes it empty string in return. In documentation of GetPackageFamilyName its PWSTR
My bad, u wrote third argument. All good. Thanks a lot, it works!  |
|
| Back to top |
|
 |
|