-
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
Shell32.SetCurrentProcessExplicitAppUserModelID #680
Conversation
…plicitAppUserModelID functions to Shell32 wrapper
HRESULT r2 = Shell32.INSTANCE.GetCurrentProcessExplicitAppUserModelID(ppszAppID); | ||
assertEquals(WinError.S_OK, r2); | ||
|
||
assertEquals(appUserModelID, ppszAppID.getPointer().getWideString(0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please free the string, as this is expected from the documentation? For the unittest this is not actually necessary, but people looking at the code might be mislead, that you don't need to free the string.
Thank you! I added a few line notes. Please also add an entry to the FEATURES section in CHANGES.md - see the other entries as a template. |
…plicitAppUserModelID functions to Shell32 wrapper (fix documentation)
…plicitAppUserModelID functions to Shell32 wrapper (update CHANGES.md)
Fixed. |
Thank you for the changes however this can't be merged - running the unittest immediatly fails:
This is easily explained: PointerByReference#getPointer retrieves the Pointer to the PointerBuffer, not the Pointer value that is placed inside the buffer. Both occurences (line 247+ 249) need to be modified. As the code needs another round I'd like to ask you to review the CHANGES.md entry:
As a final note - it would be good if you'd squash the commits into one commit, so that history is not cluttered. Thank you for your patience! |
…plicitAppUserModelID functions to Shell32 wrapper (fix unit test and CHANGES.md)
Done, but squashing commits... for the love of my life i couldn't figure out how to do that on my branch... Doesn't github have a merge+squash button? |
... no idea why CI fails. That test definitely works on my Windows VM now. |
Motivation: Ability to get the RTT as requested in java-native-access#678 Modification: Add ability to get the path stats using quiche_conn_path_stats Result: The change adds the API to get the path stats. --------- Co-authored-by: Norman Maurer <[email protected]>
Added functions to Shell32 wrapper which are useful Desktop integration for Java GUI applications (on Windows 7 and higher).
SetCurrentProcessExplicitAppUserModelID
GetCurrentProcessExplicitAppUserModelID