Windows Media Player
"scoubidou944" <[email protected]>
| Newsgroups | gmane.games.devel.general |
|---|---|
| Message-ID | <[email protected]> |
hi,
writing an application for multimedia presentation, I must (too long to
explain why ;p) use Windows Media Player 9 (not Media Classic Player) to
play video files.
But I have one problem : getting play list.
First method :
Get HWND of WMPlayer
Use Spy++ Visual Tool to get HWND so we have :
WMP
WMPAppHost "WMPAppHost"
WMPPlaylist ""
ATL:SysListView32 "Current Playlist"
SysHeader32
Using FindWindowEx() I get an HWD on 'ATL:SysListView32'
hCurrentWnd = // Windows Media Player handke
hWndAppHost = FindWindowEx (hCurrentWnd, NULL, "WMPAppHost", NULL);
hWndPlayList = FindWindowEx (hWndAppHost, NULL, "WMPPlaylist",
NULL);
hCurrentList = FindWindowEx (hWndPlayList, NULL,
"ATL:SysListView32", NULL);
But using :
u32ItemCount = ListView_GetItemCount (hCurrentList);
return always 0 :(
Does ListView_GetItemCount() limited to Current process ? or does it
work only on standard object but non ATL ?
Second Method :
Getting system file access coming from WMP to get file added but a bit
wild isn't it LOL ?
Thirs method :
Rerieve WMP file history.... not a good way too.
Havin' an idea ?
Thx
Vincent.
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Gamedevlists-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=557