diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2023-11-05 22:50:39 -0500 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-03-19 11:34:00 +0100 |
commit | d2bbd7a531567fe9c41a56e5ab3b6255e771a5aa (patch) | |
tree | 66dab98758f0904c8216d8be9a5103b81d5696ce /osdep/windows_utils.h | |
parent | 3e7d36c295f726e701d1ceea6af83382f7b2f59e (diff) | |
download | mpv-d2bbd7a531567fe9c41a56e5ab3b6255e771a5aa.tar.bz2 mpv-d2bbd7a531567fe9c41a56e5ab3b6255e771a5aa.tar.xz |
win32: implement shell link target resolving
Adds a function to resolve the target of a shell link (Windows shortcut)
for use by other parts of mpv.
Diffstat (limited to 'osdep/windows_utils.h')
-rw-r--r-- | osdep/windows_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/osdep/windows_utils.h b/osdep/windows_utils.h index a8a5e947b8..c3fc72aefe 100644 --- a/osdep/windows_utils.h +++ b/osdep/windows_utils.h @@ -46,4 +46,8 @@ struct w32_create_anon_pipe_opts { bool mp_w32_create_anon_pipe(HANDLE *server, HANDLE *client, struct w32_create_anon_pipe_opts *opts); +// Returns the target of the shell link in talloc memory if the path is a +// resolvable shell link, otherwise returns NULL. +wchar_t *mp_w32_get_shell_link_target(wchar_t *path); + #endif |