Replies: 1 comment
-
String? path;
String? description;
final shellLink = ShellLink.createInstance();
final persistFile = IPersistFile.from(shellLink);
final lpPath = wsalloc(MAX_PATH + 1);
final lpDescription = wsalloc(MAX_PATH + 1);
if (persistFile.load(shortcutPath.toNativeUtf16(), 0) == 0) {
if (shellLink.getPath(lpPath, MAX_PATH + 1, nullptr, MAX_PATH + 1) == 0) {
path = lpPath.toDartString();
}
if (shellLink.getDescription(lpDescription, MAX_PATH + 1) == 0) {
description = lpDescription.toDartString();
}
}
print('path: $path, description: $description');
free(lpPath);
free(lpDescription); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nini22P
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I searched and found that there is a ShellLink class, but I don't know how to use it.
Beta Was this translation helpful? Give feedback.
All reactions