Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Media Player > WMP Libraries and Custom extension.

Reply
Thread Tools Display Modes

WMP Libraries and Custom extension.

 
 
Mattews
Guest
Posts: n/a

 
      12-22-2009
Hello,
I am not sure this is the proper forum for what I need but it was the
closest one I found.
What I want to do is add a custom extension to WMP libraries.
I have searched alot then I have changed the registry:

Windows Registry Editor Version 5.00

; Parts are set, but type already exists
[HKEY_CLASSES_ROOT\.mntit]
@="mntit_auto_file"
"PerceivedType"="video"

; WMPlayer extension
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Multimedia\W MPlayer\Extensions\.mntit]
"PerceivedType"="video"
"Permissions"=dword:00000008
"UserApprovedOwning"="yes"

; WMP MLS Extension
; This is very important for WMP to identify mntit files as video files
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\ MLS]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\ MLS\Extensions]
"mntit"="video"

What is happening is that, when I open WMP the files with the extension
".mntit" do appear in my videos section, but after a while (like 2 or 3
minutes) they dissapear!
All I want is for them to show up on my library.


Another question, is there a way to specify how a file will open in WMP?
For instance, when the user double clicks the ".mntit" file, I want it to
run my program "MountIt".
Is that possible? My program is already finished and working fine. What I
need is for WMP to run it passing as an argument the file the user has
clicked. Is that possible??

Thanks.
 
Reply With Quote
 
 
 
 
Tim De Baets
Guest
Posts: n/a

 
      12-22-2009
Already answered in microsoft.public.windowsmedia.sdk.

--
Tim De Baets
http://www.bm-productions.tk

Mattews wrote:
> Hello,
> I am not sure this is the proper forum for what I need but it was the
> closest one I found.
> What I want to do is add a custom extension to WMP libraries.
> I have searched alot then I have changed the registry:
>
> Windows Registry Editor Version 5.00
>
> ; Parts are set, but type already exists
> [HKEY_CLASSES_ROOT\.mntit]
> @="mntit_auto_file"
> "PerceivedType"="video"
>
> ; WMPlayer extension
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Multimedia\W MPlayer\Extensions\.mntit]
> "PerceivedType"="video"
> "Permissions"=dword:00000008
> "UserApprovedOwning"="yes"
>
> ; WMP MLS Extension
> ; This is very important for WMP to identify mntit files as video files
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\ MLS]
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\ MLS\Extensions]
> "mntit"="video"
>
> What is happening is that, when I open WMP the files with the extension
> ".mntit" do appear in my videos section, but after a while (like 2 or 3
> minutes) they dissapear!
> All I want is for them to show up on my library.
>
>
> Another question, is there a way to specify how a file will open in WMP?
> For instance, when the user double clicks the ".mntit" file, I want it to
> run my program "MountIt".
> Is that possible? My program is already finished and working fine. What I
> need is for WMP to run it passing as an argument the file the user has
> clicked. Is that possible??
>
> Thanks.

 
Reply With Quote
 
zachd [MSFT]
Guest
Posts: n/a

 
      01-05-2010

It makes me want to stab my eyes out every time I see somebody referencing
"UserApprovedOwning". XD

DO NOT SET THIS. IT IS UTTERLY AND COMPLETELY INAPPROPRIATE FOR ANYONE
OTHER THAN A USER TO SET THIS.

Perhaps this setting is telling the player Take This Association From Anyone
At Any Time No Matter What Else The User Does. Perhaps it does nothing.

Clearly nobody really knows, and as such I would most strongly recommend you
DO NOT TOUCH THIS SETTING.

Please?

You'll note this is in lockstep with my avowed "play nice with everybody"
set of rules I live by in my development life. Do NOT set user settings
like that yourself, please.

--
Speaking for myself only.
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights.
--
"Mattews" <> wrote in message
news:21135372-4C6D-4459-B34D-...
> Hello,
> I am not sure this is the proper forum for what I need but it was the
> closest one I found.
> What I want to do is add a custom extension to WMP libraries.
> I have searched alot then I have changed the registry:
>
> Windows Registry Editor Version 5.00
>
> ; Parts are set, but type already exists
> [HKEY_CLASSES_ROOT\.mntit]
> @="mntit_auto_file"
> "PerceivedType"="video"
>
> ; WMPlayer extension
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Multimedia\W MPlayer\Extensions\.mntit]
> "PerceivedType"="video"
> "Permissions"=dword:00000008
> "UserApprovedOwning"="yes"
>
> ; WMP MLS Extension
> ; This is very important for WMP to identify mntit files as video files
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\ MLS]
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\ MLS\Extensions]
> "mntit"="video"
>
> What is happening is that, when I open WMP the files with the extension
> ".mntit" do appear in my videos section, but after a while (like 2 or 3
> minutes) they dissapear!
> All I want is for them to show up on my library.
>
>
> Another question, is there a way to specify how a file will open in WMP?
> For instance, when the user double clicks the ".mntit" file, I want it to
> run my program "MountIt".
> Is that possible? My program is already finished and working fine. What I
> need is for WMP to run it passing as an argument the file the user has
> clicked. Is that possible??
>
> Thanks.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59