Thread: [GD-General] Windows Media Player
Brought to you by:
vexxed72
From: scoubidou944 <sco...@ho...> - 2003-12-17 20:55:13
|
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. |
From: Mike W. <mi...@ge...> - 2003-12-17 22:50:30
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 there is a windowsmedia programming list available from discuss.microsoft.com that has WiMP guru's on it. might suggest you try there mike w www.gekidodesigns.com scoubidou944 wrote: | 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 | Gam...@li... | https://lists.sourceforge.net/lists/listinfo/gamedevlists-general | Archives: | http://sourceforge.net/mailarchive/forum.php?forum_id=557 | | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows 2000) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE9/6r/ayxbsNU2vhwRAkPXAJ0emxlD0ZJred1cIhal2JNPtE0RKwCgr9So nPCQU7eBrbSjBoTiiZNvXLg= =/oRn -----END PGP SIGNATURE----- |
From: scoubidou944 <sco...@ho...> - 2003-12-17 22:57:51
|
Thanks I haven't found this way of search :O Vincent ----- Original Message ----- From: "Mike Wuetherick" <mi...@ge...> To: <gam...@li...> Sent: Tuesday, December 17, 2002 11:53 PM Subject: Re: [GD-General] Windows Media Player > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > there is a windowsmedia programming list available from > discuss.microsoft.com that has WiMP guru's on it. > > might suggest you try there > > mike w > www.gekidodesigns.com > > scoubidou944 wrote: > | 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 > | Gam...@li... > | https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > | Archives: > | http://sourceforge.net/mailarchive/forum.php?forum_id=557 > | > | > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3-nr1 (Windows 2000) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQE9/6r/ayxbsNU2vhwRAkPXAJ0emxlD0ZJred1cIhal2JNPtE0RKwCgr9So > nPCQU7eBrbSjBoTiiZNvXLg= > =/oRn > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > 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 > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=557 > |
From: Mike W. <mi...@ge...> - 2003-12-18 21:06:34
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 there is a wmtalk list i know, but that's more for streaming issues etc, ~ and there is a specific programming list as well, but can't recall what the name of it is. mike w www.gekidodesigns.com scoubidou944 wrote: | Thanks I haven't found this way of search :O | | Vincent | ----- Original Message ----- | From: "Mike Wuetherick" <mi...@ge...> | To: <gam...@li...> | Sent: Tuesday, December 17, 2002 11:53 PM | Subject: Re: [GD-General] Windows Media Player | | | | there is a windowsmedia programming list available from | discuss.microsoft.com that has WiMP guru's on it. | | might suggest you try there | | mike w | www.gekidodesigns.com | | scoubidou944 wrote: | | 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 | | Gam...@li... | | https://lists.sourceforge.net/lists/listinfo/gamedevlists-general | | Archives: | | http://sourceforge.net/mailarchive/forum.php?forum_id=557 | | | | - ------------------------------------------------------- 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 Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=557 | ------------------------------------------------------- | 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 | Gam...@li... | https://lists.sourceforge.net/lists/listinfo/gamedevlists-general | Archives: | http://sourceforge.net/mailarchive/forum.php?forum_id=557 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows 2000) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/4hefayxbsNU2vhwRArA3AJ9B5Y5KV5FijHg9Cnv3XfacW+/T1QCfSbFM Ba5+TChwHd47uI/mEldbkbQ= =minl -----END PGP SIGNATURE----- |