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
3b0a5d0a
Commit
3b0a5d0a
authored
Dec 01, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Add some function declarations to objbase.h.
- Add stubs for server ref counting. - Implement HRESULT marshaling.
parent
155c8acf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
21 deletions
+78
-21
compobj.c
dlls/ole32/compobj.c
+18
-0
marshal.c
dlls/ole32/marshal.c
+44
-0
ole32.spec
dlls/ole32/ole32.spec
+4
-4
objbase.h
include/objbase.h
+12
-17
No files found.
dlls/ole32/compobj.c
View file @
3b0a5d0a
...
@@ -2249,3 +2249,21 @@ HRESULT WINAPI CoSuspendClassObjects(void)
...
@@ -2249,3 +2249,21 @@ HRESULT WINAPI CoSuspendClassObjects(void)
FIXME
(
"
\n
"
);
FIXME
(
"
\n
"
);
return
S_OK
;
return
S_OK
;
}
}
/***********************************************************************
* CoAddRefServerProcess [OLE32.@]
*/
ULONG
WINAPI
CoAddRefServerProcess
(
void
)
{
FIXME
(
"
\n
"
);
return
2
;
}
/***********************************************************************
* CoReleaseServerProcess [OLE32.@]
*/
ULONG
WINAPI
CoReleaseServerProcess
(
void
)
{
FIXME
(
"
\n
"
);
return
1
;
}
dlls/ole32/marshal.c
View file @
3b0a5d0a
...
@@ -763,3 +763,47 @@ MARSHAL_GetStandardMarshalCF(LPVOID *ppv) {
...
@@ -763,3 +763,47 @@ MARSHAL_GetStandardMarshalCF(LPVOID *ppv) {
*
ppv
=
&
pdfmarshalcfvtbl
;
*
ppv
=
&
pdfmarshalcfvtbl
;
return
S_OK
;
return
S_OK
;
}
}
/***********************************************************************
* CoMarshalHresult [OLE32.@]
*
* Marshals an HRESULT value into a stream.
*
* PARAMS
* pStm [I] Stream that hresult will be marshaled into.
* hresult [I] HRESULT to be marshaled.
*
* RETURNS
* Success: S_OK
* Failure: A COM error code
*
* SEE
* CoUnmarshalHresult().
*/
HRESULT
WINAPI
CoMarshalHresult
(
LPSTREAM
pStm
,
HRESULT
hresult
)
{
return
IStream_Write
(
pStm
,
&
hresult
,
sizeof
(
hresult
),
NULL
);
}
/***********************************************************************
* CoUnmarshalHresult [OLE32.@]
*
* Unmarshals an HRESULT value from a stream.
*
* PARAMS
* pStm [I] Stream that hresult will be unmarshaled from.
* phresult [I] Pointer to HRESULT where the value will be unmarshaled to.
*
* RETURNS
* Success: S_OK
* Failure: A COM error code
*
* SEE
* CoMarshalHresult().
*/
HRESULT
WINAPI
CoUnmarshalHresult
(
LPSTREAM
pStm
,
HRESULT
*
phresult
)
{
return
IStream_Read
(
pStm
,
phresult
,
sizeof
(
*
phresult
),
NULL
);
}
dlls/ole32/ole32.spec
View file @
3b0a5d0a
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
@ stub CLIPFORMAT_UserUnmarshal
@ stub CLIPFORMAT_UserUnmarshal
@ stdcall CLSIDFromProgID(wstr ptr)
@ stdcall CLSIDFromProgID(wstr ptr)
@ stdcall CLSIDFromString(wstr ptr)
@ stdcall CLSIDFromString(wstr ptr)
@ st
ub CoAddRefServerProcess
@ st
dcall CoAddRefServerProcess()
@ stdcall CoBuildVersion()
@ stdcall CoBuildVersion()
@ stub CoCopyProxy #@ stdcall (ptr ptr) return 0,ERR_NOTIMPLEMENTED
@ stub CoCopyProxy #@ stdcall (ptr ptr) return 0,ERR_NOTIMPLEMENTED
@ stdcall CoCreateFreeThreadedMarshaler(ptr ptr)
@ stdcall CoCreateFreeThreadedMarshaler(ptr ptr)
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
@ stdcall CoIsOle1Class (ptr)
@ stdcall CoIsOle1Class (ptr)
@ stdcall CoLoadLibrary(wstr long)
@ stdcall CoLoadLibrary(wstr long)
@ stdcall CoLockObjectExternal(ptr long long)
@ stdcall CoLockObjectExternal(ptr long long)
@ st
ub CoMarshalHresult #@ stdcall (ptr ptr) return 0,ERR_NOTIMPLEMENTED
@ st
dcall CoMarshalHresult(ptr long)
@ stdcall CoMarshalInterThreadInterfaceInStream(ptr ptr ptr)
@ stdcall CoMarshalInterThreadInterfaceInStream(ptr ptr ptr)
@ stdcall CoMarshalInterface(ptr ptr ptr long ptr long)
@ stdcall CoMarshalInterface(ptr ptr ptr long ptr long)
@ stub CoQueryAuthenticationServices
@ stub CoQueryAuthenticationServices
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
@ stub CoRegisterPSClsid #@ stdcall (ptr ptr) return 0,ERR_NOTIMPLEMENTED
@ stub CoRegisterPSClsid #@ stdcall (ptr ptr) return 0,ERR_NOTIMPLEMENTED
@ stub CoRegisterSurrogate
@ stub CoRegisterSurrogate
@ stdcall CoReleaseMarshalData(ptr)
@ stdcall CoReleaseMarshalData(ptr)
@ st
ub CoReleaseServerProcess #@ stdcall () return 0,ERR_NOTIMPLEMENTED
@ st
dcall CoReleaseServerProcess()
@ stdcall CoResumeClassObjects()
@ stdcall CoResumeClassObjects()
@ stub CoRevertToSelf #@ stdcall () return 0,ERR_NOTIMPLEMENTED
@ stub CoRevertToSelf #@ stdcall () return 0,ERR_NOTIMPLEMENTED
@ stdcall CoRevokeClassObject(long)
@ stdcall CoRevokeClassObject(long)
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
@ stdcall CoTreatAsClass(ptr ptr)
@ stdcall CoTreatAsClass(ptr ptr)
@ stdcall CoUninitialize()
@ stdcall CoUninitialize()
@ stub CoUnloadingWOW
@ stub CoUnloadingWOW
@ st
ub CoUnmarshalHresult #@ stdcall (ptr ptr) return 0,ERR_NOTIMPLEMENTED
@ st
dcall CoUnmarshalHresult(ptr ptr)
@ stdcall CoUnmarshalInterface(ptr ptr ptr)
@ stdcall CoUnmarshalInterface(ptr ptr ptr)
@ stdcall CreateAntiMoniker(ptr)
@ stdcall CreateAntiMoniker(ptr)
@ stdcall CreateBindCtx(long ptr)
@ stdcall CreateBindCtx(long ptr)
...
...
include/objbase.h
View file @
3b0a5d0a
...
@@ -350,7 +350,7 @@ HRESULT WINAPI CoRegisterPSClsid(REFIID riid, REFCLSID rclsid);
...
@@ -350,7 +350,7 @@ HRESULT WINAPI CoRegisterPSClsid(REFIID riid, REFCLSID rclsid);
HRESULT
WINAPI
CoSuspendClassObjects
(
void
);
HRESULT
WINAPI
CoSuspendClassObjects
(
void
);
HRESULT
WINAPI
CoResumeClassObjects
(
void
);
HRESULT
WINAPI
CoResumeClassObjects
(
void
);
ULONG
WINAPI
CoAddRefServerProcess
(
void
);
ULONG
WINAPI
CoAddRefServerProcess
(
void
);
HRESULT
WINAPI
CoReleaseServerProcess
(
void
);
ULONG
WINAPI
CoReleaseServerProcess
(
void
);
/* marshalling */
/* marshalling */
HRESULT
WINAPI
CoCreateFreeThreadedMarshaler
(
LPUNKNOWN
punkOuter
,
LPUNKNOWN
*
ppunkMarshal
);
HRESULT
WINAPI
CoCreateFreeThreadedMarshaler
(
LPUNKNOWN
punkOuter
,
LPUNKNOWN
*
ppunkMarshal
);
...
@@ -417,27 +417,22 @@ HRESULT WINAPI CreateDataCache(LPUNKNOWN pUnkOuter, REFCLSID rclsid, REFIID iid,
...
@@ -417,27 +417,22 @@ HRESULT WINAPI CreateDataCache(LPUNKNOWN pUnkOuter, REFCLSID rclsid, REFIID iid,
/*****************************************************************************
/*****************************************************************************
* Moniker API
* Moniker API
*/
*/
HRESULT
WINAPI
GetClassFile
(
LPCOLESTR
filePathName
,
CLSID
*
pclsid
);
HRESULT
WINAPI
BindMoniker
(
LPMONIKER
pmk
,
DWORD
grfOpt
,
REFIID
iidResult
,
LPVOID
*
ppvResult
);
HRESULT
WINAPI
CoGetObject
(
LPCWSTR
pszName
,
BIND_OPTS
*
pBindOptions
,
REFIID
riid
,
void
**
ppv
);
HRESULT
WINAPI
CreateAntiMoniker
(
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
CreateBindCtx
(
DWORD
reserved
,
LPBC
*
ppbc
);
HRESULT
WINAPI
CreateBindCtx
(
DWORD
reserved
,
LPBC
*
ppbc
);
HRESULT
WINAPI
CreateClassMoniker
(
REFCLSID
rclsid
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
CreateFileMoniker
(
LPCOLESTR
lpszPathName
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
CreateFileMoniker
(
LPCOLESTR
lpszPathName
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
CreateItemMoniker
(
LPCOLESTR
lpszDelim
,
LPCOLESTR
lpszItem
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
CreateAntiMoniker
(
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
CreateGenericComposite
(
LPMONIKER
pmkFirst
,
LPMONIKER
pmkRest
,
LPMONIKER
*
ppmkComposite
);
HRESULT
WINAPI
CreateGenericComposite
(
LPMONIKER
pmkFirst
,
LPMONIKER
pmkRest
,
LPMONIKER
*
ppmkComposite
);
HRESULT
WINAPI
CreateItemMoniker
(
LPCOLESTR
lpszDelim
,
LPCOLESTR
lpszItem
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
BindMoniker
(
LPMONIKER
pmk
,
DWORD
grfOpt
,
REFIID
iidResult
,
LPVOID
*
ppvResult
);
HRESULT
WINAPI
CreateObjrefMoniker
(
LPUNKNOWN
punk
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
CreatePointerMoniker
(
LPUNKNOWN
punk
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
CreateClassMoniker
(
REFCLSID
rclsid
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
CreatePointerMoniker
(
LPUNKNOWN
punk
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
CreatePointerMoniker
(
LPUNKNOWN
punk
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
GetClassFile
(
LPCOLESTR
filePathName
,
CLSID
*
pclsid
);
HRESULT
WINAPI
MonikerCommonPrefixWith
(
IMoniker
*
pmkThis
,
IMoniker
*
pmkOther
,
IMoniker
**
ppmkCommon
);
HRESULT
WINAPI
GetRunningObjectTable
(
DWORD
reserved
,
LPRUNNINGOBJECTTABLE
*
pprot
);
HRESULT
WINAPI
GetRunningObjectTable
(
DWORD
reserved
,
LPRUNNINGOBJECTTABLE
*
pprot
);
HRESULT
WINAPI
MkParseDisplayName
(
LPBC
pbc
,
LPCOLESTR
szUserName
,
ULONG
*
pchEaten
,
LPMONIKER
*
ppmk
);
HRESULT
WINAPI
MonikerCommonPrefixWith
(
IMoniker
*
pmkThis
,
IMoniker
*
pmkOther
,
IMoniker
**
ppmkCommon
);
HRESULT
WINAPI
MonikerRelativePathTo
(
LPMONIKER
pmkSrc
,
LPMONIKER
pmkDest
,
LPMONIKER
*
ppmkRelPath
,
BOOL
dwReserved
);
/*****************************************************************************
/*****************************************************************************
* Storage API
* Storage API
...
...
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