Please add Windows Kernel Debug* Functions
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- java
- Domain
- operating-systems
Research direction
Start in contrib/platform/src/com/sun/jna/platform/win32/Kernel32.java and compare the existing Windows API declarations and documentation comments. Review the requested DebugActiveProcess, DebugSetProcessKillOnExit, and DebugActiveProcessStop definitions, then verify that the JNA build accepts the additions; done means the declarations are available through Kernel32.
Written by the indexing model from the issue text.
Description
For suspending/resuming a process on Windows I would like to have various Windows Debug* functions added to JNA. I defined them as follows in my code:
import com.sun.jna.win32.StdCallLibrary;
public interface MyKernel32 extends StdCallLibrary {
boolean DebugActiveProcess(int pid);
boolean DebugSetProcessKillOnExit(boolean killOnExit);
boolean DebugActiveProcessStop(int processId);
}
Is adding the definitions to C:\...\jna\contrib\platform\src\com\sun\jna\platform\win32\Kernel32.java as well as a documentation comment enough? Tests for such simple wrappers don't seem needed. Also, compiling JNA seems tedious so I'd rather not configure everything for such a simple addition which a JNA maintainer could do for me as well.
Thank you for your time.
- Dominant language
- Java
- Stars
- 8.9k
- Forks
- 1.7k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from java-native-access/jna
-
`Native.typeOptions` never releases library interfaces, leaking classloadersPossibly taken @curforever claimed this 1 day ago. Open
Difficulty 4/5 1-2 days Newbie friendliness 48/100
java-native-access/jna#1742 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 66/100
java-native-access/jna#1738 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
java-native-access/jna#1736 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
java-native-access/jna#1717 ·
-
Windows32Exception - The parameter is incorrectPossibly taken @marktech0813 claimed this 336 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
java-native-access/jna#1700 · 11 comments ·
All issues in java-native-access/jna
Similar issues
-
status: waiting-for-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
AOT compilation fails for derived delete queries returning SetPossibly taken @ryujungkyun claimed this today. Openstatus: waiting-for-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
spring-projects/spring-data-jpa#4387 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
apache/rocketmq-dashboard#6636 ·
Maintainers usually reply within 3 days