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
115d8cca
Commit
115d8cca
authored
May 08, 1999
by
Thuy Nguyen
Committed by
Alexandre Julliard
May 08, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented GetHGlobalFromStream.
parent
36a1a25f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
hglobalstream.c
ole/hglobalstream.c
+26
-0
ole32.spec
relay32/ole32.spec
+1
-1
No files found.
ole/hglobalstream.c
View file @
115d8cca
...
...
@@ -185,6 +185,32 @@ HRESULT WINAPI CreateStreamOnHGlobal(
return
E_OUTOFMEMORY
;
}
/***********************************************************************
* GetHGlobalFromStream [OLE32.71]
*/
HRESULT
WINAPI
GetHGlobalFromStream
(
IStream
*
pstm
,
HGLOBAL
*
phglobal
)
{
HGLOBALStreamImpl
*
pStream
;
if
(
pstm
==
NULL
)
return
E_INVALIDARG
;
pStream
=
(
HGLOBALStreamImpl
*
)
pstm
;
/*
* Verify that the stream object was created with CreateStreamOnHGlobal.
*/
if
(
pStream
->
lpvtbl
==
&
HGLOBALStreamImpl_Vtbl
)
*
phglobal
=
pStream
->
supportHandle
;
else
{
*
phglobal
=
0
;
return
E_INVALIDARG
;
}
return
S_OK
;
}
/******************************************************************************
** HGLOBALStreamImpl implementation
*/
...
...
relay32/ole32.spec
View file @
115d8cca
...
...
@@ -71,7 +71,7 @@ type win32
68 stub GetConvertStg
69 stub GetDocumentBitStg
70 stdcall GetHGlobalFromILockBytes(ptr ptr) GetHGlobalFromILockBytes
71 st
ub
GetHGlobalFromStream
71 st
dcall GetHGlobalFromStream(ptr ptr)
GetHGlobalFromStream
72 stub GetHookInterface
73 stdcall GetRunningObjectTable(long ptr) GetRunningObjectTable
74 stub IIDFromString
...
...
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