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
aaa83069
Commit
aaa83069
authored
Jun 05, 1999
by
Paul Quinn
Committed by
Alexandre Julliard
Jun 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some non-threatening fixes to some headers, as well as some casting
changes that make winelib more win32 code compatible.
parent
18d3ad83
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
98 additions
and
55 deletions
+98
-55
colordlg.c
dlls/commdlg/colordlg.c
+5
-5
filedlg.c
dlls/commdlg/filedlg.c
+4
-4
fontdlg.c
dlls/commdlg/fontdlg.c
+6
-6
commdlg.h
include/commdlg.h
+28
-26
initguid.h
include/initguid.h
+2
-0
objbase.h
include/objbase.h
+4
-0
ole2.h
include/ole2.h
+1
-1
windef.h
include/windef.h
+1
-3
obj_dataobject.h
include/wine/obj_dataobject.h
+10
-0
obj_inplace.h
include/wine/obj_inplace.h
+9
-0
obj_moniker.h
include/wine/obj_moniker.h
+2
-2
obj_oleaut.h
include/wine/obj_oleaut.h
+6
-2
obj_oleobj.h
include/wine/obj_oleobj.h
+1
-1
winerror.h
include/winerror.h
+6
-0
wingdi.h
include/wingdi.h
+1
-1
winuser.h
include/winuser.h
+1
-0
wtypes.h
include/wtypes.h
+8
-1
bindctx.c
ole/bindctx.c
+1
-1
moniker.c
ole/moniker.c
+2
-2
No files found.
dlls/commdlg/colordlg.c
View file @
aaa83069
...
...
@@ -873,7 +873,7 @@ static LONG CC_WMInitDialog(HWND16 hDlg, WPARAM16 wParam, LPARAM lParam)
for
(
i
=
0x2bf
;
i
<
0x2c5
;
i
++
)
SendMessage16
(
GetDlgItem
(
hDlg
,
i
),
EM_LIMITTEXT16
,
3
,
0
);
/* max 3 digits: xyz */
if
(
CC_HookCallChk
(
lpp
->
lpcc
))
res
=
CallWindowProc16
(
lpp
->
lpcc
->
lpfnHook
,
hDlg
,
WM_INITDIALOG
,
wParam
,
lParam
);
res
=
CallWindowProc16
(
(
WNDPROC16
)
lpp
->
lpcc
->
lpfnHook
,
hDlg
,
WM_INITDIALOG
,
wParam
,
lParam
);
/* Set the initial values of the color chooser dialog */
...
...
@@ -1006,7 +1006,7 @@ static LRESULT CC_WMCommand(HWND16 hDlg, WPARAM16 wParam, LPARAM lParam)
if
(
lpp
->
lpcc
->
hwndOwner
)
SendMessage16
(
lpp
->
lpcc
->
hwndOwner
,
i
,
0
,(
LPARAM
)
lpp
->
lpcc
);
if
(
CC_HookCallChk
(
lpp
->
lpcc
))
CallWindowProc16
(
lpp
->
lpcc
->
lpfnHook
,
hDlg
,
CallWindowProc16
(
(
WNDPROC16
)
lpp
->
lpcc
->
lpfnHook
,
hDlg
,
WM_COMMAND
,
psh15
,(
LPARAM
)
lpp
->
lpcc
);
break
;
...
...
@@ -1121,7 +1121,7 @@ LRESULT WINAPI ColorDlgProc16(HWND16 hDlg, UINT16 message,
return
FALSE
;
res
=
0
;
if
(
CC_HookCallChk
(
lpp
->
lpcc
))
res
=
CallWindowProc16
(
lpp
->
lpcc
->
lpfnHook
,
hDlg
,
message
,
wParam
,
lParam
);
res
=
CallWindowProc16
(
(
WNDPROC16
)
lpp
->
lpcc
->
lpfnHook
,
hDlg
,
message
,
wParam
,
lParam
);
if
(
res
)
return
res
;
}
...
...
@@ -1186,7 +1186,7 @@ BOOL WINAPI ChooseColorA(LPCHOOSECOLORA lpChCol )
lpcc16
->
lpCustColors
=
(
COLORREF
*
)
SEGPTR_GET
(
ccref
);
lpcc16
->
Flags
=
lpChCol
->
Flags
;
lpcc16
->
lCustData
=
lpChCol
->
lCustData
;
lpcc16
->
lpfnHook
=
(
WND
PROC16
)
lpChCol
->
lpfnHook
;
lpcc16
->
lpfnHook
=
(
LPCCHOOK
PROC16
)
lpChCol
->
lpfnHook
;
if
(
lpChCol
->
lpTemplateName
)
str
=
SEGPTR_STRDUP
(
lpChCol
->
lpTemplateName
);
lpcc16
->
lpTemplateName
=
SEGPTR_GET
(
str
);
...
...
@@ -1224,7 +1224,7 @@ BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol )
lpcc16
->
lpCustColors
=
(
COLORREF
*
)
SEGPTR_GET
(
ccref
);
lpcc16
->
Flags
=
lpChCol
->
Flags
;
lpcc16
->
lCustData
=
lpChCol
->
lCustData
;
lpcc16
->
lpfnHook
=
(
WND
PROC16
)
lpChCol
->
lpfnHook
;
lpcc16
->
lpfnHook
=
(
LPCCHOOK
PROC16
)
lpChCol
->
lpfnHook
;
if
(
lpChCol
->
lpTemplateName
)
str
=
SEGPTR_STRDUP_WtoA
(
lpChCol
->
lpTemplateName
);
lpcc16
->
lpTemplateName
=
SEGPTR_GET
(
str
);
...
...
dlls/commdlg/filedlg.c
View file @
aaa83069
...
...
@@ -634,7 +634,7 @@ static BOOL FILEDLG_CallWindowProc(LPOPENFILENAME16 lpofn,HWND hwnd,
if
(
!
(
lpofn
->
Flags
&
OFN_WINE
))
/* Call to 16-Bit Hooking function... No Problem at all. */
return
(
BOOL
)
CallWindowProc16
(
lpofn
->
lpfnHook
,
hwnd
,(
UINT16
)
wMsg
,(
WPARAM16
)
wParam
,
lParam
(
WNDPROC16
)
lpofn
->
lpfnHook
,
hwnd
,(
UINT16
)
wMsg
,(
WPARAM16
)
wParam
,
lParam
);
/* |OFN_WINE32 */
if
(
needstruct
)
...
...
@@ -665,7 +665,7 @@ static BOOL FILEDLG_CallWindowProc(LPOPENFILENAME16 lpofn,HWND hwnd,
{
HWINDOWPROC
hWindowProc
=
NULL
;
if
(
WINPROC_SetProc
(
&
hWindowProc
,
lpofn
->
lpfnHook
,
ProcType
,
WIN_PROC_WINDOW
))
if
(
WINPROC_SetProc
(
&
hWindowProc
,
(
WNDPROC16
)
lpofn
->
lpfnHook
,
ProcType
,
WIN_PROC_WINDOW
))
{
/* Call Window Procedure converting 16-Bit Type Parameters to 32-Bit Type Parameters */
result
=
CallWindowProc16
(
(
WNDPROC16
)
hWindowProc
,
...
...
@@ -1127,7 +1127,7 @@ static BOOL Commdlg_GetFileNameA( BOOL16 (CALLBACK *dofunction)(SEGPTR x),
if
(
ofn
->
lpstrDefExt
)
ofn16
->
lpstrDefExt
=
SEGPTR_GET
(
SEGPTR_STRDUP
(
ofn
->
lpstrDefExt
));
ofn16
->
lCustData
=
ofn
->
lCustData
;
ofn16
->
lpfnHook
=
(
WND
PROC16
)
ofn
->
lpfnHook
;
ofn16
->
lpfnHook
=
(
LPOFNHOOK
PROC16
)
ofn
->
lpfnHook
;
if
(
ofn
->
lpTemplateName
)
ofn16
->
lpTemplateName
=
SEGPTR_GET
(
SEGPTR_STRDUP
(
ofn
->
lpTemplateName
));
...
...
@@ -1236,7 +1236,7 @@ static BOOL Commdlg_GetFileNameW( BOOL16 (CALLBACK *dofunction)(SEGPTR x),
if
(
ofn
->
lpstrDefExt
)
ofn16
->
lpstrDefExt
=
SEGPTR_GET
(
SEGPTR_STRDUP_WtoA
(
ofn
->
lpstrDefExt
));
ofn16
->
lCustData
=
ofn
->
lCustData
;
ofn16
->
lpfnHook
=
(
WND
PROC16
)
ofn
->
lpfnHook
;
ofn16
->
lpfnHook
=
(
LPOFNHOOK
PROC16
)
ofn
->
lpfnHook
;
if
(
ofn
->
lpTemplateName
)
ofn16
->
lpTemplateName
=
SEGPTR_GET
(
SEGPTR_STRDUP_WtoA
(
ofn
->
lpTemplateName
));
ret
=
dofunction
(
SEGPTR_GET
(
ofn16
));
...
...
dlls/commdlg/fontdlg.c
View file @
aaa83069
...
...
@@ -874,7 +874,7 @@ LRESULT WINAPI FormatCharDlgProc16(HWND16 hDlg, UINT16 message, WPARAM16 wParam,
if
(
!
lpcf
)
return
FALSE
;
if
(
CFn_HookCallChk
(
lpcf
))
res
=
CallWindowProc16
(
lpcf
->
lpfnHook
,
hDlg
,
message
,
wParam
,
lParam
);
res
=
CallWindowProc16
(
(
WNDPROC16
)
lpcf
->
lpfnHook
,
hDlg
,
message
,
wParam
,
lParam
);
if
(
res
)
return
res
;
}
...
...
@@ -888,7 +888,7 @@ LRESULT WINAPI FormatCharDlgProc16(HWND16 hDlg, UINT16 message, WPARAM16 wParam,
return
FALSE
;
}
if
(
CFn_HookCallChk
(
lpcf
))
return
CallWindowProc16
(
lpcf
->
lpfnHook
,
hDlg
,
WM_INITDIALOG
,
wParam
,
lParam
);
return
CallWindowProc16
(
(
WNDPROC16
)
lpcf
->
lpfnHook
,
hDlg
,
WM_INITDIALOG
,
wParam
,
lParam
);
}
WINPROC_MapMsg16To32A
(
message
,
wParam
,
&
uMsg32
,
&
wParam32
,
&
lParam
);
lpcf32a
=
(
LPCHOOSEFONTA
)
lpcf
->
lpTemplateName
;
...
...
@@ -933,7 +933,7 @@ LRESULT WINAPI FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
if
(
!
lpcf
)
return
FALSE
;
if
(
CFn_HookCallChk32
(
lpcf
))
res
=
CallWindowProcA
(
lpcf
->
lpfnHook
,
hDlg
,
uMsg
,
wParam
,
lParam
);
res
=
CallWindowProcA
(
(
WNDPROC
)
lpcf
->
lpfnHook
,
hDlg
,
uMsg
,
wParam
,
lParam
);
if
(
res
)
return
res
;
}
...
...
@@ -946,7 +946,7 @@ LRESULT WINAPI FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
return
FALSE
;
}
if
(
CFn_HookCallChk32
(
lpcf
))
return
CallWindowProcA
(
lpcf
->
lpfnHook
,
hDlg
,
WM_INITDIALOG
,
wParam
,
lParam
);
return
CallWindowProcA
(
(
WNDPROC
)
lpcf
->
lpfnHook
,
hDlg
,
WM_INITDIALOG
,
wParam
,
lParam
);
}
switch
(
uMsg
)
{
...
...
@@ -984,7 +984,7 @@ LRESULT WINAPI FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
if
(
!
lpcf32w
)
return
FALSE
;
if
(
CFn_HookCallChk32
((
LPCHOOSEFONTA
)
lpcf32w
))
res
=
CallWindowProcW
(
lpcf32w
->
lpfnHook
,
hDlg
,
uMsg
,
wParam
,
lParam
);
res
=
CallWindowProcW
(
(
WNDPROC
)
lpcf32w
->
lpfnHook
,
hDlg
,
uMsg
,
wParam
,
lParam
);
if
(
res
)
return
res
;
}
...
...
@@ -998,7 +998,7 @@ LRESULT WINAPI FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
return
FALSE
;
}
if
(
CFn_HookCallChk32
((
LPCHOOSEFONTA
)
lpcf32w
))
return
CallWindowProcW
(
lpcf32w
->
lpfnHook
,
hDlg
,
WM_INITDIALOG
,
wParam
,
lParam
);
return
CallWindowProcW
(
(
WNDPROC
)
lpcf32w
->
lpfnHook
,
hDlg
,
WM_INITDIALOG
,
wParam
,
lParam
);
}
lpcf32a
=
(
LPCHOOSEFONTA
)
lpcf32w
->
lpTemplateName
;
switch
(
uMsg
)
...
...
include/commdlg.h
View file @
aaa83069
...
...
@@ -44,6 +44,9 @@ extern "C" {
#define OFN_SHARENOWARN 1
#define OFN_SHAREWARN 0
typedef
UINT16
(
*
LPOFNHOOKPROC16
)(
HWND16
,
UINT16
,
WPARAM16
,
LPARAM
);
typedef
UINT
(
*
LPOFNHOOKPROC
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
typedef
struct
{
DWORD
lStructSize
;
HWND16
hwndOwner
;
...
...
@@ -63,7 +66,7 @@ typedef struct {
UINT16
nFileExtension
;
SEGPTR
lpstrDefExt
;
LPARAM
lCustData
;
WNDPROC16
lpfnHook
;
LPOFNHOOKPROC16
lpfnHook
;
SEGPTR
lpTemplateName
;
}
OPENFILENAME16
,
*
LPOPENFILENAME16
;
...
...
@@ -86,7 +89,7 @@ typedef struct {
WORD
nFileExtension
;
LPCSTR
lpstrDefExt
;
LPARAM
lCustData
;
WND
PROC
lpfnHook
;
LPOFNHOOK
PROC
lpfnHook
;
LPCSTR
lpTemplateName
;
}
OPENFILENAMEA
,
*
LPOPENFILENAMEA
;
...
...
@@ -109,7 +112,7 @@ typedef struct {
WORD
nFileExtension
;
LPCWSTR
lpstrDefExt
;
LPARAM
lCustData
;
WND
PROC
lpfnHook
;
LPOFNHOOK
PROC
lpfnHook
;
LPCWSTR
lpTemplateName
;
}
OPENFILENAMEW
,
*
LPOPENFILENAMEW
;
...
...
@@ -133,6 +136,7 @@ typedef struct
DECL_WINELIB_TYPE_AW
(
OFNOTIFY
)
DECL_WINELIB_TYPE_AW
(
LPOFNOTIFY
)
typedef
UINT16
(
CALLBACK
*
LPCCHOOKPROC16
)
(
HWND16
,
UINT16
,
WPARAM16
,
LPARAM
);
typedef
UINT
(
CALLBACK
*
LPCCHOOKPROC
)
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
typedef
struct
{
...
...
@@ -143,7 +147,7 @@ typedef struct {
COLORREF
*
lpCustColors
;
DWORD
Flags
;
LPARAM
lCustData
;
WNDPROC16
lpfnHook
;
LPCCHOOKPROC16
lpfnHook
;
SEGPTR
lpTemplateName
;
}
CHOOSECOLOR16
;
typedef
CHOOSECOLOR16
*
LPCHOOSECOLOR16
;
...
...
@@ -186,6 +190,9 @@ DECL_WINELIB_TYPE_AW(LPCHOOSECOLOR)
#define CC_ENABLETEMPLATE 0x00000020
#define CC_ENABLETEMPLATEHANDLE 0x00000040
typedef
UINT16
(
*
LPFRHOOKPROC16
)(
HWND16
,
UINT16
,
WPARAM16
,
LPARAM
);
typedef
UINT
(
*
LPFRHOOKPROC
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
typedef
struct
{
DWORD
lStructSize
;
/* size of this struct 0x20 */
HWND16
hwndOwner
;
/* handle to owner's window */
...
...
@@ -197,7 +204,7 @@ typedef struct {
UINT16
wFindWhatLen
;
/* size of find buffer */
UINT16
wReplaceWithLen
;
/* size of replace buffer */
LPARAM
lCustData
;
/* data passed to hook fn. */
WNDPROC16
lpfnHook
;
LPFRHOOKPROC16
lpfnHook
;
SEGPTR
lpTemplateName
;
/* custom template name */
}
FINDREPLACE16
,
*
LPFINDREPLACE16
;
...
...
@@ -212,7 +219,7 @@ typedef struct {
WORD
wFindWhatLen
;
WORD
wReplaceWithLen
;
LPARAM
lCustData
;
WNDPROC
lpfnHook
;
LPFRHOOKPROC
lpfnHook
;
LPCSTR
lpTemplateName
;
}
FINDREPLACEA
,
*
LPFINDREPLACEA
;
...
...
@@ -227,7 +234,7 @@ typedef struct {
WORD
wFindWhatLen
;
WORD
wReplaceWithLen
;
LPARAM
lCustData
;
WNDPROC
lpfnHook
;
LPFRHOOKPROC
lpfnHook
;
LPCWSTR
lpTemplateName
;
}
FINDREPLACEW
,
*
LPFINDREPLACEW
;
...
...
@@ -252,6 +259,9 @@ DECL_WINELIB_TYPE_AW(LPFINDREPLACE)
#define FR_HIDEMATCHCASE 0x00008000
#define FR_HIDEWHOLEWORD 0x00010000
typedef
UINT16
(
*
LPCFHOOKPROC16
)(
HWND16
,
UINT16
,
WPARAM16
,
LPARAM
);
typedef
UINT
(
*
LPCFHOOKPROC
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
typedef
struct
{
DWORD
lStructSize
;
...
...
@@ -262,7 +272,7 @@ typedef struct
DWORD
Flags
;
/* enum. type flags */
COLORREF
rgbColors
;
/* returned text color */
LPARAM
lCustData
;
/* data passed to hook fn. */
WNDPROC16
lpfnHook
;
LPCFHOOKPROC16
lpfnHook
;
SEGPTR
lpTemplateName
;
/* custom template name */
HINSTANCE16
hInstance
;
/* instance handle of.EXE that */
/* contains cust. dlg. template */
...
...
@@ -287,7 +297,7 @@ typedef struct
DWORD
Flags
;
COLORREF
rgbColors
;
LPARAM
lCustData
;
WND
PROC
lpfnHook
;
LPCFHOOK
PROC
lpfnHook
;
LPCSTR
lpTemplateName
;
HINSTANCE
hInstance
;
LPSTR
lpszStyle
;
...
...
@@ -307,7 +317,7 @@ typedef struct
DWORD
Flags
;
COLORREF
rgbColors
;
LPARAM
lCustData
;
WND
PROC
lpfnHook
;
LPCFHOOK
PROC
lpfnHook
;
LPCWSTR
lpTemplateName
;
HINSTANCE
hInstance
;
LPWSTR
lpszStyle
;
...
...
@@ -395,6 +405,12 @@ DECL_WINELIB_TYPE_AW(LPCHOOSEFONT)
#define CDM_HIDECONTROL (CDM_FIRST + 0x0005)
#define CDM_SETDEFEXT (CDM_FIRST + 0x0006)
typedef
UINT16
(
CALLBACK
*
LPPRINTHOOKPROC16
)
(
HWND16
,
UINT16
,
WPARAM16
,
LPARAM
);
typedef
UINT
(
CALLBACK
*
LPPRINTHOOKPROC
)
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
typedef
UINT16
(
CALLBACK
*
LPSETUPHOOKPROC16
)
(
HWND16
,
UINT16
,
WPARAM16
,
LPARAM
);
typedef
UINT
(
CALLBACK
*
LPSETUPHOOKPROC
)
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
typedef
struct
{
DWORD
lStructSize
;
...
...
@@ -410,17 +426,14 @@ typedef struct
WORD
nCopies
;
HINSTANCE16
hInstance
;
LPARAM
lCustData
;
WNDPROC16
lpfnPrintHook
;
WNDPROC16
lpfnSetupHook
;
LPPRINTHOOKPROC16
lpfnPrintHook
;
LPSETUPHOOKPROC16
lpfnSetupHook
;
SEGPTR
lpPrintTemplateName
;
SEGPTR
lpSetupTemplateName
;
HGLOBAL16
hPrintTemplate
;
HGLOBAL16
hSetupTemplate
;
}
PRINTDLG16
,
*
LPPRINTDLG16
;
typedef
UINT
(
CALLBACK
*
LPPRINTHOOKPROC
)
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
typedef
UINT
(
CALLBACK
*
LPSETUPHOOKPROC
)
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
typedef
struct
tagPDA
{
DWORD
lStructSize
;
...
...
@@ -493,17 +506,6 @@ DECL_WINELIB_TYPE_AW(LPPRINTDLG)
#define PD_DISABLEPRINTTOFILE 0x00080000
#define PD_HIDEPRINTTOFILE 0x00100000
typedef
enum
__MIDL_IPrint_0001
{
PRINTFLAG_MAYBOTHERUSER
=
1
,
PRINTFLAG_PROMPTUSER
=
2
,
PRINTFLAG_USERMAYCHANGEPRINTER
=
4
,
PRINTFLAG_RECOMPOSETODEVICE
=
8
,
PRINTFLAG_DONTACTUALLYPRINT
=
16
,
PRINTFLAG_FORCEPROPERTIES
=
32
,
PRINTFLAG_PRINTTOFILE
=
64
}
PRINTFLAG
;
typedef
struct
{
UINT16
wDriverOffset
;
UINT16
wDeviceOffset
;
...
...
include/initguid.h
View file @
aaa83069
...
...
@@ -20,4 +20,6 @@
const GUID name = \
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
DEFINE_GUID
(
GUID_NULL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
#endif
include/objbase.h
View file @
aaa83069
#ifndef __WINE_OBJBASE_H
#define __WINE_OBJBASE_H
#define _OBJBASE_H_
#include "wine/obj_base.h"
...
...
@@ -38,6 +39,9 @@ HRESULT WINAPI GetClassFile(LPOLESTR filePathName,CLSID *pclsid);
#define STDAPICALLTYPE __stdcall
#define STDAPIVCALLTYPE __cdecl
#define FARSTRUCT
#define HUGEP
#define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
#define STDAPI_(type) EXTERN_C type STDAPICALLTYPE
...
...
include/ole2.h
View file @
aaa83069
...
...
@@ -36,7 +36,7 @@ HRESULT WINAPI OleSetMenuDescriptor(HOLEMENU hmenuDescriptor,HWND hwndFrame,HWN
HRESULT
WINAPI
ReadClassStg
(
IStorage
*
pstg
,
CLSID
*
pclsid
);
HRESULT
WINAPI
WriteClassStm
(
IStream
*
pStm
,
REFCLSID
rclsid
);
HRESULT
WINAPI
ReadClassStm
(
IStream
*
pStm
,
REFCLSID
pclsid
);
HRESULT
WINAPI
ReadClassStm
(
IStream
*
pStm
,
CLSID
*
pclsid
);
HRESULT
WINAPI
OleSave
(
LPPERSISTSTORAGE
pPS
,
LPSTORAGE
pStg
,
BOOL
fSameAsLoad
);
...
...
include/windef.h
View file @
aaa83069
...
...
@@ -149,7 +149,6 @@ typedef WORD *LPCATCHBUF;
typedef
DWORD
ACCESS_MASK
;
typedef
ACCESS_MASK
REGSAM
;
typedef
HANDLE
HHOOK
;
typedef
HANDLE
HKEY
;
typedef
HANDLE
HMONITOR
;
typedef
DWORD
LCID
;
typedef
WORD
LANGID
;
...
...
@@ -188,8 +187,6 @@ typedef INT *PINT;
typedef
INT
*
LPINT
;
typedef
UINT
*
PUINT
;
typedef
UINT
*
LPUINT
;
typedef
HKEY
*
LPHKEY
;
typedef
HKEY
*
PHKEY
;
typedef
FLOAT
*
PFLOAT
;
typedef
FLOAT
*
LPFLOAT
;
typedef
BOOL
*
PBOOL
;
...
...
@@ -245,6 +242,7 @@ DECLARE_HANDLE(HFILE);
DECLARE_HANDLE
(
HFONT
);
DECLARE_HANDLE
(
HICON
);
DECLARE_HANDLE
(
HINSTANCE
);
DECLARE_HANDLE
(
HKEY
);
DECLARE_HANDLE
(
HMENU
);
DECLARE_HANDLE
(
HMETAFILE
);
DECLARE_HANDLE
(
HMIDI
);
...
...
include/wine/obj_dataobject.h
View file @
aaa83069
...
...
@@ -96,6 +96,16 @@ typedef enum tagTYMED
TYMED_NULL
=
0
}
TYMED
;
typedef
struct
tagRemSTGMEDIUM
{
DWORD
tymed
;
DWORD
dwHandleType
;
unsigned
long
pData
;
unsigned
long
pUnkForRelease
;
unsigned
long
cbData
;
byte
data
[
1
];
}
RemSTGMEDIUM
;
/* dataobject as answer to a request */
struct
STGMEDIUM
{
...
...
include/wine/obj_inplace.h
View file @
aaa83069
...
...
@@ -93,6 +93,15 @@ typedef enum tagBINDSPEED
BINDSPEED_IMMEDIATE
=
3
}
BINDSPEED
;
typedef
enum
tagOLECONTF
{
OLECONTF_EMBEDDINGS
=
1
,
OLECONTF_LINKS
=
2
,
OLECONTF_OTHERS
=
4
,
OLECONTF_OLNYUSER
=
8
,
OLECONTF_ONLYIFRUNNING
=
16
}
OLECONTF
;
typedef
HGLOBAL
HOLEMENU
;
typedef
LPRECT
LPBORDERWIDTHS
;
typedef
LPCRECT
LPCBORDERWIDTHS
;
...
...
include/wine/obj_moniker.h
View file @
aaa83069
...
...
@@ -340,8 +340,8 @@ ICOM_DEFINE(IRunningObjectTable,IUnknown)
#define IRunningObjectTable_EnumRunning(p,a) ICOM_CALL1(EnumRunning,p,a)
#endif
HRESULT
WINAPI
GetRunningObjectTable
(
DWORD
reserved
,
LP
VOID
*
pprot
);
HRESULT
WINAPI
GetRunningObjectTable16
(
DWORD
reserved
,
LP
VOID
*
pprot
);
HRESULT
WINAPI
GetRunningObjectTable
(
DWORD
reserved
,
LP
RUNNINGOBJECTTABLE
*
pprot
);
HRESULT
WINAPI
GetRunningObjectTable16
(
DWORD
reserved
,
LP
RUNNINGOBJECTTABLE
*
pprot
);
/*****************************************************************************
* Additional API
...
...
include/wine/obj_oleaut.h
View file @
aaa83069
...
...
@@ -201,6 +201,11 @@ typedef DISPID MEMBERID;
#define MEMBERID_NIL DISPID_UNKNOWN
#define IMPLTYPEFLAG_FDEFAULT (0x1)
#define IMPLTYPEFLAG_FSOURCE (0x2)
#define IMPLTYPEFLAG_FRESTRICTED (0x4)
#define IMPLTYPEFLAG_FDEFAULTVTABLE (0x8)
typedef
struct
tagDISPPARAMS
{
VARIANTARG
*
rgvarg
;
...
...
@@ -560,8 +565,7 @@ ICOM_DEFINE(IDispatch,IUnknown)
ICOM_METHOD2(HRESULT,GetFuncDesc, UINT,index, FUNCDESC**,ppFuncDesc) \
ICOM_METHOD2(HRESULT,GetVarDesc, UINT,index, VARDESC**,ppVarDesc) \
ICOM_METHOD4(HRESULT,GetNames, MEMBERID,memid, BSTR*,rgBstrNames, UINT,cMaxNames, UINT*,pcNames) \
ICOM_METHOD2(HRESULT,GetRefTypeOfImplType, UINT,index, HREFTYPE*,\
pRefType) \
ICOM_METHOD2(HRESULT,GetRefTypeOfImplType, UINT,index, HREFTYPE*, pRefType) \
ICOM_METHOD2(HRESULT,GetImplTypeFlags, UINT,index, INT*,pImplTypeFlags)\
ICOM_METHOD3(HRESULT,GetIDsOfNames, LPOLESTR*,rgszNames, UINT,cNames, MEMBERID*,pMemId) \
ICOM_METHOD7(HRESULT,Invoke, PVOID,pvInstance, MEMBERID,memid, WORD,wFlags, DISPPARAMS*,pDispParams, VARIANT*,pVarResult, EXCEPINFO*,pExcepInfo, UINT*,puArgErr) \
...
...
include/wine/obj_oleobj.h
View file @
aaa83069
...
...
@@ -39,7 +39,7 @@ typedef enum tagOLEMISC
OLEMISC_INSIDEOUT
=
0x80
,
OLEMISC_ACTIVATEWHENVISIBLE
=
0x100
,
OLEMISC_RENDERINGISDEVICEINDEPENDENT
=
0x200
,
OLEMISC_INVIS
A
BLEATRUNTIME
=
0x400
,
OLEMISC_INVIS
I
BLEATRUNTIME
=
0x400
,
OLEMISC_ALWAYSRUN
=
0x800
,
OLEMISC_ACTSLIKEBUTTON
=
0x1000
,
OLEMISC_ACTSLIKELABEL
=
0x2000
,
...
...
include/winerror.h
View file @
aaa83069
...
...
@@ -332,6 +332,11 @@ extern int WIN32_LastError;
#define CO_E_ERRORINDLL 0x800401F9
#define CO_E_OBJISREG 0x800401FB
#define OLE_E_FIRST 0x80040000L
#define OLE_E_LAST 0x800400FFL
#define OLE_S_FIRST 0x00040000L
#define OLE_S_LAST 0x000400FFL
#define OLE_E_ENUM_NOMORE 0x80040002
#define OLE_E_ADVISENOTSUPPORTED 0x80040003
#define OLE_E_NOCONNECTION 0x80040004
...
...
@@ -451,6 +456,7 @@ extern int WIN32_LastError;
#define OLEOBJ_E_NOVERBS 0x00040180L
#define OLEOBJ_E_INVALIDVERB 0x00040181L
#define OLEOBJ_S_INVALIDVERB 0x00040180L
#endif
/* __WINE_WINERROR_H */
include/wingdi.h
View file @
aaa83069
...
...
@@ -1343,7 +1343,7 @@ typedef struct
WORD
palVersion
;
WORD
palNumEntries
;
PALETTEENTRY
palPalEntry
[
1
];
}
LOGPALETTE
,
*
PLOGPALETTE
,
*
LPLOGPALETTE
;
}
LOGPALETTE
,
*
PLOGPALETTE
,
*
LPLOGPALETTE
,
*
NPLOGPALETTE
;
/* Pens */
...
...
include/winuser.h
View file @
aaa83069
...
...
@@ -1026,6 +1026,7 @@ typedef struct
#define CS_BYTEALIGNCLIENT 0x1000
#define CS_BYTEALIGNWINDOW 0x2000
#define CS_GLOBALCLASS 0x4000
#define CS_IME 0x00010000
#define PRF_CHECKVISIBLE 0x00000001L
#define PRF_NONCLIENT 0x00000002L
...
...
include/wtypes.h
View file @
aaa83069
...
...
@@ -64,7 +64,9 @@ typedef GUID FMTID,*LPFMTID;
#endif
/* !defined(__cplusplus) */
extern
const
IID
GUID_NULL
;
#define IID_NULL GUID_NULL
#define CLSID_NULL GUID_NULL
#define FMTID_NULL GUID_NULL
typedef
enum
tagDVASPECT
{
...
...
@@ -132,11 +134,16 @@ typedef unsigned short VARTYPE;
typedef
ULONG
PROPID
;
#ifndef _tagBLOB_DEFINED
#define _tagBLOB_DEFINED
#define _BLOB_DEFINED
#define _LPBLOB_DEFINED
typedef
struct
tagBLOB
{
ULONG
cbSize
;
BYTE
*
pBlobData
;
}
BLOB
;
}
BLOB
,
*
LPBLOB
;
#endif
#ifndef _tagCY_DEFINED
#define _tagCY_DEFINED
...
...
ole/bindctx.c
View file @
aaa83069
...
...
@@ -338,7 +338,7 @@ HRESULT WINAPI BindCtxImpl_GetRunningObjectTable(IBindCtx* iface,IRunningObjectT
if
(
pprot
==
NULL
)
return
E_POINTER
;
res
=
GetRunningObjectTable
(
0
,
(
LPVOID
*
)
pprot
);
res
=
GetRunningObjectTable
(
0
,
pprot
);
return
res
;
}
...
...
ole/moniker.c
View file @
aaa83069
...
...
@@ -447,7 +447,7 @@ HRESULT WINAPI RunningObjectTableImpl_GetObjectIndex(RunningObjectTableImpl* Thi
/******************************************************************************
* GetRunningObjectTable16 [OLE2.30]
*/
HRESULT
WINAPI
GetRunningObjectTable16
(
DWORD
reserved
,
LP
VOID
*
pprot
)
HRESULT
WINAPI
GetRunningObjectTable16
(
DWORD
reserved
,
LP
RUNNINGOBJECTTABLE
*
pprot
)
{
FIXME
(
ole
,
"(%ld,%p),stub!
\n
"
,
reserved
,
pprot
);
return
E_NOTIMPL
;
...
...
@@ -456,7 +456,7 @@ HRESULT WINAPI GetRunningObjectTable16(DWORD reserved, LPVOID *pprot)
/***********************************************************************
* GetRunningObjectTable (OLE2.73)
*/
HRESULT
WINAPI
GetRunningObjectTable
(
DWORD
reserved
,
LP
VOID
*
pprot
)
HRESULT
WINAPI
GetRunningObjectTable
(
DWORD
reserved
,
LP
RUNNINGOBJECTTABLE
*
pprot
)
{
IID
riid
=
IID_IRunningObjectTable
;
HRESULT
res
;
...
...
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