RFC: Retrieve LeagueClientUx.exe process info without WMI #124
jlcarvalho
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Thanks for taking the initiative on this! I'm personally a little skeptical to directly depend on native module code (I believe you have good intentions, but it's harder for end users of the package to trust its behavior), but I'm still not against the idea. Would it maybe be easier to allow the user to pass a custom What do you think? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
RFC: Retrieve LeagueClientUx.exe process info without WMI
Summary
This RFC proposes adding the @tipspace/get-command-line package as an optional dependency into
league-connect
to retrieve the command line of theLeagueClientUx.exe
process in cases where WMI is broken or unavailable.Motivation
Currently,
league-connect
uses WMI to retrieve command line information ofLeagueClientUx.exe
, but in cases where WMI is broken or unavailable, both,Get-CimInstance
andwmic
will fail. We have over 200k players on Tipspace and WMI is broken for about 1% of them. Because of that, I created a package written in Rust to retrieve command line string manually, getting the process infos from memory using native Windows DLLs. This package is heavely inspired by LeagueAkari's C++ implementation.We're already using it at Tipspace by retrieving the command line string, parsing it (using a duplicate code from League Connect) and then authenticating in League Connect using the credentials object.
Detailed Design
Prerequisites
Installation
To install the package as an optional dependency, run:
yarn add @tipspace/get-command-line --optional # or npm install @tipspace/get-command-line --save-optional
Usage
Drawbacks
Beta Was this translation helpful? Give feedback.
All reactions