Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a9a4f4e5
Commit
a9a4f4e5
authored
Nov 22, 1998
by
Juergen Schmied
Committed by
Alexandre Julliard
Nov 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New file. HKEY_CLASSES_ROOT handling.
parent
0b61d029
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
Makefile.in
dlls/shell32/Makefile.in
+1
-0
classes.c
dlls/shell32/classes.c
+36
-0
No files found.
dlls/shell32/Makefile.in
View file @
a9a4f4e5
...
...
@@ -7,6 +7,7 @@ MODULE = shell32
WRCEXTRA
=
-A
-p
$*
C_SRCS
=
\
classes.c
\
contmenu.c
\
dataobject.c
\
enumidlist.c
\
...
...
dlls/shell32/classes.c
0 → 100644
View file @
a9a4f4e5
/*
* 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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment