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

Add helper method for getting shortcut target #117

Merged
merged 2 commits into from
Dec 28, 2024
Merged

Conversation

dremin
Copy link
Collaborator

@dremin dremin commented Dec 27, 2024

Many shortcuts point to Microsoft Installer packages or have an associated PIDL we can read from, which provides a more accurate target than the string returned by IShellLink.GetPath(). Added a helper method so shells don't need to do this themselves.

Also added a missing CloseHandle to another helper.

@dremin dremin requested a review from josuave December 27, 2024 06:37
@josuave josuave merged commit 9ba8690 into master Dec 28, 2024
1 check passed
@josuave josuave deleted the improve-helpers branch December 28, 2024 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants