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
d3276280
Commit
d3276280
authored
Jul 22, 2005
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
16bit interfaces are cdecl, so drop the WINAPI.
parent
f633a5cc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
76 deletions
+81
-76
ifs.h
dlls/ole32/ifs.h
+56
-51
ole16.c
dlls/ole32/ole16.c
+9
-9
storage.c
dlls/ole32/storage.c
+16
-16
No files found.
dlls/ole32/ifs.h
View file @
d3276280
...
...
@@ -29,6 +29,11 @@ typedef CHAR OLECHAR16;
typedef
LPSTR
LPOLESTR16
;
typedef
LPCSTR
LPCOLESTR16
;
#define STDMETHOD16CALLTYPE __cdecl
#define STDMETHOD16(m) HRESULT (STDMETHOD16CALLTYPE *m)
#define STDMETHOD16_(t,m) t (STDMETHOD16CALLTYPE *m)
/***********************************************************************
* IMalloc16 interface
*/
...
...
@@ -39,16 +44,16 @@ typedef struct IMalloc16 IMalloc16, *LPMALLOC16;
DECLARE_INTERFACE_
(
IMalloc16
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD
16
_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD
16
_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IMalloc16 methods ***/
STDMETHOD_
(
LPVOID
,
Alloc
)(
THIS_
DWORD
cb
)
PURE
;
STDMETHOD_
(
LPVOID
,
Realloc
)(
THIS_
LPVOID
pv
,
DWORD
cb
)
PURE
;
STDMETHOD_
(
void
,
Free
)(
THIS_
LPVOID
pv
)
PURE
;
STDMETHOD_
(
DWORD
,
GetSize
)(
THIS_
LPVOID
pv
)
PURE
;
STDMETHOD_
(
INT16
,
DidAlloc
)(
THIS_
LPVOID
pv
)
PURE
;
STDMETHOD_
(
LPVOID
,
HeapMinimize
)(
THIS
)
PURE
;
STDMETHOD
16
_
(
LPVOID
,
Alloc
)(
THIS_
DWORD
cb
)
PURE
;
STDMETHOD
16
_
(
LPVOID
,
Realloc
)(
THIS_
LPVOID
pv
,
DWORD
cb
)
PURE
;
STDMETHOD
16
_
(
void
,
Free
)(
THIS_
LPVOID
pv
)
PURE
;
STDMETHOD
16
_
(
DWORD
,
GetSize
)(
THIS_
LPVOID
pv
)
PURE
;
STDMETHOD
16
_
(
INT16
,
DidAlloc
)(
THIS_
LPVOID
pv
)
PURE
;
STDMETHOD
16
_
(
LPVOID
,
HeapMinimize
)(
THIS
)
PURE
;
};
#undef INTERFACE
...
...
@@ -64,17 +69,17 @@ typedef struct ILockBytes16 *LPLOCKBYTES16, ILockBytes16;
DECLARE_INTERFACE_
(
ILockBytes16
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD
16
_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD
16
_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** ILockBytes16 methods ***/
STDMETHOD
(
ReadAt
)(
THIS_
ULARGE_INTEGER
ulOffset
,
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbRead
)
PURE
;
STDMETHOD
(
WriteAt
)(
THIS_
ULARGE_INTEGER
ulOffset
,
const
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbWritten
)
PURE
;
STDMETHOD
(
Flush
)(
THIS
)
PURE
;
STDMETHOD
(
SetSize
)(
THIS_
ULARGE_INTEGER
cb
)
PURE
;
STDMETHOD
(
LockRegion
)(
THIS_
ULARGE_INTEGER
libOffset
,
ULARGE_INTEGER
cb
,
DWORD
dwLockType
)
PURE
;
STDMETHOD
(
UnlockRegion
)(
THIS_
ULARGE_INTEGER
libOffset
,
ULARGE_INTEGER
cb
,
DWORD
dwLockType
)
PURE
;
STDMETHOD
(
Stat
)(
THIS_
STATSTG
*
pstatstg
,
DWORD
grfStatFlag
)
PURE
;
STDMETHOD
16
(
ReadAt
)(
THIS_
ULARGE_INTEGER
ulOffset
,
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbRead
)
PURE
;
STDMETHOD
16
(
WriteAt
)(
THIS_
ULARGE_INTEGER
ulOffset
,
const
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbWritten
)
PURE
;
STDMETHOD
16
(
Flush
)(
THIS
)
PURE
;
STDMETHOD
16
(
SetSize
)(
THIS_
ULARGE_INTEGER
cb
)
PURE
;
STDMETHOD
16
(
LockRegion
)(
THIS_
ULARGE_INTEGER
libOffset
,
ULARGE_INTEGER
cb
,
DWORD
dwLockType
)
PURE
;
STDMETHOD
16
(
UnlockRegion
)(
THIS_
ULARGE_INTEGER
libOffset
,
ULARGE_INTEGER
cb
,
DWORD
dwLockType
)
PURE
;
STDMETHOD
16
(
Stat
)(
THIS_
STATSTG
*
pstatstg
,
DWORD
grfStatFlag
)
PURE
;
};
#undef INTERFACE
...
...
@@ -101,22 +106,22 @@ typedef struct IStream16 IStream16, *LPSTREAM16;
DECLARE_INTERFACE_
(
IStream16
,
ISequentialStream
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD
16
_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD
16
_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** ISequentialStream methods ***/
STDMETHOD_
(
HRESULT
,
Read
)(
THIS_
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbRead
)
PURE
;
STDMETHOD_
(
HRESULT
,
Write
)(
THIS_
const
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbWritten
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
Read
)(
THIS_
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbRead
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
Write
)(
THIS_
const
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbWritten
)
PURE
;
/*** IStream16 methods ***/
STDMETHOD
(
Seek
)(
THIS_
LARGE_INTEGER
dlibMove
,
DWORD
dwOrigin
,
ULARGE_INTEGER
*
plibNewPosition
)
PURE
;
STDMETHOD
(
SetSize
)(
THIS_
ULARGE_INTEGER
libNewSize
)
PURE
;
STDMETHOD
(
CopyTo
)(
THIS_
IStream16
*
pstm
,
ULARGE_INTEGER
cb
,
ULARGE_INTEGER
*
pcbRead
,
ULARGE_INTEGER
*
pcbWritten
)
PURE
;
STDMETHOD
(
Commit
)(
THIS_
DWORD
grfCommitFlags
)
PURE
;
STDMETHOD
(
Revert
)(
THIS
)
PURE
;
STDMETHOD
(
LockRegion
)(
THIS_
ULARGE_INTEGER
libOffset
,
ULARGE_INTEGER
cb
,
DWORD
dwLockType
)
PURE
;
STDMETHOD
(
UnlockRegion
)(
THIS_
ULARGE_INTEGER
libOffset
,
ULARGE_INTEGER
cb
,
DWORD
dwLockType
)
PURE
;
STDMETHOD
(
Stat
)(
THIS_
STATSTG
*
pstatstg
,
DWORD
grfStatFlag
)
PURE
;
STDMETHOD
(
Clone
)(
THIS_
IStream16
**
ppstm
)
PURE
;
STDMETHOD
16
(
Seek
)(
THIS_
LARGE_INTEGER
dlibMove
,
DWORD
dwOrigin
,
ULARGE_INTEGER
*
plibNewPosition
)
PURE
;
STDMETHOD
16
(
SetSize
)(
THIS_
ULARGE_INTEGER
libNewSize
)
PURE
;
STDMETHOD
16
(
CopyTo
)(
THIS_
IStream16
*
pstm
,
ULARGE_INTEGER
cb
,
ULARGE_INTEGER
*
pcbRead
,
ULARGE_INTEGER
*
pcbWritten
)
PURE
;
STDMETHOD
16
(
Commit
)(
THIS_
DWORD
grfCommitFlags
)
PURE
;
STDMETHOD
16
(
Revert
)(
THIS
)
PURE
;
STDMETHOD
16
(
LockRegion
)(
THIS_
ULARGE_INTEGER
libOffset
,
ULARGE_INTEGER
cb
,
DWORD
dwLockType
)
PURE
;
STDMETHOD
16
(
UnlockRegion
)(
THIS_
ULARGE_INTEGER
libOffset
,
ULARGE_INTEGER
cb
,
DWORD
dwLockType
)
PURE
;
STDMETHOD
16
(
Stat
)(
THIS_
STATSTG
*
pstatstg
,
DWORD
grfStatFlag
)
PURE
;
STDMETHOD
16
(
Clone
)(
THIS_
IStream16
**
ppstm
)
PURE
;
};
#undef INTERFACE
...
...
@@ -130,25 +135,25 @@ typedef struct IStorage16 IStorage16, *LPSTORAGE16;
DECLARE_INTERFACE_
(
IStorage16
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD
16
_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD
16
_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IStorage16 methods ***/
STDMETHOD_
(
HRESULT
,
CreateStream
)(
THIS_
LPCOLESTR16
pwcsName
,
DWORD
grfMode
,
DWORD
reserved1
,
DWORD
reserved2
,
IStream16
**
ppstm
)
PURE
;
STDMETHOD_
(
HRESULT
,
OpenStream
)(
THIS_
LPCOLESTR16
pwcsName
,
void
*
reserved1
,
DWORD
grfMode
,
DWORD
reserved2
,
IStream16
**
ppstm
)
PURE
;
STDMETHOD_
(
HRESULT
,
CreateStorage
)(
THIS_
LPCOLESTR16
pwcsName
,
DWORD
grfMode
,
DWORD
dwStgFmt
,
DWORD
reserved2
,
IStorage16
**
ppstg
)
PURE
;
STDMETHOD_
(
HRESULT
,
OpenStorage
)(
THIS_
LPCOLESTR16
pwcsName
,
IStorage16
*
pstgPriority
,
DWORD
grfMode
,
SNB16
snbExclude
,
DWORD
reserved
,
IStorage16
**
ppstg
)
PURE
;
STDMETHOD_
(
HRESULT
,
CopyTo
)(
THIS_
DWORD
ciidExclude
,
const
IID
*
rgiidExclude
,
SNB16
snbExclude
,
IStorage16
*
pstgDest
)
PURE
;
STDMETHOD_
(
HRESULT
,
MoveElementTo
)(
THIS_
LPCOLESTR16
pwcsName
,
IStorage16
*
pstgDest
,
LPCOLESTR16
pwcsNewName
,
DWORD
grfFlags
)
PURE
;
STDMETHOD_
(
HRESULT
,
Commit
)(
THIS_
DWORD
grfCommitFlags
)
PURE
;
STDMETHOD_
(
HRESULT
,
Revert
)(
THIS
)
PURE
;
STDMETHOD_
(
HRESULT
,
EnumElements
)(
THIS_
DWORD
reserved1
,
void
*
reserved2
,
DWORD
reserved3
,
IEnumSTATSTG
**
ppenum
)
PURE
;
STDMETHOD_
(
HRESULT
,
DestroyElement
)(
THIS_
LPCOLESTR16
pwcsName
)
PURE
;
STDMETHOD_
(
HRESULT
,
RenameElement
)(
THIS_
LPCOLESTR16
pwcsOldName
,
LPCOLESTR16
pwcsNewName
)
PURE
;
STDMETHOD_
(
HRESULT
,
SetElementTimes
)(
THIS_
LPCOLESTR16
pwcsName
,
const
FILETIME
*
pctime
,
const
FILETIME
*
patime
,
const
FILETIME
*
pmtime
)
PURE
;
STDMETHOD_
(
HRESULT
,
SetClass
)(
THIS_
REFCLSID
clsid
)
PURE
;
STDMETHOD_
(
HRESULT
,
SetStateBits
)(
THIS_
DWORD
grfStateBits
,
DWORD
grfMask
)
PURE
;
STDMETHOD_
(
HRESULT
,
Stat
)(
THIS_
STATSTG
*
pstatstg
,
DWORD
grfStatFlag
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
CreateStream
)(
THIS_
LPCOLESTR16
pwcsName
,
DWORD
grfMode
,
DWORD
reserved1
,
DWORD
reserved2
,
IStream16
**
ppstm
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
OpenStream
)(
THIS_
LPCOLESTR16
pwcsName
,
void
*
reserved1
,
DWORD
grfMode
,
DWORD
reserved2
,
IStream16
**
ppstm
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
CreateStorage
)(
THIS_
LPCOLESTR16
pwcsName
,
DWORD
grfMode
,
DWORD
dwStgFmt
,
DWORD
reserved2
,
IStorage16
**
ppstg
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
OpenStorage
)(
THIS_
LPCOLESTR16
pwcsName
,
IStorage16
*
pstgPriority
,
DWORD
grfMode
,
SNB16
snbExclude
,
DWORD
reserved
,
IStorage16
**
ppstg
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
CopyTo
)(
THIS_
DWORD
ciidExclude
,
const
IID
*
rgiidExclude
,
SNB16
snbExclude
,
IStorage16
*
pstgDest
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
MoveElementTo
)(
THIS_
LPCOLESTR16
pwcsName
,
IStorage16
*
pstgDest
,
LPCOLESTR16
pwcsNewName
,
DWORD
grfFlags
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
Commit
)(
THIS_
DWORD
grfCommitFlags
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
Revert
)(
THIS
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
EnumElements
)(
THIS_
DWORD
reserved1
,
void
*
reserved2
,
DWORD
reserved3
,
IEnumSTATSTG
**
ppenum
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
DestroyElement
)(
THIS_
LPCOLESTR16
pwcsName
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
RenameElement
)(
THIS_
LPCOLESTR16
pwcsOldName
,
LPCOLESTR16
pwcsNewName
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
SetElementTimes
)(
THIS_
LPCOLESTR16
pwcsName
,
const
FILETIME
*
pctime
,
const
FILETIME
*
patime
,
const
FILETIME
*
pmtime
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
SetClass
)(
THIS_
REFCLSID
clsid
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
SetStateBits
)(
THIS_
DWORD
grfStateBits
,
DWORD
grfMask
)
PURE
;
STDMETHOD
16
_
(
HRESULT
,
Stat
)(
THIS_
STATSTG
*
pstatstg
,
DWORD
grfStatFlag
)
PURE
;
};
#undef INTERFACE
...
...
dlls/ole32/ole16.c
View file @
d3276280
...
...
@@ -69,7 +69,7 @@ typedef struct
/******************************************************************************
* IMalloc16_QueryInterface [COMPOBJ.500]
*/
HRESULT
WINAPI
IMalloc16_fnQueryInterface
(
IMalloc16
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
)
{
HRESULT
IMalloc16_fnQueryInterface
(
IMalloc16
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
)
{
IMalloc16Impl
*
This
=
(
IMalloc16Impl
*
)
iface
;
TRACE
(
"(%p)->QueryInterface(%s,%p)
\n
"
,
This
,
debugstr_guid
(
refiid
),
obj
);
...
...
@@ -85,7 +85,7 @@ HRESULT WINAPI IMalloc16_fnQueryInterface(IMalloc16* iface,REFIID refiid,LPVOID
/******************************************************************************
* IMalloc16_AddRef [COMPOBJ.501]
*/
ULONG
WINAPI
IMalloc16_fnAddRef
(
IMalloc16
*
iface
)
{
ULONG
IMalloc16_fnAddRef
(
IMalloc16
*
iface
)
{
IMalloc16Impl
*
This
=
(
IMalloc16Impl
*
)
iface
;
TRACE
(
"(%p)->AddRef()
\n
"
,
This
);
return
1
;
/* cannot be freed */
...
...
@@ -94,7 +94,7 @@ ULONG WINAPI IMalloc16_fnAddRef(IMalloc16* iface) {
/******************************************************************************
* IMalloc16_Release [COMPOBJ.502]
*/
ULONG
WINAPI
IMalloc16_fnRelease
(
IMalloc16
*
iface
)
{
ULONG
IMalloc16_fnRelease
(
IMalloc16
*
iface
)
{
IMalloc16Impl
*
This
=
(
IMalloc16Impl
*
)
iface
;
TRACE
(
"(%p)->Release()
\n
"
,
This
);
return
1
;
/* cannot be freed */
...
...
@@ -103,7 +103,7 @@ ULONG WINAPI IMalloc16_fnRelease(IMalloc16* iface) {
/******************************************************************************
* IMalloc16_Alloc [COMPOBJ.503]
*/
SEGPTR
WINAPI
IMalloc16_fnAlloc
(
IMalloc16
*
iface
,
DWORD
cb
)
{
SEGPTR
IMalloc16_fnAlloc
(
IMalloc16
*
iface
,
DWORD
cb
)
{
IMalloc16Impl
*
This
=
(
IMalloc16Impl
*
)
iface
;
TRACE
(
"(%p)->Alloc(%ld)
\n
"
,
This
,
cb
);
return
MapLS
(
HeapAlloc
(
GetProcessHeap
(),
0
,
cb
)
);
...
...
@@ -112,7 +112,7 @@ SEGPTR WINAPI IMalloc16_fnAlloc(IMalloc16* iface,DWORD cb) {
/******************************************************************************
* IMalloc16_Free [COMPOBJ.505]
*/
VOID
WINAPI
IMalloc16_fnFree
(
IMalloc16
*
iface
,
SEGPTR
pv
)
VOID
IMalloc16_fnFree
(
IMalloc16
*
iface
,
SEGPTR
pv
)
{
void
*
ptr
=
MapSL
(
pv
);
IMalloc16Impl
*
This
=
(
IMalloc16Impl
*
)
iface
;
...
...
@@ -124,7 +124,7 @@ VOID WINAPI IMalloc16_fnFree(IMalloc16* iface,SEGPTR pv)
/******************************************************************************
* IMalloc16_Realloc [COMPOBJ.504]
*/
SEGPTR
WINAPI
IMalloc16_fnRealloc
(
IMalloc16
*
iface
,
SEGPTR
pv
,
DWORD
cb
)
SEGPTR
IMalloc16_fnRealloc
(
IMalloc16
*
iface
,
SEGPTR
pv
,
DWORD
cb
)
{
SEGPTR
ret
;
IMalloc16Impl
*
This
=
(
IMalloc16Impl
*
)
iface
;
...
...
@@ -144,7 +144,7 @@ SEGPTR WINAPI IMalloc16_fnRealloc(IMalloc16* iface,SEGPTR pv,DWORD cb)
/******************************************************************************
* IMalloc16_GetSize [COMPOBJ.506]
*/
DWORD
WINAPI
IMalloc16_fnGetSize
(
const
IMalloc16
*
iface
,
SEGPTR
pv
)
DWORD
IMalloc16_fnGetSize
(
const
IMalloc16
*
iface
,
SEGPTR
pv
)
{
IMalloc16Impl
*
This
=
(
IMalloc16Impl
*
)
iface
;
TRACE
(
"(%p)->GetSize(%08lx)
\n
"
,
This
,
pv
);
...
...
@@ -154,7 +154,7 @@ DWORD WINAPI IMalloc16_fnGetSize(const IMalloc16* iface,SEGPTR pv)
/******************************************************************************
* IMalloc16_DidAlloc [COMPOBJ.507]
*/
INT16
WINAPI
IMalloc16_fnDidAlloc
(
const
IMalloc16
*
iface
,
LPVOID
pv
)
{
INT16
IMalloc16_fnDidAlloc
(
const
IMalloc16
*
iface
,
LPVOID
pv
)
{
IMalloc16
*
This
=
(
IMalloc16
*
)
iface
;
TRACE
(
"(%p)->DidAlloc(%p)
\n
"
,
This
,
pv
);
return
(
INT16
)
-
1
;
...
...
@@ -163,7 +163,7 @@ INT16 WINAPI IMalloc16_fnDidAlloc(const IMalloc16* iface,LPVOID pv) {
/******************************************************************************
* IMalloc16_HeapMinimize [COMPOBJ.508]
*/
LPVOID
WINAPI
IMalloc16_fnHeapMinimize
(
IMalloc16
*
iface
)
{
LPVOID
IMalloc16_fnHeapMinimize
(
IMalloc16
*
iface
)
{
IMalloc16Impl
*
This
=
(
IMalloc16Impl
*
)
iface
;
TRACE
(
"(%p)->HeapMinimize()
\n
"
,
This
);
return
NULL
;
...
...
dlls/ole32/storage.c
View file @
d3276280
...
...
@@ -968,7 +968,7 @@ typedef struct
/******************************************************************************
* IStream16_QueryInterface [STORAGE.518]
*/
HRESULT
WINAPI
IStream16_fnQueryInterface
(
HRESULT
IStream16_fnQueryInterface
(
IStream16
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
)
{
IStream16Impl
*
This
=
(
IStream16Impl
*
)
iface
;
...
...
@@ -984,7 +984,7 @@ HRESULT WINAPI IStream16_fnQueryInterface(
/******************************************************************************
* IStream16_AddRef [STORAGE.519]
*/
ULONG
WINAPI
IStream16_fnAddRef
(
IStream16
*
iface
)
{
ULONG
IStream16_fnAddRef
(
IStream16
*
iface
)
{
IStream16Impl
*
This
=
(
IStream16Impl
*
)
iface
;
return
InterlockedIncrement
(
&
This
->
ref
);
}
...
...
@@ -992,7 +992,7 @@ ULONG WINAPI IStream16_fnAddRef(IStream16* iface) {
/******************************************************************************
* IStream16_Release [STORAGE.520]
*/
ULONG
WINAPI
IStream16_fnRelease
(
IStream16
*
iface
)
{
ULONG
IStream16_fnRelease
(
IStream16
*
iface
)
{
IStream16Impl
*
This
=
(
IStream16Impl
*
)
iface
;
ULONG
ref
;
FlushFileBuffers
(
This
->
hf
);
...
...
@@ -1011,7 +1011,7 @@ ULONG WINAPI IStream16_fnRelease(IStream16* iface) {
* FIXME
* Does not handle 64 bits
*/
HRESULT
WINAPI
IStream16_fnSeek
(
HRESULT
IStream16_fnSeek
(
IStream16
*
iface
,
LARGE_INTEGER
offset
,
DWORD
whence
,
ULARGE_INTEGER
*
newpos
)
{
IStream16Impl
*
This
=
(
IStream16Impl
*
)
iface
;
...
...
@@ -1055,7 +1055,7 @@ HRESULT WINAPI IStream16_fnSeek(
/******************************************************************************
* IStream16_Read [STORAGE.521]
*/
HRESULT
WINAPI
IStream16_fnRead
(
HRESULT
IStream16_fnRead
(
IStream16
*
iface
,
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbRead
)
{
IStream16Impl
*
This
=
(
IStream16Impl
*
)
iface
;
...
...
@@ -1117,7 +1117,7 @@ HRESULT WINAPI IStream16_fnRead(
/******************************************************************************
* IStream16_Write [STORAGE.522]
*/
HRESULT
WINAPI
IStream16_fnWrite
(
HRESULT
IStream16_fnWrite
(
IStream16
*
iface
,
const
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbWrite
)
{
IStream16Impl
*
This
=
(
IStream16Impl
*
)
iface
;
...
...
@@ -1515,7 +1515,7 @@ typedef struct
/******************************************************************************
* IStorage16_QueryInterface [STORAGE.500]
*/
HRESULT
WINAPI
IStorage16_fnQueryInterface
(
HRESULT
IStorage16_fnQueryInterface
(
IStorage16
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
)
{
IStorage16Impl
*
This
=
(
IStorage16Impl
*
)
iface
;
...
...
@@ -1532,7 +1532,7 @@ HRESULT WINAPI IStorage16_fnQueryInterface(
/******************************************************************************
* IStorage16_AddRef [STORAGE.501]
*/
ULONG
WINAPI
IStorage16_fnAddRef
(
IStorage16
*
iface
)
{
ULONG
IStorage16_fnAddRef
(
IStorage16
*
iface
)
{
IStorage16Impl
*
This
=
(
IStorage16Impl
*
)
iface
;
return
InterlockedIncrement
(
&
This
->
ref
);
}
...
...
@@ -1540,7 +1540,7 @@ ULONG WINAPI IStorage16_fnAddRef(IStorage16* iface) {
/******************************************************************************
* IStorage16_Release [STORAGE.502]
*/
ULONG
WINAPI
IStorage16_fnRelease
(
IStorage16
*
iface
)
{
ULONG
IStorage16_fnRelease
(
IStorage16
*
iface
)
{
IStorage16Impl
*
This
=
(
IStorage16Impl
*
)
iface
;
ULONG
ref
;
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -1555,7 +1555,7 @@ ULONG WINAPI IStorage16_fnRelease(IStorage16* iface) {
/******************************************************************************
* IStorage16_Stat [STORAGE.517]
*/
HRESULT
WINAPI
IStorage16_fnStat
(
HRESULT
IStorage16_fnStat
(
LPSTORAGE16
iface
,
STATSTG16
*
pstatstg
,
DWORD
grfStatFlag
)
{
IStorage16Impl
*
This
=
(
IStorage16Impl
*
)
iface
;
...
...
@@ -1583,7 +1583,7 @@ HRESULT WINAPI IStorage16_fnStat(
/******************************************************************************
* IStorage16_Commit [STORAGE.509]
*/
HRESULT
WINAPI
IStorage16_fnCommit
(
HRESULT
IStorage16_fnCommit
(
LPSTORAGE16
iface
,
DWORD
commitflags
)
{
IStorage16Impl
*
This
=
(
IStorage16Impl
*
)
iface
;
...
...
@@ -1596,7 +1596,7 @@ HRESULT WINAPI IStorage16_fnCommit(
/******************************************************************************
* IStorage16_CopyTo [STORAGE.507]
*/
HRESULT
WINAPI
IStorage16_fnCopyTo
(
LPSTORAGE16
iface
,
DWORD
ciidExclude
,
const
IID
*
rgiidExclude
,
SNB16
SNB16Exclude
,
IStorage16
*
pstgDest
)
{
HRESULT
IStorage16_fnCopyTo
(
LPSTORAGE16
iface
,
DWORD
ciidExclude
,
const
IID
*
rgiidExclude
,
SNB16
SNB16Exclude
,
IStorage16
*
pstgDest
)
{
IStorage16Impl
*
This
=
(
IStorage16Impl
*
)
iface
;
FIXME
(
"IStorage16(%p)->(0x%08lx,%s,%p,%p),stub!
\n
"
,
This
,
ciidExclude
,
debugstr_guid
(
rgiidExclude
),
SNB16Exclude
,
pstgDest
...
...
@@ -1608,7 +1608,7 @@ HRESULT WINAPI IStorage16_fnCopyTo(LPSTORAGE16 iface,DWORD ciidExclude,const IID
/******************************************************************************
* IStorage16_CreateStorage [STORAGE.505]
*/
HRESULT
WINAPI
IStorage16_fnCreateStorage
(
HRESULT
IStorage16_fnCreateStorage
(
LPSTORAGE16
iface
,
LPCOLESTR16
pwcsName
,
DWORD
grfMode
,
DWORD
dwStgFormat
,
DWORD
reserved2
,
IStorage16
**
ppstg
)
{
IStorage16Impl
*
This
=
(
IStorage16Impl
*
)
iface
;
...
...
@@ -1673,7 +1673,7 @@ HRESULT WINAPI IStorage16_fnCreateStorage(
/******************************************************************************
* IStorage16_CreateStream [STORAGE.503]
*/
HRESULT
WINAPI
IStorage16_fnCreateStream
(
HRESULT
IStorage16_fnCreateStream
(
LPSTORAGE16
iface
,
LPCOLESTR16
pwcsName
,
DWORD
grfMode
,
DWORD
reserved1
,
DWORD
reserved2
,
IStream16
**
ppstm
)
{
IStorage16Impl
*
This
=
(
IStorage16Impl
*
)
iface
;
...
...
@@ -1731,7 +1731,7 @@ HRESULT WINAPI IStorage16_fnCreateStream(
/******************************************************************************
* IStorage16_OpenStorage [STORAGE.506]
*/
HRESULT
WINAPI
IStorage16_fnOpenStorage
(
HRESULT
IStorage16_fnOpenStorage
(
LPSTORAGE16
iface
,
LPCOLESTR16
pwcsName
,
IStorage16
*
pstgPrio
,
DWORD
grfMode
,
SNB16
snbExclude
,
DWORD
reserved
,
IStorage16
**
ppstg
)
{
IStorage16Impl
*
This
=
(
IStorage16Impl
*
)
iface
;
...
...
@@ -1766,7 +1766,7 @@ HRESULT WINAPI IStorage16_fnOpenStorage(
/******************************************************************************
* IStorage16_OpenStream [STORAGE.504]
*/
HRESULT
WINAPI
IStorage16_fnOpenStream
(
HRESULT
IStorage16_fnOpenStream
(
LPSTORAGE16
iface
,
LPCOLESTR16
pwcsName
,
void
*
reserved1
,
DWORD
grfMode
,
DWORD
reserved2
,
IStream16
**
ppstm
)
{
IStorage16Impl
*
This
=
(
IStorage16Impl
*
)
iface
;
...
...
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