New file. HKEY_CLASSES_ROOT handling.
This commit is contained in:
parent
0b61d029a8
commit
a9a4f4e5d4
|
@ -7,6 +7,7 @@ MODULE = shell32
|
|||
WRCEXTRA = -A -p $*
|
||||
|
||||
C_SRCS = \
|
||||
classes.c \
|
||||
contmenu.c \
|
||||
dataobject.c \
|
||||
enumidlist.c \
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* file type mapping
|
||||
* (HKEY_CLASSES_ROOT - Stuff)
|
||||
*
|
||||
*
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "debug.h"
|
||||
#include "shlobj.h"
|
||||
#include "shell.h"
|
||||
#include "winerror.h"
|
||||
#include "commctrl.h"
|
||||
|
||||
#include "shell32_main.h"
|
||||
|
||||
BOOL32 WINAPI HCR_MapTypeToValue ( LPSTR szExtension, LPSTR szFileType, DWORD len)
|
||||
{ HKEY hkey;
|
||||
|
||||
TRACE(shell, "%s %p\n",szExtension, szFileType );
|
||||
if (RegOpenKeyEx32A(HKEY_CLASSES_ROOT,szExtension,0,0x02000000,&hkey))
|
||||
{ return FALSE;
|
||||
}
|
||||
|
||||
if (RegQueryValue32A(hkey,NULL,szFileType,&len))
|
||||
{ RegCloseKey(hkey);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
RegCloseKey(hkey);
|
||||
|
||||
TRACE(shell, "-- %s\n", szFileType );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue