Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: undetected games when ran with administrator #109

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

farhannz
Copy link

Root Cause

Windows built-in tools such as wmic or gcim or gwmi doesn't have enough privilege even if those tools were running with administrator. Consequently, the game isn't detected due to the empty result when querying executable path.

Solution

This fix uses windows undocumented api calls NtQuerySystemInformation() to get the ImageFileName of a process by supplying pid into the api. It uses koffi package to load those windows libraries.

Result

As a result, it can detect games that ran with administrator without the need to run arrpc with administrator.

This might also fix #33

a

Remark

The usage of NtQuerySystemInformation() may be altered or unavailable in future versions of Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Valorant isn't being detected
1 participant