Call the new console driver for some routines. This is not completely
[wine/multimedia.git] / dlls / shell32 / classes.c
blob3395d1d9f1d5c37ec244b84f60e945d69279b2d4
1 /*
2 * file type mapping
3 * (HKEY_CLASSES_ROOT - Stuff)
6 */
7 #include <stdlib.h>
8 #include <string.h>
9 #include "debug.h"
10 #include "shlobj.h"
11 #include "shell.h"
12 #include "winerror.h"
13 #include "commctrl.h"
15 #include "shell32_main.h"
17 BOOL32 WINAPI HCR_MapTypeToValue ( LPSTR szExtension, LPSTR szFileType, DWORD len)
18 { HKEY hkey;
20 TRACE(shell, "%s %p\n",szExtension, szFileType );
21 if (RegOpenKeyEx32A(HKEY_CLASSES_ROOT,szExtension,0,0x02000000,&hkey))
22 { return FALSE;
25 if (RegQueryValue32A(hkey,NULL,szFileType,&len))
26 { RegCloseKey(hkey);
27 return FALSE;
30 RegCloseKey(hkey);
32 TRACE(shell, "-- %s\n", szFileType );
34 return TRUE;