9 #define STD_CTL_SCODE(n) MAKE_SCODE(SEVERITY_ERROR,FACILITY_CONTROL,n)
10 #define CTL_E_ILLEGALFUNCTIONCALL STD_CTL_SCODE(5)
11 #define CTL_E_OVERFLOW STD_CTL_SCODE(6)
12 #define CTL_E_OUTOFMEMORY STD_CTL_SCODE(7)
13 #define CTL_E_DIVISIONBYZERO STD_CTL_SCODE(11)
14 #define CTL_E_OUTOFSTRINGSPACE STD_CTL_SCODE(14)
15 #define CTL_E_OUTOFSTACKSPACE STD_CTL_SCODE(28)
16 #define CTL_E_BADFILENAMEORNUMBER STD_CTL_SCODE(52)
17 #define CTL_E_FILENOTFOUND STD_CTL_SCODE(53)
18 #define CTL_E_BADFILEMODE STD_CTL_SCODE(54)
19 #define CTL_E_FILEALREADYOPEN STD_CTL_SCODE(55)
20 #define CTL_E_DEVICEIOERROR STD_CTL_SCODE(57)
21 #define CTL_E_FILEALREADYEXISTS STD_CTL_SCODE(58)
22 #define CTL_E_BADRECORDLENGTH STD_CTL_SCODE(59)
23 #define CTL_E_DISKFULL STD_CTL_SCODE(61)
24 #define CTL_E_BADRECORDNUMBER STD_CTL_SCODE(63)
25 #define CTL_E_BADFILENAME STD_CTL_SCODE(64)
26 #define CTL_E_TOOMANYFILES STD_CTL_SCODE(67)
27 #define CTL_E_DEVICEUNAVAILABLE STD_CTL_SCODE(68)
28 #define CTL_E_PERMISSIONDENIED STD_CTL_SCODE(70)
29 #define CTL_E_DISKNOTREADY STD_CTL_SCODE(71)
30 #define CTL_E_PATHFILEACCESSERROR STD_CTL_SCODE(75)
31 #define CTL_E_PATHNOTFOUND STD_CTL_SCODE(76)
32 #define CTL_E_INVALIDPATTERNSTRING STD_CTL_SCODE(93)
33 #define CTL_E_INVALIDUSEOFNULL STD_CTL_SCODE(94)
34 #define CTL_E_INVALIDFILEFORMAT STD_CTL_SCODE(321)
35 #define CTL_E_INVALIDPROPERTYVALUE STD_CTL_SCODE(380)
36 #define CTL_E_INVALIDPROPERTYARRAYINDEX STD_CTL_SCODE(381)
37 #define CTL_E_SETNOTSUPPORTEDATRUNTIME STD_CTL_SCODE(382)
38 #define CTL_E_SETNOTSUPPORTED STD_CTL_SCODE(383)
39 #define CTL_E_NEEDPROPERTYARRAYINDEX STD_CTL_SCODE(385)
40 #define CTL_E_SETNOTPERMITTED STD_CTL_SCODE(387)
41 #define CTL_E_GETNOTSUPPORTEDATRUNTIME STD_CTL_SCODE(393)
42 #define CTL_E_GETNOTSUPPORTED STD_CTL_SCODE(394)
43 #define CTL_E_PROPERTYNOTFOUND STD_CTL_SCODE(422)
44 #define CTL_E_INVALIDCLIPBOARDFORMAT STD_CTL_SCODE(460)
45 #define CTL_E_INVALIDPICTURE STD_CTL_SCODE(481)
46 #define CTL_E_PRINTERERROR STD_CTL_SCODE(482)
47 #define CTL_E_CANTSAVEFILETOTEMP STD_CTL_SCODE(735)
48 #define CTL_E_SEARCHTEXTNOTFOUND STD_CTL_SCODE(744)
49 #define CTL_E_REPLACEMENTSTOOLONG STD_CTL_SCODE(746)
50 #define CUSTOM_CTL_SCODE(n) MAKE_SCODE(SEVERITY_ERROR,FACILITY_CONTROL,n)
51 #define CTL_E_CUSTOM_FIRST CUSTOM_CTL_SCODE(600)
52 #define CLASS_E_NOTLICENSED (CLASSFACTORY_E_FIRST+2)
53 #define CONNECT_E_FIRST MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x200)
54 #define CONNECT_E_LAST MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x20F)
55 #define CONNECT_S_FIRST MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x200)
56 #define CONNECT_S_LAST MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x20F)
57 #define CONNECT_E_NOCONNECTION (CONNECT_E_FIRST+0)
58 #define CONNECT_E_ADVISELIMIT (CONNECT_E_FIRST+1)
59 #define CONNECT_E_CANNOTCONNECT (CONNECT_E_FIRST+2)
60 #define CONNECT_E_OVERRIDDEN (CONNECT_E_FIRST+3)
61 #define SELFREG_E_FIRST MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x200)
62 #define SELFREG_E_LAST MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x20F)
63 #define SELFREG_S_FIRST MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x200)
64 #define SELFREG_S_LAST MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x20F)
65 #define SELFREG_E_TYPELIB (SELFREG_E_FIRST+0)
66 #define SELFREG_E_CLASS (SELFREG_E_FIRST+1)
67 #define PERPROP_E_FIRST MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x200)
68 #define PERPROP_E_LAST MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x20F)
69 #define PERPROP_S_FIRST MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x200)
70 #define PERPROP_S_LAST MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x20F)
71 #define PERPROP_E_NOPAGEAVAILABLE PERPROP_E_FIRST
72 #define OLEMISC_RECOMPOSEONRESIZE 0x1
73 #define OLEMISC_ONLYICONIC 0x2
74 #define OLEMISC_INSERTNOTREPLACE 0x4
75 #define OLEMISC_STATIC 0x8
76 #define OLEMISC_CANTLINKINSIDE 0x10
77 #define OLEMISC_CANLINKBYOLE1 0x20
78 #define OLEMISC_ISLINKOBJECT 0x40
79 #define OLEMISC_INSIDEOUT 0x80
80 #define OLEMISC_ACTIVATEWHENVISIBLE 0x100
81 #define OLEMISC_RENDERINGISDEVICEINDEPENDENT 0x200
82 #define OLEMISC_INVISIBLEATRUNTIME 0x400
83 #define OLEMISC_ALWAYSRUN 0x800
84 #define OLEMISC_ACTSLIKEBUTTON 0x1000
85 #define OLEMISC_ACTSLIKELABEL 0x2000
86 #define OLEMISC_NOUIACTIVATE 0x4000
87 #define OLEMISC_ALIGNABLE 0x8000
88 #define OLEMISC_SIMPLEFRAME 0x10000
89 #define OLEMISC_SETCLIENTSITEFIRST 0x20000
90 #define OLEMISC_IMEMODE 0x40000
91 #define OLEMISC_IGNOREACTIVATEWHENVISIBLE 0x80000
92 #define OLEMISC_WANTSTOMENUMERGE 0x100000
93 #define OLEMISC_SUPPORTSMULTILEVELUNDO 0x200000
94 #define OLEIVERB_PROPERTIES (-7)
95 #define VT_STREAMED_PROPSET 73
96 #define VT_STORED_PROPSET 74
97 #define VT_BLOB_PROPSET 75
98 #define VT_VERBOSE_ENUM 76
99 #define VT_COLOR VT_I4
100 #define VT_XPOS_PIXELS VT_I4
101 #define VT_YPOS_PIXELS VT_I4
102 #define VT_XSIZE_PIXELS VT_I4
103 #define VT_YSIZE_PIXELS VT_I4
104 #define VT_XPOS_HIMETRIC VT_I4
105 #define VT_YPOS_HIMETRIC VT_I4
106 #define VT_XSIZE_HIMETRIC VT_I4
107 #define VT_YSIZE_HIMETRIC VT_I4
108 #define VT_TRISTATE VT_I2
109 #define VT_OPTEXCLUSIVE VT_BOOL
110 #define VT_FONT VT_DISPATCH
111 #define VT_PICTURE VT_DISPATCH
112 #define VT_HANDLE VT_I4
113 #define OCM__BASE (WM_USER+0x1c00)
114 #define OCM_COMMAND (OCM__BASE+WM_COMMAND)
115 #define OCM_CTLCOLORBTN (OCM__BASE+WM_CTLCOLORBTN)
116 #define OCM_CTLCOLOREDIT (OCM__BASE+WM_CTLCOLOREDIT)
117 #define OCM_CTLCOLORDLG (OCM__BASE+WM_CTLCOLORDLG)
118 #define OCM_CTLCOLORLISTBOX (OCM__BASE+WM_CTLCOLORLISTBOX)
119 #define OCM_CTLCOLORMSGBOX (OCM__BASE+WM_CTLCOLORMSGBOX)
120 #define OCM_CTLCOLORSCROLLBAR (OCM__BASE+WM_CTLCOLORSCROLLBAR)
121 #define OCM_CTLCOLORSTATIC (OCM__BASE+WM_CTLCOLORSTATIC)
122 #define OCM_DRAWITEM (OCM__BASE+WM_DRAWITEM)
123 #define OCM_MEASUREITEM (OCM__BASE+WM_MEASUREITEM)
124 #define OCM_DELETEITEM (OCM__BASE+WM_DELETEITEM)
125 #define OCM_VKEYTOITEM (OCM__BASE+WM_VKEYTOITEM)
126 #define OCM_CHARTOITEM (OCM__BASE+WM_CHARTOITEM)
127 #define OCM_COMPAREITEM (OCM__BASE+WM_COMPAREITEM)
128 #define OCM_HSCROLL (OCM__BASE+WM_HSCROLL)
129 #define OCM_VSCROLL (OCM__BASE+WM_VSCROLL)
130 #define OCM_PARENTNOTIFY (OCM__BASE+WM_PARENTNOTIFY)
131 #define OCM_NOTIFY (OCM__BASE+WM_NOTIFY)
132 #define CTRLINFO_EATS_RETURN 1
133 #define CTRLINFO_EATS_ESCAPE 2
134 #define XFORMCOORDS_POSITION 1
135 #define XFORMCOORDS_SIZE 2
136 #define XFORMCOORDS_HIMETRICTOCONTAINER 4
137 #define XFORMCOORDS_CONTAINERTOHIMETRIC 8
138 #define GUIDKIND_DEFAULT_SOURCE_DISP_IID 1
139 #define PROPPAGESTATUS_DIRTY 1
140 #define PROPPAGESTATUS_VALIDATE 2
141 #define FONTSIZE(n) {n##0000,0}
142 #define PICTURE_SCALABLE 1
143 #define PICTURE_TRANSPARENT 2
144 #define PICTYPE_UNINITIALIZED (-1)
145 #define PICTYPE_NONE 0
146 #define PICTYPE_BITMAP 1
147 #define PICTYPE_METAFILE 2
148 #define PICTYPE_ICON 3
149 #define PICTYPE_ENHMETAFILE 4
150 #define DISPID_AUTOSIZE (-500)
151 #define DISPID_BACKCOLOR (-501)
152 #define DISPID_BACKSTYLE (-502)
153 #define DISPID_BORDERCOLOR (-503)
154 #define DISPID_BORDERSTYLE (-504)
155 #define DISPID_BORDERWIDTH (-505)
156 #define DISPID_DRAWMODE (-507)
157 #define DISPID_DRAWSTYLE (-508)
158 #define DISPID_DRAWWIDTH (-509)
159 #define DISPID_FILLCOLOR (-510)
160 #define DISPID_FILLSTYLE (-511)
161 #define DISPID_FONT (-512)
162 #define DISPID_FORECOLOR (-513)
163 #define DISPID_ENABLED (-514)
164 #define DISPID_HWND (-515)
165 #define DISPID_TABSTOP (-516)
166 #define DISPID_TEXT (-517)
167 #define DISPID_CAPTION (-518)
168 #define DISPID_BORDERVISIBLE (-519)
169 #define DISPID_APPEARANCE (-520)
170 #define DISPID_REFRESH (-550)
171 #define DISPID_DOCLICK (-551)
172 #define DISPID_ABOUTBOX (-552)
173 #define DISPID_CLICK (-600)
174 #define DISPID_DBLCLICK (-601)
175 #define DISPID_KEYDOWN (-602)
176 #define DISPID_KEYPRESS (-603)
177 #define DISPID_KEYUP (-604)
178 #define DISPID_MOUSEDOWN (-605)
179 #define DISPID_MOUSEMOVE (-606)
180 #define DISPID_MOUSEUP (-607)
181 #define DISPID_ERROREVENT (-608)
182 #define DISPID_AMBIENT_BACKCOLOR (-701)
183 #define DISPID_AMBIENT_DISPLAYNAME (-702)
184 #define DISPID_AMBIENT_FONT (-703)
185 #define DISPID_AMBIENT_FORECOLOR (-704)
186 #define DISPID_AMBIENT_LOCALEID (-705)
187 #define DISPID_AMBIENT_MESSAGEREFLECT (-706)
188 #define DISPID_AMBIENT_SCALEUNITS (-707)
189 #define DISPID_AMBIENT_TEXTALIGN (-708)
190 #define DISPID_AMBIENT_USERMODE (-709)
191 #define DISPID_AMBIENT_UIDEAD (-710)
192 #define DISPID_AMBIENT_SHOWGRABHANDLES (-711)
193 #define DISPID_AMBIENT_SHOWHATCHING (-712)
194 #define DISPID_AMBIENT_DISPLAYASDEFAULT (-713)
195 #define DISPID_AMBIENT_SUPPORTSMNEMONICS (-714)
196 #define DISPID_AMBIENT_AUTOCLIP (-715)
197 #define DISPID_AMBIENT_APPEARANCE (-716)
198 #define DISPID_FONT_NAME 0
199 #define DISPID_FONT_SIZE 2
200 #define DISPID_FONT_BOLD 3
201 #define DISPID_FONT_ITALIC 4
202 #define DISPID_FONT_UNDER 5
203 #define DISPID_FONT_STRIKE 6
204 #define DISPID_FONT_WEIGHT 7
205 #define DISPID_FONT_CHARSET 8
206 #define DISPID_PICT_HANDLE 0
207 #define DISPID_PICT_HPAL 2
208 #define DISPID_PICT_TYPE 3
209 #define DISPID_PICT_WIDTH 4
210 #define DISPID_PICT_HEIGHT 5
211 #define DISPID_PICT_RENDER 6
215 typedef TEXTMETRICW TEXTMETRICOLE
;
217 typedef TEXTMETRIC TEXTMETRICOLE
;
219 typedef TEXTMETRICOLE
*LPTEXTMETRICOLE
;
220 typedef interface IOleControl
*LPOLECONTROL
;
221 typedef interface IOleControlSite
*LPOLECONTROLSITE
;
222 typedef interface ISimpleFrameSite
*LPSIMPLEFRAMESITE
;
223 typedef interface IErrorLog
*LPERRORLOG
;
224 typedef interface IPropertyBag
*LPPROPERTYBAG
;
225 typedef interface IPersistPropertyBag
*LPPERSISTPROPERTYBAG
;
226 typedef interface IPersistStreamInit
*LPPERSISTSTREAMINIT
;
227 typedef interface IPersistMemory
*LPPERSISTMEMORY
;
228 typedef interface IPropertyNotifySink
* LPPROPERTYNOTIFYSINK
;
229 typedef interface IProvideClassInfo
*LPPROVIDECLASSINFO
;
230 typedef interface IProvideClassInfo2
*LPPROVIDECLASSINFO2
;
231 typedef interface IConnectionPointContainer
*LPCONNECTIONPOINTCONTAINER
;
232 typedef interface IEnumConnectionPoints
*LPENUMCONNECTIONPOINTS
;
233 typedef interface IConnectionPoint
*LPCONNECTIONPOINT
;
234 typedef interface IEnumConnections
*LPENUMCONNECTIONS
;
235 typedef interface IClassFactory2
*LPCLASSFACTORY2
;
236 typedef interface ISpecifyPropertyPages
*LPSPECIFYPROPERTYPAGES
;
237 typedef interface IPerPropertyBrowsing
*LPPERPROPERTYBROWSING
;
238 typedef interface IPropertyPageSite
*LPPROPERTYPAGESITE
;
239 typedef interface IPropertyPage
*LPPROPERTYPAGE
;
240 typedef interface IPropertyPage2
*LPPROPERTYPAGE2
;
241 typedef interface IFont
*LPFONT
;
242 typedef interface IFontDisp
*LPFONTDISP
;
243 typedef interface IPicture
*LPPICTURE
;
244 typedef interface IPictureDisp
*LPPICTUREDISP
;
245 typedef DWORD OLE_COLOR
;
246 typedef long OLE_XPOS_PIXELS
;
247 typedef long OLE_YPOS_PIXELS
;
248 typedef long OLE_XSIZE_PIXELS
;
249 typedef long OLE_YSIZE_PIXELS
;
250 typedef long OLE_XPOS_HIMETRIC
;
251 typedef long OLE_YPOS_HIMETRIC
;
252 typedef long OLE_XSIZE_HIMETRIC
;
253 typedef long OLE_YSIZE_HIMETRIC
;
254 typedef float OLE_XPOS_CONTAINER
;
255 typedef float OLE_YPOS_CONTAINER
;
256 typedef float OLE_XSIZE_CONTAINER
;
257 typedef float OLE_YSIZE_CONTAINER
;
258 typedef VARIANT_BOOL OLE_OPTEXCLUSIVE
;
259 typedef VARIANT_BOOL OLE_CANCELBOOL
;
260 typedef VARIANT_BOOL OLE_ENABLEDEFAULTBOOL
;
261 typedef UINT OLE_HANDLE
;
262 typedef enum { triUnchecked
,triChecked1
,triGray
} OLE_TRISTATE
;
263 typedef struct tagPOINTF
{
267 typedef struct tagCONTROLINFO
{
272 } CONTROLINFO
,*LPCONTROLINFO
;
273 typedef struct tagCONNECTDATA
{
276 } CONNECTDATA
,*LPCONNECTDATA
;
277 typedef struct tagLICINFO
{
279 BOOL fRuntimeKeyAvail
;
281 } LICINFO
,*LPLICINFO
;
282 typedef struct tagCAUUID
{
286 typedef struct tagCALPOLESTR
{
289 } CALPOLESTR
,*LPCALPOLESTR
;
290 typedef struct tagCADWORD
{
293 } CADWORD
,*LPCADWORD
;
294 typedef struct tagOCPFIPARAMS
{
299 LPCOLESTR lpszCaption
;
305 DISPID dispidInitialProperty
;
306 } OCPFIPARAMS
,*LPOCPFIPARAMS
;
307 typedef struct tagPROPPAGEINFO
{
311 LPOLESTR pszDocString
;
312 LPOLESTR pszHelpFile
;
314 } PROPPAGEINFO
,*LPPROPPAGEINFO
;
315 typedef struct tagFONTDESC
{
324 } FONTDESC
,*LPFONTDESC
;
325 typedef struct tagPICTDESC
{
328 _ANONYMOUS_UNION
union {
345 } PICTDESC
,*LPPICTDESC
;
347 EXTERN_C
const IID IID_IOleControl
;
349 #define INTERFACE IOleControl
350 DECLARE_INTERFACE_(IOleControl
,IUnknown
)
352 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
353 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
354 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
355 STDMETHOD(GetControlInfo
)(THIS_ LPCONTROLINFO
) PURE
;
356 STDMETHOD(OnMnemonic
)(THIS_ LPMSG
) PURE
;
357 STDMETHOD(OnAmbientPropertyChange
)(THIS_ DISPID
) PURE
;
358 STDMETHOD(FreezeEvents
)(THIS_ BOOL
) PURE
;
360 EXTERN_C
const IID IID_IOleControlSite
;
362 #define INTERFACE IOleControlSite
363 DECLARE_INTERFACE_(IOleControlSite
,IUnknown
)
365 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
366 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
367 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
368 STDMETHOD(OnControlInfoChanged
)(THIS
) PURE
;
369 STDMETHOD(LockInPlaceActive
)(THIS_ BOOL
) PURE
;
370 STDMETHOD(GetExtendedControl
)(THIS_ LPDISPATCH
*) PURE
;
371 STDMETHOD(TransformCoords
)(THIS_ POINTL
*,POINTF
*,DWORD
) PURE
;
372 STDMETHOD(TranslateAccelerator
)(THIS_ LPMSG
,DWORD
) PURE
;
373 STDMETHOD(OnFocus
)(THIS_ BOOL
) PURE
;
374 STDMETHOD(ShowPropertyFrame
)(THIS
) PURE
;
376 EXTERN_C
const IID IID_ISimpleFrameSite
;
378 #define INTERFACE ISimpleFrameSite
379 DECLARE_INTERFACE_(ISimpleFrameSite
,IUnknown
)
381 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
382 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
383 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
384 STDMETHOD(PreMessageFilter
)(THIS_ HWND
,UINT
,WPARAM
,LPARAM
,LRESULT
*,PDWORD
) PURE
;
385 STDMETHOD(PostMessageFilter
)(THIS_ HWND
,UINT
,WPARAM
,LPARAM
,LRESULT
*,DWORD
) PURE
;
387 EXTERN_C
const IID IID_IErrorLog
;
389 #define INTERFACE IErrorLog
390 DECLARE_INTERFACE_(IErrorLog
,IUnknown
)
392 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
393 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
394 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
395 STDMETHOD(AddError
)(THIS_ LPCOLESTR
,LPEXCEPINFO
) PURE
;
397 EXTERN_C
const IID IID_IPropertyBag
;
399 #define INTERFACE IPropertyBag
400 DECLARE_INTERFACE_(IPropertyBag
,IUnknown
)
402 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
403 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
404 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
405 STDMETHOD(Read
)(THIS_ LPCOLESTR
,LPVARIANT
,LPERRORLOG
) PURE
;
406 STDMETHOD(Write
)(THIS_ LPCOLESTR
,LPVARIANT
) PURE
;
408 EXTERN_C
const IID IID_IPersistPropertyBag
;
410 #define INTERFACE IPersistPropertyBag
411 DECLARE_INTERFACE_(IPersistPropertyBag
,IPersist
)
413 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
414 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
415 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
416 STDMETHOD(GetClassID
)(THIS_ LPCLSID
) PURE
;
417 STDMETHOD(InitNew
)(THIS
) PURE
;
418 STDMETHOD(Load
)(THIS_ LPPROPERTYBAG
,LPERRORLOG
) PURE
;
419 STDMETHOD(Save
)(THIS_ LPPROPERTYBAG
,BOOL
,BOOL
) PURE
;
421 EXTERN_C
const IID IID_IPersistStreamInit
;
423 #define INTERFACE IPersistStreamInit
424 DECLARE_INTERFACE_(IPersistStreamInit
,IPersist
)
426 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
427 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
428 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
429 STDMETHOD(GetClassID
)(THIS_ LPCLSID
) PURE
;
430 STDMETHOD(IsDirty
)(THIS
) PURE
;
431 STDMETHOD(Load
)(THIS_ LPSTREAM
) PURE
;
432 STDMETHOD(Save
)(THIS_ LPSTREAM
,BOOL
) PURE
;
433 STDMETHOD(GetSizeMax
)(THIS_ PULARGE_INTEGER
) PURE
;
434 STDMETHOD(InitNew
)(THIS
) PURE
;
436 EXTERN_C
const IID IID_IPersistMemory
;
438 #define INTERFACE IPersistMemory
439 DECLARE_INTERFACE_(IPersistMemory
,IPersist
)
441 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
442 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
443 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
444 STDMETHOD(GetClassID
)(THIS_ LPCLSID
) PURE
;
445 STDMETHOD(IsDirty
)(THIS
) PURE
;
446 STDMETHOD(Load
)(THIS_ PVOID
,ULONG
) PURE
;
447 STDMETHOD(Save
)(THIS_ PVOID
,BOOL
,ULONG
) PURE
;
448 STDMETHOD(GetSizeMax
)(THIS_ PULONG
) PURE
;
449 STDMETHOD(InitNew
)(THIS
) PURE
;
451 EXTERN_C
const IID IID_IPropertyNotifySink
;
453 #define INTERFACE IPropertyNotifySink
454 DECLARE_INTERFACE_(IPropertyNotifySink
,IUnknown
)
456 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
457 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
458 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
459 STDMETHOD(OnChanged
)(THIS_ DISPID
) PURE
;
460 STDMETHOD(OnRequestEdit
)(THIS_ DISPID
) PURE
;
462 EXTERN_C
const IID IID_IProvideClassInfo
;
464 #define INTERFACE IProvideClassInfo
465 DECLARE_INTERFACE_(IProvideClassInfo
,IUnknown
)
467 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
468 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
469 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
470 STDMETHOD(GetClassInfo
)(THIS_ LPTYPEINFO
*) PURE
;
472 EXTERN_C
const IID IID_IProvideClassInfo2
;
474 #define INTERFACE IProvideClassInfo2
475 DECLARE_INTERFACE_(IProvideClassInfo2
,IProvideClassInfo
)
477 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
478 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
479 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
480 STDMETHOD(GetClassInfo
)(THIS_ LPTYPEINFO
*) PURE
;
481 STDMETHOD(GetGUID
)(THIS_ DWORD
,GUID
*) PURE
;
483 EXTERN_C
const IID IID_IConnectionPointContainer
;
485 #define INTERFACE IConnectionPointContainer
486 DECLARE_INTERFACE_(IConnectionPointContainer
,IUnknown
)
488 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
489 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
490 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
491 STDMETHOD(EnumConnectionPoints
)(THIS_ LPENUMCONNECTIONPOINTS
*) PURE
;
492 STDMETHOD(FindConnectionPoint
)(THIS_ REFIID
,LPCONNECTIONPOINT
*) PURE
;
494 EXTERN_C
const IID IID_IEnumConnectionPoints
;
496 #define INTERFACE IEnumConnectionPoints
497 DECLARE_INTERFACE_(IEnumConnectionPoints
,IUnknown
)
499 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
500 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
501 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
502 STDMETHOD(Next
)(THIS_ ULONG
,LPCONNECTIONPOINT
*,ULONG
*) PURE
;
503 STDMETHOD(Skip
)(THIS_ ULONG
) PURE
;
504 STDMETHOD(Reset
)(THIS
) PURE
;
505 STDMETHOD(Clone
)(THIS_ LPENUMCONNECTIONPOINTS
*) PURE
;
507 EXTERN_C
const IID IID_IConnectionPoint
;
509 #define INTERFACE IConnectionPoint
510 DECLARE_INTERFACE_(IConnectionPoint
,IUnknown
)
512 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
513 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
514 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
515 STDMETHOD(GetConnectionInterface
)(THIS_ IID
*) PURE
;
516 STDMETHOD(GetConnectionPointContainer
)(THIS_ IConnectionPointContainer
**) PURE
;
517 STDMETHOD(Advise
)(THIS_ LPUNKNOWN
,PDWORD
) PURE
;
518 STDMETHOD(Unadvise
)(THIS_ DWORD
) PURE
;
519 STDMETHOD(EnumConnections
)(THIS_ LPENUMCONNECTIONS
*) PURE
;
521 EXTERN_C
const IID IID_IEnumConnections
;
523 #define INTERFACE IEnumConnections
524 DECLARE_INTERFACE_(IEnumConnections
,IUnknown
)
526 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
527 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
528 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
529 STDMETHOD(Next
)(THIS_ ULONG
,LPCONNECTDATA
,PULONG
) PURE
;
530 STDMETHOD(Skip
)(THIS_ ULONG
) PURE
;
531 STDMETHOD(Reset
)(THIS
) PURE
;
532 STDMETHOD(Clone
)(THIS_ LPENUMCONNECTIONS
*) PURE
;
534 EXTERN_C
const IID IID_IClassFactory2
;
536 #define INTERFACE IClassFactory2
537 DECLARE_INTERFACE_(IClassFactory2
,IClassFactory
)
539 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
540 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
541 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
542 STDMETHOD(CreateInstance
)(THIS_ LPUNKNOWN
,REFIID
,PVOID
*) PURE
;
543 STDMETHOD(LockServer
)(THIS_ BOOL
) PURE
;
544 STDMETHOD(GetLicInfo
)(THIS_ LPLICINFO
) PURE
;
545 STDMETHOD(RequestLicKey
)(THIS_ DWORD
,BSTR
*) PURE
;
546 STDMETHOD(CreateInstanceLic
)(THIS_ LPUNKNOWN
,LPUNKNOWN
,REFIID
,BSTR
,PVOID
*) PURE
;
548 EXTERN_C
const IID IID_ISpecifyPropertyPages
;
550 #define INTERFACE ISpecifyPropertyPages
551 DECLARE_INTERFACE_(ISpecifyPropertyPages
,IUnknown
)
553 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
554 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
555 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
556 STDMETHOD(GetPages
)(THIS_ CAUUID
*) PURE
;
558 EXTERN_C
const IID IID_IPerPropertyBrowsing
;
560 #define INTERFACE IPerPropertyBrowsing
561 DECLARE_INTERFACE_(IPerPropertyBrowsing
,IUnknown
)
563 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
564 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
565 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
566 STDMETHOD(GetDisplayString
)(THIS_ DISPID
,BSTR
*) PURE
;
567 STDMETHOD(MapPropertyToPage
)(THIS_ DISPID
,LPCLSID
) PURE
;
568 STDMETHOD(GetPredefinedStrings
)(THIS_ DISPID
,CALPOLESTR
*,CADWORD
*) PURE
;
569 STDMETHOD(GetPredefinedValue
)(THIS_ DISPID
,DWORD
,VARIANT
*) PURE
;
571 EXTERN_C
const IID IID_IPropertyPageSite
;
573 #define INTERFACE IPropertyPageSite
574 DECLARE_INTERFACE_(IPropertyPageSite
,IUnknown
)
576 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
577 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
578 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
579 STDMETHOD(OnStatusChange
)(THIS_ DWORD
) PURE
;
580 STDMETHOD(GetLocaleID
)(THIS_ LCID
*) PURE
;
581 STDMETHOD(GetPageContainer
)(THIS_ LPUNKNOWN
*) PURE
;
582 STDMETHOD(TranslateAccelerator
)(THIS_ LPMSG
) PURE
;
584 EXTERN_C
const IID IID_IPropertyPage
;
586 #define INTERFACE IPropertyPage
587 DECLARE_INTERFACE_(IPropertyPage
,IUnknown
)
589 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
590 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
591 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
592 STDMETHOD(SetPageSite
)(THIS_ LPPROPERTYPAGESITE
) PURE
;
593 STDMETHOD(Activate
)(THIS_ HWND
,LPCRECT
,BOOL
) PURE
;
594 STDMETHOD(Deactivate
)(THIS
) PURE
;
595 STDMETHOD(GetPageInfo
)(THIS_ LPPROPPAGEINFO
) PURE
;
596 STDMETHOD(SetObjects
)(THIS_ ULONG
,LPUNKNOWN
*) PURE
;
597 STDMETHOD(Show
)(THIS_ UINT
) PURE
;
598 STDMETHOD(Move
)(THIS_ LPCRECT
) PURE
;
599 STDMETHOD(IsPageDirty
)(THIS
) PURE
;
600 STDMETHOD(Apply
)(THIS
) PURE
;
601 STDMETHOD(Help
)(THIS_ LPCOLESTR
) PURE
;
602 STDMETHOD(TranslateAccelerator
)(THIS_ LPMSG
) PURE
;
604 EXTERN_C
const IID IID_IPropertyPage2
;
606 #define INTERFACE IPropertyPage2
607 DECLARE_INTERFACE_(IPropertyPage2
,IPropertyPage
)
609 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
610 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
611 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
612 STDMETHOD(SetPageSite
)(THIS_ LPPROPERTYPAGESITE
) PURE
;
613 STDMETHOD(Activate
)(THIS_ HWND
,LPCRECT
,BOOL
) PURE
;
614 STDMETHOD(Deactivate
)(THIS
) PURE
;
615 STDMETHOD(GetPageInfo
)(THIS_ LPPROPPAGEINFO
) PURE
;
616 STDMETHOD(SetObjects
)(THIS_ ULONG
,LPUNKNOWN
*) PURE
;
617 STDMETHOD(Show
)(THIS_ UINT
) PURE
;
618 STDMETHOD(Move
)(THIS_ LPCRECT
) PURE
;
619 STDMETHOD(IsPageDirty
)(THIS
) PURE
;
620 STDMETHOD(Apply
)(THIS
) PURE
;
621 STDMETHOD(Help
)(THIS_ LPCOLESTR
) PURE
;
622 STDMETHOD(TranslateAccelerator
)(THIS_ LPMSG
) PURE
;
623 STDMETHOD(EditProperty
)(THIS_ DISPID
) PURE
;
625 EXTERN_C
const IID IID_IFont
;
627 #define INTERFACE IFont
628 DECLARE_INTERFACE_(IFont
,IUnknown
)
630 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
631 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
632 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
633 STDMETHOD(get_Name
)(THIS_ BSTR
*) PURE
;
634 STDMETHOD(put_Name
)(THIS_ BSTR
) PURE
;
635 STDMETHOD(get_Size
)(THIS_ CY
*) PURE
;
636 STDMETHOD(put_Size
)(THIS_ CY
) PURE
;
637 STDMETHOD(get_Bold
)(THIS_ BOOL
*) PURE
;
638 STDMETHOD(put_Bold
)(THIS_ BOOL
) PURE
;
639 STDMETHOD(get_Italic
)(THIS_ BOOL
*) PURE
;
640 STDMETHOD(put_Italic
)(THIS_ BOOL
) PURE
;
641 STDMETHOD(get_Underline
)(THIS_ BOOL
*) PURE
;
642 STDMETHOD(put_Underline
)(THIS_ BOOL
) PURE
;
643 STDMETHOD(get_Strikethrough
)(THIS_ BOOL
*) PURE
;
644 STDMETHOD(put_Strikethrough
)(THIS_ BOOL
) PURE
;
645 STDMETHOD(get_Weight
)(THIS_
short*) PURE
;
646 STDMETHOD(put_Weight
)(THIS_
short) PURE
;
647 STDMETHOD(get_Charset
)(THIS_
short*) PURE
;
648 STDMETHOD(put_Charset
)(THIS_
short) PURE
;
649 STDMETHOD(get_hFont
)(THIS_ HFONT
*) PURE
;
650 STDMETHOD(Clone
)(THIS_ IFont
**) PURE
;
651 STDMETHOD(IsEqual
)(THIS_ IFont
*) PURE
;
652 STDMETHOD(SetRatio
)(THIS_
long,long) PURE
;
653 STDMETHOD(QueryTextMetrics
)(THIS_ LPTEXTMETRICOLE
) PURE
;
654 STDMETHOD(AddRefHfont
)(THIS_ HFONT
) PURE
;
655 STDMETHOD(ReleaseHfont
)(THIS_ HFONT
) PURE
;
656 STDMETHOD(SetHdc
)(THIS_ HDC
) PURE
;
658 EXTERN_C
const IID IID_IFontDisp
;
660 #define INTERFACE IFontDisp
661 DECLARE_INTERFACE_(IFontDisp
,IDispatch
)
663 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
664 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
665 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
666 STDMETHOD(GetTypeInfoCount
)(THIS_ UINT
*) PURE
;
667 STDMETHOD(GetTypeInfo
)(THIS_ UINT
,LCID
,LPTYPEINFO
*) PURE
;
668 STDMETHOD(GetIDsOfNames
)(THIS_ REFIID
,LPOLESTR
*,UINT
,LCID
,DISPID
*) PURE
;
669 STDMETHOD(Invoke
)(THIS_ DISPID
,REFIID
,LCID
,WORD
,DISPPARAMS
*,VARIANT
*,EXCEPINFO
*,UINT
*) PURE
;
671 EXTERN_C
const IID IID_IPicture
;
673 #define INTERFACE IPicture
674 DECLARE_INTERFACE_(IPicture
,IUnknown
)
676 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
677 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
678 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
679 STDMETHOD(get_Handle
)(THIS_ OLE_HANDLE
*) PURE
;
680 STDMETHOD(get_hPal
)(THIS_ OLE_HANDLE
*) PURE
;
681 STDMETHOD(get_Type
)(THIS_
short*) PURE
;
682 STDMETHOD(get_Width
)(THIS_ OLE_XSIZE_HIMETRIC
*) PURE
;
683 STDMETHOD(get_Height
)(THIS_ OLE_YSIZE_HIMETRIC
*) PURE
;
684 STDMETHOD(Render
)(THIS_ HDC
,long,long,long,long,OLE_XPOS_HIMETRIC
,OLE_YPOS_HIMETRIC
,OLE_XSIZE_HIMETRIC
,OLE_YSIZE_HIMETRIC
,LPCRECT
) PURE
;
685 STDMETHOD(set_hPal
)(THIS_ OLE_HANDLE
) PURE
;
686 STDMETHOD(get_CurDC
)(THIS_ HDC
*) PURE
;
687 STDMETHOD(SelectPicture
)(THIS_ HDC
,HDC
*,OLE_HANDLE
*) PURE
;
688 STDMETHOD(get_KeepOriginalFormat
)(THIS_ BOOL
*) PURE
;
689 STDMETHOD(put_KeepOriginalFormat
)(THIS_ BOOL
) PURE
;
690 STDMETHOD(PictureChanged
)(THIS
) PURE
;
691 STDMETHOD(SaveAsFile
)(THIS_ LPSTREAM
,BOOL
,LONG
*) PURE
;
692 STDMETHOD(get_Attributes
)(THIS_ PDWORD
) PURE
;
694 EXTERN_C
const IID IID_IPictureDisp
;
696 #define INTERFACE IPictureDisp
697 DECLARE_INTERFACE_(IPictureDisp
,IDispatch
)
699 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
700 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
701 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
702 STDMETHOD(GetTypeInfoCount
)(THIS_ UINT
*) PURE
;
703 STDMETHOD(GetTypeInfo
)(THIS_ UINT
,LCID
,LPTYPEINFO
*) PURE
;
704 STDMETHOD(GetIDsOfNames
)(THIS_ REFIID
,LPOLESTR
*,UINT
,LCID
,DISPID
*) PURE
;
705 STDMETHOD(Invoke
)(THIS_ DISPID
,REFIID
,LCID
,WORD
,DISPPARAMS
*,VARIANT
*,EXCEPINFO
*,UINT
*) PURE
;
709 STDAPI
DllRegisterServer(void);
710 STDAPI
DllUnregisterServer(void);
711 STDAPI
OleCreateFontIndirect(LPFONTDESC
,REFIID
,PVOID
*);
712 STDAPI
OleCreatePictureIndirect(LPPICTDESC
,REFIID
,BOOL
,PVOID
*);
713 STDAPI
OleCreatePropertyFrame(HWND
,UINT
,UINT
,LPCOLESTR
,ULONG
,LPUNKNOWN
*,ULONG
,LPCLSID
,LCID
,DWORD
,PVOID
);
714 STDAPI
OleCreatePropertyFrameIndirect(LPOCPFIPARAMS
);
715 STDAPI_(HCURSOR
) OleIconToCursor(HINSTANCE
,HICON
);
716 STDAPI
OleLoadPicture(LPSTREAM
,LONG
,BOOL
,REFIID
,PVOID
*);
717 STDAPI
OleTranslateColor(OLE_COLOR
,HPALETTE
,COLORREF
*);