3 * (HKEY_CLASSES_ROOT - Stuff)
15 #include "shell32_main.h"
17 BOOL32
HCR_MapTypeToValue ( LPSTR szExtension
, LPSTR szFileType
, DWORD len
)
20 TRACE(shell
, "%s %p\n",szExtension
, szFileType
);
22 if (RegOpenKeyEx32A(HKEY_CLASSES_ROOT
,szExtension
,0,0x02000000,&hkey
))
26 if (RegQueryValue32A(hkey
,NULL
,szFileType
,&len
))
33 TRACE(shell
, "-- %s\n", szFileType
);
37 BOOL32
HCR_GetExecuteCommand ( LPCSTR szClass
, LPCSTR szVerb
, LPSTR szDest
, DWORD len
)
41 TRACE(shell
, "%s %s\n",szClass
, szVerb
);
43 sprintf(sTemp
, "%s\\shell\\%s\\command",szClass
, szVerb
);
45 if (RegOpenKeyEx32A(HKEY_CLASSES_ROOT
,sTemp
,0,0x02000000,&hkey
))
49 if (RegQueryValue32A(hkey
,NULL
,szDest
,&len
))
55 TRACE(shell
, "-- %s\n", szDest
);
60 /***************************************************************************************
61 * HCR_GetDefaultIcon [internal]
63 * Gets the icon for a filetype
65 BOOL32
HCR_GetDefaultIcon (LPCSTR szClass
, LPSTR szDest
, DWORD len
, LPDWORD dwNr
)
70 TRACE(shell
, "%s\n",szClass
);
72 sprintf(sTemp
, "%s\\DefaultIcon",szClass
);
74 if (RegOpenKeyEx32A(HKEY_CLASSES_ROOT
,sTemp
,0,0x02000000,&hkey
))
78 if (RegQueryValue32A(hkey
,NULL
,szDest
,&len
))
85 if (ParseField32A (szDest
, 2, sNum
, 5))
89 ParseField32A (szDest
, 1, szDest
, len
);
91 TRACE(shell
, "-- %s %li\n", szDest
, *dwNr
);