Home | Windows Mobile News | Cellular News | Catalog | Articles | Search | Forums: Smartphone / Pocket PC phone | Site News
Catalog > Microsoft Smartphone > Microsoft employees say about Microsoft smartphone... > About how to associate mime type with SP application to open remote document ?

About how to associate mime type with SP application to open remote document ?

for Smartphone 2002, here is what we do when receiving a file where the mime type is not something we handle in pIE:

1. Look in HKCR\MIME\Database\Content Type\ for a value named "Extension" of type REG_SZ. For your case, will be "video/mpeg".

2. If there is no MIME type sent down, or that Extension reg value can't be found, then we use the extension of the filename itself. .mpg or .mpeg for your case, what ever the file name is

3. Using the extension string obtained in either 1 or 2, open HKCR\ key and read in the default registry value under that key. That value contains the classname.

4. Open HKCR\\shell\open\command key and read in the default value under that key. The contents of that value are what we call ShellExecuteEx on, passing in the name of the file we just downloaded.

(Randal Ramig)



 Home | Windows Mobile News | Cellular News | Catalog | Articles | Search | Forums: Smartphone / Pocket PC phone | Site News


Submit news | About us | Support us | Contact us | Link to us | Windows Mobile podcasts | All news | Entire catalog | RSS/XML Feed | Mobile version | More Newsgroups | msmobiles.com forums

Our friends:  MoDaCoCoolSmartphone.com (in German), 

Copyright © 2002-2005 by msmobiles.com. All rights reserved.
This site is not affiliated with Microsoft Corporation.