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
a32391ab
Commit
a32391ab
authored
Jun 18, 2013
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Add support for IErrorRecords.
parent
83c14c72
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
264 additions
and
0 deletions
+264
-0
usrmarshal.c
dlls/msdaps/usrmarshal.c
+183
-0
Makefile.in
include/Makefile.in
+1
-0
errrec.idl
include/errrec.idl
+78
-0
oledb.idl
include/oledb.idl
+1
-0
make_makefiles
tools/make_makefiles
+1
-0
No files found.
dlls/msdaps/usrmarshal.c
View file @
a32391ab
...
...
@@ -1096,3 +1096,186 @@ HRESULT __RPC_STUB ISourcesRowset_GetSourcesRowset_Stub(ISourcesRowset* This, IU
return
hr
;
}
HRESULT
CALLBACK
IErrorRecords_GetRecordCount_Proxy
(
IErrorRecords
*
This
,
ULONG
*
records
)
{
HRESULT
hr
;
IErrorInfo
*
error
;
TRACE
(
"(%p)->%p
\n
"
,
This
,
records
);
hr
=
IErrorRecords_RemoteGetRecordCount_Proxy
(
This
,
records
,
&
error
);
if
(
error
)
{
SetErrorInfo
(
0
,
error
);
IErrorInfo_Release
(
error
);
}
return
hr
;
}
HRESULT
__RPC_STUB
IErrorRecords_GetRecordCount_Stub
(
IErrorRecords
*
This
,
ULONG
*
pcRecords
,
IErrorInfo
**
ppErrorInfoRem
)
{
HRESULT
hr
;
TRACE
(
"(%p)->%p %p
\n
"
,
This
,
pcRecords
,
ppErrorInfoRem
);
*
ppErrorInfoRem
=
NULL
;
hr
=
IErrorRecords_GetRecordCount
(
This
,
pcRecords
);
if
(
FAILED
(
hr
))
GetErrorInfo
(
0
,
ppErrorInfoRem
);
return
hr
;
}
HRESULT
CALLBACK
IErrorRecords_GetErrorParameters_Proxy
(
IErrorRecords
*
This
,
ULONG
ulRecordNum
,
DISPPARAMS
*
pdispparams
)
{
HRESULT
hr
;
IErrorInfo
*
error
;
TRACE
(
"(%p)->%d %p
\n
"
,
This
,
ulRecordNum
,
pdispparams
);
hr
=
IErrorRecords_RemoteGetErrorParameters_Proxy
(
This
,
ulRecordNum
,
pdispparams
,
&
error
);
if
(
error
)
{
SetErrorInfo
(
0
,
error
);
IErrorInfo_Release
(
error
);
}
return
hr
;
}
HRESULT
__RPC_STUB
IErrorRecords_GetErrorParameters_Stub
(
IErrorRecords
*
This
,
ULONG
ulRecordNum
,
DISPPARAMS
*
pdispparams
,
IErrorInfo
**
ppErrorInfoRem
)
{
HRESULT
hr
;
TRACE
(
"(%p)->%d %p %p
\n
"
,
This
,
ulRecordNum
,
pdispparams
,
ppErrorInfoRem
);
*
ppErrorInfoRem
=
NULL
;
hr
=
IErrorRecords_GetErrorParameters
(
This
,
ulRecordNum
,
pdispparams
);
if
(
FAILED
(
hr
))
GetErrorInfo
(
0
,
ppErrorInfoRem
);
return
hr
;
}
HRESULT
CALLBACK
IErrorRecords_GetErrorInfo_Proxy
(
IErrorRecords
*
This
,
ULONG
ulRecordNum
,
LCID
lcid
,
IErrorInfo
**
ppErrorInfo
)
{
HRESULT
hr
;
IErrorInfo
*
error
;
TRACE
(
"(%p)->%d %d %p
\n
"
,
This
,
ulRecordNum
,
lcid
,
ppErrorInfo
);
hr
=
IErrorRecords_RemoteGetErrorInfo_Proxy
(
This
,
ulRecordNum
,
lcid
,
ppErrorInfo
,
&
error
);
if
(
error
)
{
SetErrorInfo
(
0
,
error
);
IErrorInfo_Release
(
error
);
}
return
hr
;
}
HRESULT
__RPC_STUB
IErrorRecords_GetErrorInfo_Stub
(
IErrorRecords
*
This
,
ULONG
ulRecordNum
,
LCID
lcid
,
IErrorInfo
**
ppErrorInfo
,
IErrorInfo
**
ppErrorInfoRem
)
{
HRESULT
hr
;
TRACE
(
"(%p)->%d %d %p %p
\n
"
,
This
,
ulRecordNum
,
lcid
,
ppErrorInfo
,
ppErrorInfoRem
);
*
ppErrorInfoRem
=
NULL
;
hr
=
IErrorRecords_GetErrorInfo
(
This
,
ulRecordNum
,
lcid
,
ppErrorInfo
);
if
(
FAILED
(
hr
))
GetErrorInfo
(
0
,
ppErrorInfoRem
);
return
hr
;
}
HRESULT
CALLBACK
IErrorRecords_GetCustomErrorObject_Proxy
(
IErrorRecords
*
This
,
ULONG
ulRecordNum
,
REFIID
riid
,
IUnknown
**
ppObject
)
{
HRESULT
hr
;
IErrorInfo
*
error
;
TRACE
(
"(%p)->%d %s %p
\n
"
,
This
,
ulRecordNum
,
debugstr_guid
(
riid
),
ppObject
);
hr
=
IErrorRecords_RemoteGetCustomErrorObject_Proxy
(
This
,
ulRecordNum
,
riid
,
ppObject
,
&
error
);
if
(
error
)
{
SetErrorInfo
(
0
,
error
);
IErrorInfo_Release
(
error
);
}
return
hr
;
}
HRESULT
__RPC_STUB
IErrorRecords_GetCustomErrorObject_Stub
(
IErrorRecords
*
This
,
ULONG
ulRecordNum
,
REFIID
riid
,
IUnknown
**
ppObject
,
IErrorInfo
**
ppErrorInfoRem
)
{
HRESULT
hr
;
TRACE
(
"(%p)->%d %s %p %p
\n
"
,
This
,
ulRecordNum
,
debugstr_guid
(
riid
),
ppObject
,
ppErrorInfoRem
);
*
ppErrorInfoRem
=
NULL
;
hr
=
IErrorRecords_GetCustomErrorObject
(
This
,
ulRecordNum
,
riid
,
ppObject
);
if
(
FAILED
(
hr
))
GetErrorInfo
(
0
,
ppErrorInfoRem
);
return
hr
;
}
HRESULT
CALLBACK
IErrorRecords_GetBasicErrorInfo_Proxy
(
IErrorRecords
*
This
,
ULONG
ulRecordNum
,
ERRORINFO
*
pErrorInfo
)
{
TRACE
(
"(%p)->%d %p
\n
"
,
This
,
ulRecordNum
,
pErrorInfo
);
return
IErrorRecords_GetBasicErrorInfo_Proxy
(
This
,
ulRecordNum
,
pErrorInfo
);
}
HRESULT
__RPC_STUB
IErrorRecords_GetBasicErrorInfo_Stub
(
IErrorRecords
*
This
,
ULONG
ulRecordNum
,
ERRORINFO
*
pErrorInfo
,
IErrorInfo
**
ppErrorInfoRem
)
{
HRESULT
hr
;
TRACE
(
"(%p)->%d %p %p
\n
"
,
This
,
ulRecordNum
,
pErrorInfo
,
ppErrorInfoRem
);
*
ppErrorInfoRem
=
NULL
;
hr
=
IErrorRecords_GetBasicErrorInfo
(
This
,
ulRecordNum
,
pErrorInfo
);
if
(
FAILED
(
hr
))
GetErrorInfo
(
0
,
ppErrorInfoRem
);
return
hr
;
}
HRESULT
CALLBACK
IErrorRecords_AddErrorRecord_Proxy
(
IErrorRecords
*
This
,
ERRORINFO
*
pErrorInfo
,
DWORD
dwLookupID
,
DISPPARAMS
*
pdispparams
,
IUnknown
*
punkCustomError
,
DWORD
dwDynamicErrorID
)
{
HRESULT
hr
;
IErrorInfo
*
error
;
TRACE
(
"(%p)->%p %d %p %p %d
\n
"
,
This
,
pErrorInfo
,
dwLookupID
,
pdispparams
,
punkCustomError
,
dwDynamicErrorID
);
hr
=
IErrorRecords_RemoteAddErrorRecord_Proxy
(
This
,
pErrorInfo
,
dwLookupID
,
pdispparams
,
punkCustomError
,
dwDynamicErrorID
,
&
error
);
if
(
error
)
{
SetErrorInfo
(
0
,
error
);
IErrorInfo_Release
(
error
);
}
return
hr
;
}
HRESULT
__RPC_STUB
IErrorRecords_AddErrorRecord_Stub
(
IErrorRecords
*
This
,
ERRORINFO
*
pErrorInfo
,
DWORD
dwLookupID
,
DISPPARAMS
*
pdispparams
,
IUnknown
*
punkCustomError
,
DWORD
dwDynamicErrorID
,
IErrorInfo
**
ppErrorInfoRem
)
{
HRESULT
hr
;
TRACE
(
"(%p)->%p %d %p %p %d %p
\n
"
,
This
,
pErrorInfo
,
dwLookupID
,
pdispparams
,
punkCustomError
,
dwDynamicErrorID
,
ppErrorInfoRem
);
*
ppErrorInfoRem
=
NULL
;
hr
=
IErrorRecords_AddErrorRecord
(
This
,
pErrorInfo
,
dwLookupID
,
pdispparams
,
punkCustomError
,
dwDynamicErrorID
);
if
(
FAILED
(
hr
))
GetErrorInfo
(
0
,
ppErrorInfoRem
);
return
hr
;
}
include/Makefile.in
View file @
a32391ab
...
...
@@ -288,6 +288,7 @@ SRCDIR_INCLUDES = \
dyngraph.idl
\
errorrep.h
\
errors.h
\
errrec.idl
\
evcode.h
\
evntprov.h
\
evntrace.h
\
...
...
include/errrec.idl
0 → 100644
View file @
a32391ab
/*
*
Copyright
(
C
)
2013
Alistair
Leslie
-
Hughes
*
*
This
library
is
free
software
; you can redistribute it and/or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
; either
*
version
2.1
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
*
This
library
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
; without even the implied warranty of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
library
; if not, write to the Free Software
*
Foundation
,
Inc
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
[
object
,
uuid
(
0
c733a67
-
2
a1c
-
11
ce
-
ade5
-
00
aa0044773d
),
pointer_default
(
unique
)
]
interface
IErrorRecords
:
IUnknown
{
cpp_quote
(
"#define IDENTIFIER_SDK_MASK 0xF0000000"
)
cpp_quote
(
"#define IDENTIFIER_SDK_ERROR 0x10000000"
)
typedef
struct
tagERRORINFO
{
HRESULT
hrError
;
DWORD
dwMinor
;
CLSID
clsid
;
IID
iid
;
DISPID
dispid
;
}
ERRORINFO
;
[
local
]
HRESULT
AddErrorRecord
(
[
in
]
ERRORINFO
*
pErrorInfo
,
[
in
]
DWORD
dwLookupID
,
[
in
]
DISPPARAMS
*
pdispparams
,
[
in
]
IUnknown
*
punkCustomError
,
[
in
]
DWORD
dwDynamicErrorID
)
;
[
call_as
(
AddErrorRecord
)
]
HRESULT
RemoteAddErrorRecord
(
[
in
]
ERRORINFO
*
pErrorInfo
,
[
in
]
DWORD
dwLookupID
,
[
in
]
DISPPARAMS
*
pdispparams
,
[
in
]
IUnknown
*
punkCustomError
,
[
in
]
DWORD
dwDynamicErrorID
,
[
out
]
IErrorInfo
**
ppErrorInfoRem
)
;
[
local
]
HRESULT
GetBasicErrorInfo
(
[
in
]
ULONG
ulRecordNum
,
[
out
]
ERRORINFO
*
pErrorInfo
)
;
[
call_as
(
GetBasicErrorInfo
)
]
HRESULT
RemoteGetBasicErrorInfo
(
[
in
]
ULONG
ulRecordNum
,
[
out
]
ERRORINFO
*
pErrorInfo
,
[
out
]
IErrorInfo
**
ppErrorInfoRem
)
;
[
local
]
HRESULT
GetCustomErrorObject
(
[
in
]
ULONG
ulRecordNum
,
[
in
]
REFIID
riid
,
[
out
]
IUnknown
**
ppObject
)
;
[
call_as
(
GetCustomErrorObject
)
]
HRESULT
RemoteGetCustomErrorObject
(
[
in
]
ULONG
ulRecordNum
,
[
in
]
REFIID
riid
,
[
out
]
IUnknown
**
ppObject
,
[
out
]
IErrorInfo
**
ppErrorInfoRem
)
;
[
local
]
HRESULT
GetErrorInfo
(
[
in
]
ULONG
ulRecordNum
,
[
in
]
LCID
lcid
,
[
out
]
IErrorInfo
**
ppErrorInfo
)
;
[
call_as
(
GetErrorInfo
)
]
HRESULT
RemoteGetErrorInfo
(
[
in
]
ULONG
ulRecordNum
,
[
in
]
LCID
lcid
,
[
out
]
IErrorInfo
**
ppErrorInfo
,
[
out
]
IErrorInfo
**
ppErrorInfoRem
)
;
[
local
]
HRESULT
GetErrorParameters
(
[
in
]
ULONG
ulRecordNum
,
[
out
]
DISPPARAMS
*
pdispparams
)
;
[
call_as
(
GetErrorParameters
)
]
HRESULT
RemoteGetErrorParameters
(
[
in
]
ULONG
ulRecordNum
,
[
out
]
DISPPARAMS
*
pdispparams
,
[
out
]
IErrorInfo
**
ppErrorInfoRem
)
;
[
local
]
HRESULT
GetRecordCount
(
[
out
]
ULONG
*
records
)
;
[
call_as
(
GetRecordCount
)
]
HRESULT
RemoteGetRecordCount
(
[
out
]
ULONG
*
pcRecords
,
[
out
]
IErrorInfo
**
ppErrorInfoRem
)
;
}
include/oledb.idl
View file @
a32391ab
...
...
@@ -66,6 +66,7 @@ typedef DWORD_PTR DBHASHVALUE;
#
include
"rowchg.idl"
#
include
"binres.idl"
#
include
"crtrow.idl"
#
include
"errrec.idl"
cpp_quote
(
"#include <accctrl.h>"
)
...
...
tools/make_makefiles
View file @
a32391ab
...
...
@@ -151,6 +151,7 @@ my %private_idl_headers = (
"dbs.idl"
=>
1
,
"devenum.idl"
=>
1
,
"dyngraph.idl"
=>
1
,
"errrec.idl"
=>
1
,
"opnrst.idl"
=>
1
,
"row.idl"
=>
1
,
"rowchg.idl"
=>
1
,
...
...
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