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
ecb5bdf9
Commit
ecb5bdf9
authored
Jan 27, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wuapi: Add class factory for CLSID_AutomaticUpdates.
parent
68d19b95
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
main.c
dlls/wuapi/main.c
+9
-3
regsvr.c
dlls/wuapi/regsvr.c
+6
-0
No files found.
dlls/wuapi/main.c
View file @
ecb5bdf9
...
@@ -111,7 +111,8 @@ static const struct IClassFactoryVtbl wucf_vtbl =
...
@@ -111,7 +111,8 @@ static const struct IClassFactoryVtbl wucf_vtbl =
wucf_LockServer
wucf_LockServer
};
};
static
wucf
updatecf
=
{
&
wucf_vtbl
,
UpdateSession_create
};
static
wucf
sessioncf
=
{
&
wucf_vtbl
,
UpdateSession_create
};
static
wucf
updatescf
=
{
&
wucf_vtbl
,
AutomaticUpdates_create
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
lpv
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
lpv
)
{
{
...
@@ -135,8 +136,13 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
...
@@ -135,8 +136,13 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
TRACE
(
"%s %s %p
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
iid
),
ppv
);
TRACE
(
"%s %s %p
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
iid
),
ppv
);
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_UpdateSession
))
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_UpdateSession
))
cf
=
(
IClassFactory
*
)
&
updatecf
.
vtbl
;
{
cf
=
(
IClassFactory
*
)
&
sessioncf
.
vtbl
;
}
else
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_AutomaticUpdates
))
{
cf
=
(
IClassFactory
*
)
&
updatescf
.
vtbl
;
}
if
(
!
cf
)
return
CLASS_E_CLASSNOTAVAILABLE
;
if
(
!
cf
)
return
CLASS_E_CLASSNOTAVAILABLE
;
return
IClassFactory_QueryInterface
(
cf
,
iid
,
ppv
);
return
IClassFactory_QueryInterface
(
cf
,
iid
,
ppv
);
}
}
...
...
dlls/wuapi/regsvr.c
View file @
ecb5bdf9
...
@@ -383,6 +383,12 @@ static struct regsvr_coclass const coclass_list[] = {
...
@@ -383,6 +383,12 @@ static struct regsvr_coclass const coclass_list[] = {
"wuapi.dll"
,
"wuapi.dll"
,
"Both"
"Both"
},
},
{
&
CLSID_AutomaticUpdates
,
"CLSID_AutomaticUpdates"
,
NULL
,
"wuapi.dll"
,
"Both"
},
{
NULL
}
/* list terminator */
{
NULL
}
/* list terminator */
};
};
...
...
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