Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
e789b1e5
Commit
e789b1e5
authored
15 years ago
by
Huw Davies
Committed by
Alexandre Julliard
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
oledb32: Add a stub IDCInfo interface.
parent
98cc201e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/oledb32/convert.c
+61
-1
61 additions, 1 deletion
dlls/oledb32/convert.c
with
61 additions
and
1 deletion
dlls/oledb32/convert.c
+
61
−
1
View file @
e789b1e5
...
...
@@ -37,6 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(oledb);
typedef
struct
{
const
struct
IDataConvertVtbl
*
lpVtbl
;
const
struct
IDCInfoVtbl
*
lpDCInfoVtbl
;
LONG
ref
;
}
convert
;
...
...
@@ -46,6 +47,11 @@ static inline convert *impl_from_IDataConvert(IDataConvert *iface)
return
(
convert
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
convert
,
lpVtbl
));
}
static
inline
convert
*
impl_from_IDCInfo
(
IDCInfo
*
iface
)
{
return
(
convert
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
convert
,
lpDCInfoVtbl
));
}
static
HRESULT
WINAPI
convert_QueryInterface
(
IDataConvert
*
iface
,
REFIID
riid
,
void
**
obj
)
...
...
@@ -60,6 +66,10 @@ static HRESULT WINAPI convert_QueryInterface(IDataConvert* iface,
{
*
obj
=
iface
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDCInfo
))
{
*
obj
=
&
This
->
lpDCInfoVtbl
;
}
else
{
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
));
...
...
@@ -131,7 +141,6 @@ static HRESULT WINAPI convert_GetConversionSize(IDataConvert* iface,
FIXME
(
"(%p)->(%d, %d, %p, %p, %p): stub
\n
"
,
This
,
wSrcType
,
wDstType
,
pcbSrcLength
,
pcbDstLength
,
pSrc
);
return
E_NOTIMPL
;
}
static
const
struct
IDataConvertVtbl
convert_vtbl
=
...
...
@@ -144,6 +153,56 @@ static const struct IDataConvertVtbl convert_vtbl =
convert_GetConversionSize
};
static
HRESULT
WINAPI
dcinfo_QueryInterface
(
IDCInfo
*
iface
,
REFIID
riid
,
void
**
obj
)
{
convert
*
This
=
impl_from_IDCInfo
(
iface
);
return
IDataConvert_QueryInterface
((
IDataConvert
*
)
This
,
riid
,
obj
);
}
static
ULONG
WINAPI
dcinfo_AddRef
(
IDCInfo
*
iface
)
{
convert
*
This
=
impl_from_IDCInfo
(
iface
);
return
IDataConvert_AddRef
((
IDataConvert
*
)
This
);
}
static
ULONG
WINAPI
dcinfo_Release
(
IDCInfo
*
iface
)
{
convert
*
This
=
impl_from_IDCInfo
(
iface
);
return
IDataConvert_Release
((
IDataConvert
*
)
This
);
}
static
HRESULT
WINAPI
dcinfo_GetInfo
(
IDCInfo
*
iface
,
ULONG
num
,
DCINFOTYPE
types
[],
DCINFO
**
info
)
{
convert
*
This
=
impl_from_IDCInfo
(
iface
);
FIXME
(
"(%p)->(%d, %p, %p): stub
\n
"
,
This
,
num
,
types
,
info
);
*
info
=
NULL
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
dcinfo_SetInfo
(
IDCInfo
*
iface
,
ULONG
num
,
DCINFO
info
[])
{
convert
*
This
=
impl_from_IDCInfo
(
iface
);
FIXME
(
"(%p)->(%d, %p): stub
\n
"
,
This
,
num
,
info
);
return
E_NOTIMPL
;
}
static
const
struct
IDCInfoVtbl
dcinfo_vtbl
=
{
dcinfo_QueryInterface
,
dcinfo_AddRef
,
dcinfo_Release
,
dcinfo_GetInfo
,
dcinfo_SetInfo
};
HRESULT
create_oledb_convert
(
IUnknown
*
outer
,
void
**
obj
)
{
convert
*
This
;
...
...
@@ -158,6 +217,7 @@ HRESULT create_oledb_convert(IUnknown *outer, void **obj)
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpVtbl
=
&
convert_vtbl
;
This
->
lpDCInfoVtbl
=
&
dcinfo_vtbl
;
This
->
ref
=
1
;
*
obj
=
&
This
->
lpVtbl
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment