-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Kernel32.INSTANCE.SetPriorityClass is missing! #1538
Comments
It is not gone, you are looking at the wrong project. The example leads to: And that is not JNA. |
The example code is not JNA, of course. It uses JNA !!! It calls
And yes, before you ask, I do have the required |
No it does not. The project is just hijacking the JNA namespace. Check here: the project uses its own set of mappings and not the JNA ones. |
The function
Then why the function can not be found in (And yes, before you ask, I do have the required If the function can not be found, and if I'm not missing anything obvious, this means JNA's |
I never doubted, that the function exists in the DLL, you are asserting though, that the function is bound, this is not the case. JNA provides only part of the glue for calling into native. It still needs to to get the information required to call the function and there the bindings come in. People bind what they need and contribute this work here so that others can benefit from that, as they benefited from aleady bound functions. |
This is a feature request to add SetPriorityClass to JNA. @dEajL3kA please contribute! |
Since this issue was closed immediately, I had to create a new one that adds the required methods. Also, initially, it wasn't clear to me that these functions have never existed in "official" JNA, as some examples found on the Internet (not official JNA examples, but examples that use JNA) indicate that they already exist, or have existed at some point 😏 Please see here: |
Provide complete information about the problem
Kernel32.INSTANCE.SetPriorityClass
is missing!SetPriorityClass()
fromKernel32.INSTANCE
→ it won't work !!! 😠Details
According to the example code, this must work:
Reality: Required function is missing!
The function does exist in
Kernel32.DLL
, that's for sure:https://learn.microsoft.com/de-de/windows/win32/api/processthreadsapi/nf-processthreadsapi-setpriorityclass
Where has
Kernel32.INSTANCE.SetPriorityClass()
gone in JNA ?!?!The text was updated successfully, but these errors were encountered: