Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f612ed1f
Commit
f612ed1f
authored
Jun 11, 2009
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jun 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Update file type associations when requested.
parent
bd623c2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
changenotify.c
dlls/shell32/changenotify.c
+31
-0
No files found.
dlls/shell32/changenotify.c
View file @
f612ed1f
...
...
@@ -105,6 +105,31 @@ static const char * DumpEvent( LONG event )
#undef DUMPEV
}
static
BOOL
RefreshFileTypeAssociations
(
void
)
{
static
WCHAR
szWinemenubuilder
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
'm'
,
'e'
,
'n'
,
'u'
,
'b'
,
'u'
,
'i'
,
'l'
,
'd'
,
'e'
,
'r'
,
'.'
,
'e'
,
'x'
,
'e'
,
' '
,
'-'
,
'a'
,
0
};
STARTUPINFOW
si
;
PROCESS_INFORMATION
pi
;
BOOL
ret
;
TRACE
(
"starting %s
\n
"
,
debugstr_w
(
szWinemenubuilder
));
memset
(
&
si
,
0
,
sizeof
(
si
));
si
.
cb
=
sizeof
(
si
);
ret
=
CreateProcessW
(
NULL
,
szWinemenubuilder
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
);
if
(
ret
)
{
CloseHandle
(
pi
.
hProcess
);
CloseHandle
(
pi
.
hThread
);
}
return
ret
;
}
static
const
char
*
NodeName
(
const
NOTIFICATIONLIST
*
item
)
{
const
char
*
str
;
...
...
@@ -397,6 +422,12 @@ void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID
}
TRACE
(
"notify Done
\n
"
);
LeaveCriticalSection
(
&
SHELL32_ChangenotifyCS
);
if
(
wEventId
&
SHCNE_ASSOCCHANGED
)
{
TRACE
(
"refreshing file type associations
\n
"
);
RefreshFileTypeAssociations
();
}
/* if we allocated it, free it. The ANSI flag is also set in its Unicode sibling. */
if
((
typeFlag
&
SHCNF_PATHA
)
||
(
typeFlag
&
SHCNF_PRINTERA
))
...
...
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