Skip to content

Commit

Permalink
include: Add COM interface definitions needed for PrintDlgEx implemen…
Browse files Browse the repository at this point in the history
…tation.
  • Loading branch information
Dmitry Timoshkov authored and julliard committed Apr 9, 2013
1 parent 16dc683 commit 04d3f6c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions dlls/uuid/uuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
#include "sensevts.h"
#include "ocmm.h"
#include "commoncontrols.h"
#include "commdlg.h"
#include "tlogstg.h"
#include "msdasc.h"

Expand Down
34 changes: 34 additions & 0 deletions include/commdlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,40 @@ typedef struct tagPDEXW
DECL_WINELIB_TYPE_AW(PRINTDLGEX)
DECL_WINELIB_TYPE_AW(LPPRINTDLGEX)

#ifdef STDMETHOD

DEFINE_GUID(IID_IPrintDialogCallback, 0x5852a2c3,0x6530,0x11d1,0xb6,0xa3,0x00,0x00,0xf8,0x75,0x7b,0xf9);
#define INTERFACE IPrintDialogCallback
DECLARE_INTERFACE_(IPrintDialogCallback,IUnknown)
{
/*** IUnknown methods ***/
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID,void **) PURE;
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
STDMETHOD_(ULONG,Release)(THIS) PURE;
/*** IPrintDialogCallback methods ***/
STDMETHOD(InitDone)(THIS) PURE;
STDMETHOD(SelectionChange)(THIS) PURE;
STDMETHOD(HandleMessage)(THIS_ HWND,UINT,WPARAM,LPARAM,LRESULT *) PURE;
};
#undef INTERFACE

DEFINE_GUID(IID_IPrintDialogServices, 0x509aaeda,0x5639,0x11d1,0xb6,0xa1,0x00,0x00,0xf8,0x75,0x7b,0xf9);
#define INTERFACE IPrintDialogServices
DECLARE_INTERFACE_(IPrintDialogServices,IUnknown)
{
/*** IUnknown methods ***/
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID,void **) PURE;
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
STDMETHOD_(ULONG,Release)(THIS) PURE;
/*** IPrintDialogServices methods ***/
STDMETHOD(GetCurrentDevMode)(THIS_ LPDEVMODEW,UINT *) PURE;
STDMETHOD(GetCurrentPrinterName)(THIS_ LPWSTR,UINT *) PURE;
STDMETHOD(GetCurrentPortName)(THIS_ LPWSTR,UINT *) PURE;
};
#undef INTERFACE

#endif /* STDMETHOD */

BOOL WINAPI ChooseColorA(LPCHOOSECOLORA lpChCol);
BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol);
#define ChooseColor WINELIB_NAME_AW(ChooseColor)
Expand Down
1 change: 1 addition & 0 deletions programs/oleview/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <windows.h>
#include <winreg.h>
#include <commctrl.h>
#include <commdlg.h>
#include <unknwn.h>

#ifdef NONAMELESSUNION
Expand Down
1 change: 0 additions & 1 deletion programs/oleview/typelib.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/

#include "main.h"
#include "commdlg.h"

#include "wine/debug.h"
#include "wine/unicode.h"
Expand Down

0 comments on commit 04d3f6c

Please sign in to comment.