Page 1 of 1

WM_COPYDATA with current file/folder

Posted: 17 Jul 2008 17:11
by briantokyo
It would be nice if you could add a message (unless there's one already? couldn't find any info about it) to return the full path+filename of the file that's currently playing.

Thanks

Re: WM_COPYDATA with current file/folder

Posted: 18 Jul 2008 15:28
by VLC_help
You want to peak it from another program?

Re: WM_COPYDATA with current file/folder

Posted: 18 Jul 2008 15:59
by briantokyo
Yes

I can already retrieve the filename through various methods, but knowing also the path would help with some features of my program.
I thought of retrieving the device and file handles associated with the process through NTQuerySystemInformation, but when requested from
a 32-bit process (my app) in a 64-bit OS, it won't work.

Re: WM_COPYDATA with current file/folder

Posted: 19 Jul 2008 16:14
by VLC_help
Ii you want, you might want to write a notify module (use msn.c as basecode). I think the path is included in somewhere, because it was reported as bug earlier.
viewtopic.php?f=7&t=40095

http://www.google.com/codesearch?hl=en& ... misc/msn.c

I am not sure if the fix was MSN plugin only or some other change.

Re: WM_COPYDATA with current file/folder

Posted: 19 Jul 2008 16:45
by briantokyo
That could work, I could make a unique window class to send the message to, but this has 2 problems:
- it would require people enabling the new module
- the message would only be sent when a new video has been launched. my app can be run after that so it wouldn't catch the message.

VLC already supports various commands through messages, so it would be just adding another to retrieve the current media

Re: WM_COPYDATA with current file/folder

Posted: 14 May 2010 07:02
by briantokyo
Has this been added recently? My old methods to retrieve current media no longer work with latest versions.

NTQuerySystemInformation only works if you are on 32-bit windows
Retrieving the tittle from statusbar no longer works through conventional methods since you changed the interface apis from wx
Retrieving the title from titlebar is also wrong, since when you go full-screen the tittle is changed to "VLC (Direct3D Output)" (even the statusbar on the interface is changed to this..)

Is it too much to ask to include a message for this? : (

Re: WM_COPYDATA with current file/folder

Posted: 15 May 2010 00:03
by Jean-Baptiste Kempf
Provide a patch :D