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
9cc5cdc1
Commit
9cc5cdc1
authored
May 04, 2013
by
Daniel Jelinski
Committed by
Alexandre Julliard
May 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xolehlp: Implement ITransactionImport.
parent
79d7e395
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
xolehlp.c
dlls/xolehlp/xolehlp.c
+44
-0
No files found.
dlls/xolehlp/xolehlp.c
View file @
9cc5cdc1
...
...
@@ -153,6 +153,7 @@ typedef struct {
LONG
ref
;
IResourceManagerFactory2
IResourceManagerFactory2_iface
;
ITransactionImportWhereabouts
ITransactionImportWhereabouts_iface
;
ITransactionImport
ITransactionImport_iface
;
}
TransactionManager
;
static
inline
TransactionManager
*
impl_from_ITransactionDispenser
(
ITransactionDispenser
*
iface
)
...
...
@@ -182,6 +183,10 @@ static HRESULT WINAPI TransactionDispenser_QueryInterface(ITransactionDispenser
{
*
ppv
=
&
This
->
ITransactionImportWhereabouts_iface
;
}
else
if
(
IsEqualIID
(
&
IID_ITransactionImport
,
iid
))
{
*
ppv
=
&
This
->
ITransactionImport_iface
;
}
else
{
FIXME
(
"(%s): not implemented
\n
"
,
debugstr_guid
(
iid
));
...
...
@@ -345,6 +350,44 @@ static const ITransactionImportWhereaboutsVtbl TransactionImportWhereabouts_Vtbl
TransactionImportWhereabouts_GetWhereabouts
};
static
inline
TransactionManager
*
impl_from_ITransactionImport
(
ITransactionImport
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
TransactionManager
,
ITransactionImport_iface
);
}
static
HRESULT
WINAPI
TransactionImport_QueryInterface
(
ITransactionImport
*
iface
,
REFIID
iid
,
void
**
ppv
)
{
TransactionManager
*
This
=
impl_from_ITransactionImport
(
iface
);
return
TransactionDispenser_QueryInterface
(
&
This
->
ITransactionDispenser_iface
,
iid
,
ppv
);
}
static
ULONG
WINAPI
TransactionImport_AddRef
(
ITransactionImport
*
iface
)
{
TransactionManager
*
This
=
impl_from_ITransactionImport
(
iface
);
return
TransactionDispenser_AddRef
(
&
This
->
ITransactionDispenser_iface
);
}
static
ULONG
WINAPI
TransactionImport_Release
(
ITransactionImport
*
iface
)
{
TransactionManager
*
This
=
impl_from_ITransactionImport
(
iface
);
return
TransactionDispenser_Release
(
&
This
->
ITransactionDispenser_iface
);
}
static
HRESULT
WINAPI
TransactionImport_Import
(
ITransactionImport
*
iface
,
ULONG
cbTransactionCookie
,
byte
*
rgbTransactionCookie
,
IID
*
piid
,
void
**
ppvTransaction
)
{
FIXME
(
"(%p, %u, %p, %s, %p): stub
\n
"
,
iface
,
cbTransactionCookie
,
rgbTransactionCookie
,
debugstr_guid
(
piid
),
ppvTransaction
);
if
(
!
rgbTransactionCookie
||
!
piid
||
!
ppvTransaction
)
return
E_INVALIDARG
;
return
E_NOTIMPL
;
}
static
const
ITransactionImportVtbl
TransactionImport_Vtbl
=
{
TransactionImport_QueryInterface
,
TransactionImport_AddRef
,
TransactionImport_Release
,
TransactionImport_Import
};
static
HRESULT
TransactionManager_Create
(
REFIID
riid
,
void
**
ppv
)
{
TransactionManager
*
This
;
...
...
@@ -356,6 +399,7 @@ static HRESULT TransactionManager_Create(REFIID riid, void **ppv)
This
->
ITransactionDispenser_iface
.
lpVtbl
=
&
TransactionDispenser_Vtbl
;
This
->
IResourceManagerFactory2_iface
.
lpVtbl
=
&
ResourceManagerFactory2_Vtbl
;
This
->
ITransactionImportWhereabouts_iface
.
lpVtbl
=
&
TransactionImportWhereabouts_Vtbl
;
This
->
ITransactionImport_iface
.
lpVtbl
=
&
TransactionImport_Vtbl
;
This
->
ref
=
1
;
ret
=
ITransactionDispenser_QueryInterface
(
&
This
->
ITransactionDispenser_iface
,
riid
,
ppv
);
...
...
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