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
e789b1e5
Commit
e789b1e5
authored
Sep 09, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Sep 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Add a stub IDCInfo interface.
parent
98cc201e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
1 deletion
+61
-1
convert.c
dlls/oledb32/convert.c
+61
-1
No files found.
dlls/oledb32/convert.c
View file @
e789b1e5
...
@@ -37,6 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(oledb);
...
@@ -37,6 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(oledb);
typedef
struct
typedef
struct
{
{
const
struct
IDataConvertVtbl
*
lpVtbl
;
const
struct
IDataConvertVtbl
*
lpVtbl
;
const
struct
IDCInfoVtbl
*
lpDCInfoVtbl
;
LONG
ref
;
LONG
ref
;
}
convert
;
}
convert
;
...
@@ -46,6 +47,11 @@ static inline convert *impl_from_IDataConvert(IDataConvert *iface)
...
@@ -46,6 +47,11 @@ static inline convert *impl_from_IDataConvert(IDataConvert *iface)
return
(
convert
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
convert
,
lpVtbl
));
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
,
static
HRESULT
WINAPI
convert_QueryInterface
(
IDataConvert
*
iface
,
REFIID
riid
,
REFIID
riid
,
void
**
obj
)
void
**
obj
)
...
@@ -60,6 +66,10 @@ static HRESULT WINAPI convert_QueryInterface(IDataConvert* iface,
...
@@ -60,6 +66,10 @@ static HRESULT WINAPI convert_QueryInterface(IDataConvert* iface,
{
{
*
obj
=
iface
;
*
obj
=
iface
;
}
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDCInfo
))
{
*
obj
=
&
This
->
lpDCInfoVtbl
;
}
else
else
{
{
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
));
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
));
...
@@ -131,7 +141,6 @@ static HRESULT WINAPI convert_GetConversionSize(IDataConvert* iface,
...
@@ -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
);
FIXME
(
"(%p)->(%d, %d, %p, %p, %p): stub
\n
"
,
This
,
wSrcType
,
wDstType
,
pcbSrcLength
,
pcbDstLength
,
pSrc
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
const
struct
IDataConvertVtbl
convert_vtbl
=
static
const
struct
IDataConvertVtbl
convert_vtbl
=
...
@@ -144,6 +153,56 @@ static const struct IDataConvertVtbl convert_vtbl =
...
@@ -144,6 +153,56 @@ static const struct IDataConvertVtbl convert_vtbl =
convert_GetConversionSize
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
)
HRESULT
create_oledb_convert
(
IUnknown
*
outer
,
void
**
obj
)
{
{
convert
*
This
;
convert
*
This
;
...
@@ -158,6 +217,7 @@ HRESULT create_oledb_convert(IUnknown *outer, void **obj)
...
@@ -158,6 +217,7 @@ HRESULT create_oledb_convert(IUnknown *outer, void **obj)
if
(
!
This
)
return
E_OUTOFMEMORY
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpVtbl
=
&
convert_vtbl
;
This
->
lpVtbl
=
&
convert_vtbl
;
This
->
lpDCInfoVtbl
=
&
dcinfo_vtbl
;
This
->
ref
=
1
;
This
->
ref
=
1
;
*
obj
=
&
This
->
lpVtbl
;
*
obj
=
&
This
->
lpVtbl
;
...
...
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