1 /***********************************************************************\
2 *                                oledlg.d                               *
3 *                                                                       *
4 *                       Windows API header module                       *
5 *                                                                       *
6 *                 Translated from MinGW Windows headers                 *
7 *                                                                       *
8 *                       Placed into public domain                       *
9 \***********************************************************************/
10 module win32.oledlg;
11 version(Windows):
12 
13 import win32.commdlg, win32.dlgs, win32.ole2, win32.prsht, win32.shellapi,
14   win32.windows;
15 private import win32.winbase, win32.objidl, win32.objfwd, win32.winnt;
16 
17 // FIXME: remove inherited methods from interface definitions
18 
19 const PS_MAXLINKTYPES=8;
20 
21 const TCHAR[] OLESTDDELIM = "\\";
22 const TCHAR[] SZOLEUI_MSG_HELP = "OLEUI_MSG_HELP";
23 const TCHAR[] SZOLEUI_MSG_ENDDIALOG = "OLEUI_MSG_ENDDIALOG";
24 const TCHAR[] SZOLEUI_MSG_BROWSE = "OLEUI_MSG_BROWSE";
25 const TCHAR[] SZOLEUI_MSG_CHANGEICON = "OLEUI_MSG_CHANGEICON";
26 const TCHAR[] SZOLEUI_MSG_CLOSEBUSYDIALOG = "OLEUI_MSG_CLOSEBUSYDIALOG";
27 const TCHAR[] SZOLEUI_MSG_CONVERT = "OLEUI_MSG_CONVERT";
28 const TCHAR[] SZOLEUI_MSG_CHANGESOURCE = "OLEUI_MSG_CHANGESOURCE";
29 const TCHAR[] SZOLEUI_MSG_ADDCONTROL = "OLEUI_MSG_ADDCONTROL";
30 const TCHAR[] SZOLEUI_MSG_BROWSE_OFN = "OLEUI_MSG_BROWSE_OFN";
31 
32 const TCHAR[] PROP_HWND_CHGICONDLG = "HWND_CIDLG";
33 
34 const IDC_OLEUIHELP=99;
35 
36 enum {
37 	IDC_IO_CREATENEW = 2100,
38 	IDC_IO_CREATEFROMFILE,
39 	IDC_IO_LINKFILE,
40 	IDC_IO_OBJECTTYPELIST,
41 	IDC_IO_DISPLAYASICON,
42 	IDC_IO_CHANGEICON,
43 	IDC_IO_FILE,
44 	IDC_IO_FILEDISPLAY,
45 	IDC_IO_RESULTIMAGE,
46 	IDC_IO_RESULTTEXT,
47 	IDC_IO_ICONDISPLAY,
48 	IDC_IO_OBJECTTYPETEXT,
49 	IDC_IO_FILETEXT,
50 	IDC_IO_FILETYPE,
51 	IDC_IO_INSERTCONTROL,
52 	IDC_IO_ADDCONTROL,
53 	IDC_IO_CONTROLTYPELIST // = 2116
54 }
55 
56 const IDC_PS_PASTE=500;
57 const IDC_PS_PASTELINK=501;
58 const IDC_PS_SOURCETEXT=502;
59 const IDC_PS_PASTELIST=503;
60 const IDC_PS_PASTELINKLIST=504;
61 const IDC_PS_DISPLAYLIST=505;
62 const IDC_PS_DISPLAYASICON=506;
63 const IDC_PS_ICONDISPLAY=507;
64 const IDC_PS_CHANGEICON=508;
65 const IDC_PS_RESULTIMAGE=509;
66 const IDC_PS_RESULTTEXT=510;
67 
68 const IDC_CI_GROUP=120;
69 const IDC_CI_CURRENT=121;
70 const IDC_CI_CURRENTICON=122;
71 const IDC_CI_DEFAULT=123;
72 const IDC_CI_DEFAULTICON=124;
73 const IDC_CI_FROMFILE=125;
74 const IDC_CI_FROMFILEEDIT=126;
75 const IDC_CI_ICONLIST=127;
76 const IDC_CI_LABEL=128;
77 const IDC_CI_LABELEDIT=129;
78 const IDC_CI_BROWSE=130;
79 const IDC_CI_ICONDISPLAY=131;
80 
81 const IDC_CV_OBJECTTYPE=150;
82 const IDC_CV_DISPLAYASICON=152;
83 const IDC_CV_CHANGEICON=153;
84 const IDC_CV_ACTIVATELIST=154;
85 const IDC_CV_CONVERTTO=155;
86 const IDC_CV_ACTIVATEAS=156;
87 const IDC_CV_RESULTTEXT=157;
88 const IDC_CV_CONVERTLIST=158;
89 const IDC_CV_ICONDISPLAY=165;
90 
91 const IDC_EL_CHANGESOURCE=201;
92 const IDC_EL_AUTOMATIC=202;
93 const IDC_EL_CANCELLINK=209;
94 const IDC_EL_UPDATENOW=210;
95 const IDC_EL_OPENSOURCE=211;
96 const IDC_EL_MANUAL=212;
97 const IDC_EL_LINKSOURCE=216;
98 const IDC_EL_LINKTYPE=217;
99 const IDC_EL_LINKSLISTBOX=206;
100 const IDC_EL_COL1=220;
101 const IDC_EL_COL2=221;
102 const IDC_EL_COL3=222;
103 
104 const IDC_BZ_RETRY=600;
105 const IDC_BZ_ICON=601;
106 const IDC_BZ_MESSAGE1=602;
107 const IDC_BZ_SWITCHTO=604;
108 
109 const IDC_UL_METER=1029;
110 const IDC_UL_STOP=1030;
111 const IDC_UL_PERCENT=1031;
112 const IDC_UL_PROGRESS=1032;
113 
114 const IDC_PU_LINKS=900;
115 const IDC_PU_TEXT=901;
116 const IDC_PU_CONVERT=902;
117 const IDC_PU_ICON=908;
118 
119 const IDC_GP_OBJECTNAME=1009;
120 const IDC_GP_OBJECTTYPE=1010;
121 const IDC_GP_OBJECTSIZE=1011;
122 const IDC_GP_CONVERT=1013;
123 const IDC_GP_OBJECTICON=1014;
124 const IDC_GP_OBJECTLOCATION=1022;
125 
126 const IDC_VP_PERCENT=1000;
127 const IDC_VP_CHANGEICON=1001;
128 const IDC_VP_EDITABLE=1002;
129 const IDC_VP_ASICON=1003;
130 const IDC_VP_RELATIVE=1005;
131 const IDC_VP_SPIN=1006;
132 const IDC_VP_SCALETXT=1034;
133 const IDC_VP_ICONDISPLAY=1021;
134 const IDC_VP_RESULTIMAGE=1033;
135 
136 const IDC_LP_OPENSOURCE=1006;
137 const IDC_LP_UPDATENOW=1007;
138 const IDC_LP_BREAKLINK=1008;
139 const IDC_LP_LINKSOURCE=1012;
140 const IDC_LP_CHANGESOURCE=1015;
141 const IDC_LP_AUTOMATIC=1016;
142 const IDC_LP_MANUAL=1017;
143 const IDC_LP_DATE=1018;
144 const IDC_LP_TIME=1019;
145 
146 const IDD_INSERTOBJECT=1000;
147 const IDD_CHANGEICON=1001;
148 const IDD_CONVERT=1002;
149 const IDD_PASTESPECIAL=1003;
150 const IDD_EDITLINKS=1004;
151 const IDD_BUSY=1006;
152 const IDD_UPDATELINKS=1007;
153 const IDD_CHANGESOURCE=1009;
154 const IDD_INSERTFILEBROWSE=1010;
155 const IDD_CHANGEICONBROWSE=1011;
156 const IDD_CONVERTONLY=1012;
157 const IDD_CHANGESOURCE4=1013;
158 const IDD_GNRLPROPS=1100;
159 const IDD_VIEWPROPS=1101;
160 const IDD_LINKPROPS=1102;
161 const IDD_CANNOTUPDATELINK=1008;
162 const IDD_LINKSOURCEUNAVAILABLE=1020;
163 const IDD_SERVERNOTFOUND=1023;
164 const IDD_OUTOFMEMORY=1024;
165 const IDD_SERVERNOTREGW=1021;
166 const IDD_LINKTYPECHANGEDW=1022;
167 const IDD_SERVERNOTREGA=1025;
168 const IDD_LINKTYPECHANGEDA=1026;
169 
170 const ID_BROWSE_CHANGEICON=1;
171 const ID_BROWSE_INSERTFILE=2;
172 const ID_BROWSE_ADDCONTROL=3;
173 const ID_BROWSE_CHANGESOURCE=4;
174 
175 const OLEUI_FALSE=0;
176 const OLEUI_SUCCESS=1;
177 const OLEUI_OK=1;
178 const OLEUI_CANCEL=2;
179 
180 const OLEUI_ERR_STANDARDMIN=100;
181 const OLEUI_ERR_STRUCTURENULL=101;
182 const OLEUI_ERR_STRUCTUREINVALID=102;
183 const OLEUI_ERR_CBSTRUCTINCORRECT=103;
184 const OLEUI_ERR_HWNDOWNERINVALID=104;
185 const OLEUI_ERR_LPSZCAPTIONINVALID=105;
186 const OLEUI_ERR_LPFNHOOKINVALID=106;
187 const OLEUI_ERR_HINSTANCEINVALID=107;
188 const OLEUI_ERR_LPSZTEMPLATEINVALID=108;
189 const OLEUI_ERR_HRESOURCEINVALID=109;
190 const OLEUI_ERR_FINDTEMPLATEFAILURE=110;
191 const OLEUI_ERR_LOADTEMPLATEFAILURE=111;
192 const OLEUI_ERR_DIALOGFAILURE=112;
193 const OLEUI_ERR_LOCALMEMALLOC=113;
194 const OLEUI_ERR_GLOBALMEMALLOC=114;
195 const OLEUI_ERR_LOADSTRING=115;
196 const OLEUI_ERR_OLEMEMALLOC=116;
197 const OLEUI_ERR_STANDARDMAX=116;
198 
199 const OPF_OBJECTISLINK=1;
200 const OPF_NOFILLDEFAULT=2;
201 const OPF_SHOWHELP=4;
202 const OPF_DISABLECONVERT=8;
203 
204 const OLEUI_OPERR_SUBPROPNULL=OLEUI_ERR_STANDARDMAX;
205 const OLEUI_OPERR_SUBPROPINVALID=(OLEUI_ERR_STANDARDMAX+1);
206 const OLEUI_OPERR_PROPSHEETNULL=(OLEUI_ERR_STANDARDMAX+2);
207 const OLEUI_OPERR_PROPSHEETINVALID=(OLEUI_ERR_STANDARDMAX+3);
208 const OLEUI_OPERR_SUPPROP=(OLEUI_ERR_STANDARDMAX+4);
209 const OLEUI_OPERR_PROPSINVALID=(OLEUI_ERR_STANDARDMAX+5);
210 const OLEUI_OPERR_PAGESINCORRECT=(OLEUI_ERR_STANDARDMAX+6);
211 const OLEUI_OPERR_INVALIDPAGES=(OLEUI_ERR_STANDARDMAX+7);
212 const OLEUI_OPERR_NOTSUPPORTED=(OLEUI_ERR_STANDARDMAX+8);
213 const OLEUI_OPERR_DLGPROCNOTNULL=(OLEUI_ERR_STANDARDMAX+9);
214 const OLEUI_OPERR_LPARAMNOTZERO=(OLEUI_ERR_STANDARDMAX+10);
215 const OLEUI_GPERR_STRINGINVALID=(OLEUI_ERR_STANDARDMAX+11);
216 const OLEUI_GPERR_CLASSIDINVALID=(OLEUI_ERR_STANDARDMAX+12);
217 const OLEUI_GPERR_LPCLSIDEXCLUDEINVALID=(OLEUI_ERR_STANDARDMAX+13);
218 const OLEUI_GPERR_CBFORMATINVALID=(OLEUI_ERR_STANDARDMAX+14);
219 const OLEUI_VPERR_METAPICTINVALID=(OLEUI_ERR_STANDARDMAX+15);
220 const OLEUI_VPERR_DVASPECTINVALID=(OLEUI_ERR_STANDARDMAX+16);
221 const OLEUI_LPERR_LINKCNTRNULL=(OLEUI_ERR_STANDARDMAX+17);
222 const OLEUI_LPERR_LINKCNTRINVALID=(OLEUI_ERR_STANDARDMAX+18);
223 const OLEUI_OPERR_PROPERTYSHEET=(OLEUI_ERR_STANDARDMAX+19);
224 const OLEUI_OPERR_OBJINFOINVALID=(OLEUI_ERR_STANDARDMAX+20);
225 const OLEUI_OPERR_LINKINFOINVALID=(OLEUI_ERR_STANDARDMAX+21);
226 
227 const OLEUI_QUERY_GETCLASSID=65280;
228 const OLEUI_QUERY_LINKBROKEN=65281;
229 
230 const IOF_SHOWHELP=1;
231 const IOF_SELECTCREATENEW=2;
232 const IOF_SELECTCREATEFROMFILE=4;
233 const IOF_CHECKLINK=8;
234 const IOF_CHECKDISPLAYASICON=16;
235 const IOF_CREATENEWOBJECT=32;
236 const IOF_CREATEFILEOBJECT=64;
237 const IOF_CREATELINKOBJECT=128;
238 const IOF_DISABLELINK=256;
239 const IOF_VERIFYSERVERSEXIST=512;
240 const IOF_DISABLEDISPLAYASICON=1024;
241 const IOF_HIDECHANGEICON=2048;
242 const IOF_SHOWINSERTCONTROL=4096;
243 const IOF_SELECTCREATECONTROL=8192;
244 
245 const OLEUI_IOERR_LPSZFILEINVALID=OLEUI_ERR_STANDARDMAX;
246 const OLEUI_IOERR_LPSZLABELINVALID=(OLEUI_ERR_STANDARDMAX+1);
247 const OLEUI_IOERR_HICONINVALID=(OLEUI_ERR_STANDARDMAX+2);
248 const OLEUI_IOERR_LPFORMATETCINVALID=(OLEUI_ERR_STANDARDMAX+3);
249 const OLEUI_IOERR_PPVOBJINVALID=(OLEUI_ERR_STANDARDMAX+4);
250 const OLEUI_IOERR_LPIOLECLIENTSITEINVALID=(OLEUI_ERR_STANDARDMAX+5);
251 const OLEUI_IOERR_LPISTORAGEINVALID=(OLEUI_ERR_STANDARDMAX+6);
252 const OLEUI_IOERR_SCODEHASERROR=(OLEUI_ERR_STANDARDMAX+7);
253 const OLEUI_IOERR_LPCLSIDEXCLUDEINVALID=(OLEUI_ERR_STANDARDMAX+8);
254 const OLEUI_IOERR_CCHFILEINVALID=(OLEUI_ERR_STANDARDMAX+9);
255 
256 const PSF_SHOWHELP=1;
257 const PSF_SELECTPASTE=2;
258 const PSF_SELECTPASTELINK=4;
259 const PSF_CHECKDISPLAYASICON=8;
260 const PSF_DISABLEDISPLAYASICON=16;
261 const PSF_HIDECHANGEICON=32;
262 const PSF_STAYONCLIPBOARDCHANGE=64;
263 const PSF_NOREFRESHDATAOBJECT=128;
264 
265 const OLEUI_IOERR_SRCDATAOBJECTINVALID=OLEUI_ERR_STANDARDMAX;
266 const OLEUI_IOERR_ARRPASTEENTRIESINVALID=(OLEUI_ERR_STANDARDMAX+1);
267 const OLEUI_IOERR_ARRLINKTYPESINVALID=(OLEUI_ERR_STANDARDMAX+2);
268 const OLEUI_PSERR_CLIPBOARDCHANGED=(OLEUI_ERR_STANDARDMAX+3);
269 const OLEUI_PSERR_GETCLIPBOARDFAILED=(OLEUI_ERR_STANDARDMAX+4);
270 const OLEUI_ELERR_LINKCNTRNULL=OLEUI_ERR_STANDARDMAX;
271 const OLEUI_ELERR_LINKCNTRINVALID=(OLEUI_ERR_STANDARDMAX+1);
272 
273 const ELF_SHOWHELP=1;
274 const ELF_DISABLEUPDATENOW=2;
275 const ELF_DISABLEOPENSOURCE=4;
276 const ELF_DISABLECHANGESOURCE=8;
277 const ELF_DISABLECANCELLINK=16;
278 
279 const CIF_SHOWHELP=1;
280 const CIF_SELECTCURRENT=2;
281 const CIF_SELECTDEFAULT=4;
282 const CIF_SELECTFROMFILE=8;
283 const CIF_USEICONEXE=16;
284 
285 const OLEUI_CIERR_MUSTHAVECLSID=OLEUI_ERR_STANDARDMAX;
286 const OLEUI_CIERR_MUSTHAVECURRENTMETAFILE=OLEUI_ERR_STANDARDMAX+1;
287 const OLEUI_CIERR_SZICONEXEINVALID=OLEUI_ERR_STANDARDMAX+2;
288 
289 const CF_SHOWHELPBUTTON=1;
290 const CF_SETCONVERTDEFAULT=2;
291 const CF_SETACTIVATEDEFAULT=4;
292 const CF_SELECTCONVERTTO=8;
293 const CF_SELECTACTIVATEAS=16;
294 const CF_DISABLEDISPLAYASICON=32;
295 const CF_DISABLEACTIVATEAS=64;
296 const CF_HIDECHANGEICON=128;
297 const CF_CONVERTONLY=256;
298 
299 const OLEUI_CTERR_CLASSIDINVALID = OLEUI_ERR_STANDARDMAX+1;
300 const OLEUI_CTERR_DVASPECTINVALID = OLEUI_ERR_STANDARDMAX+2;
301 const OLEUI_CTERR_CBFORMATINVALID = OLEUI_ERR_STANDARDMAX+3;
302 const OLEUI_CTERR_HMETAPICTINVALID = OLEUI_ERR_STANDARDMAX+4;
303 const OLEUI_CTERR_STRINGINVALID = OLEUI_ERR_STANDARDMAX+5;
304 
305 const BZ_DISABLECANCELBUTTON = 1;
306 const BZ_DISABLESWITCHTOBUTTON = 2;
307 const BZ_DISABLERETRYBUTTON = 4;
308 const BZ_NOTRESPONDINGDIALOG = 8;
309 
310 const OLEUI_BZERR_HTASKINVALID = OLEUI_ERR_STANDARDMAX;
311 const OLEUI_BZ_SWITCHTOSELECTED = OLEUI_ERR_STANDARDMAX+1;
312 const OLEUI_BZ_RETRYSELECTED = OLEUI_ERR_STANDARDMAX+2;
313 const OLEUI_BZ_CALLUNBLOCKED = OLEUI_ERR_STANDARDMAX+3;
314 
315 const CSF_SHOWHELP = 1;
316 const CSF_VALIDSOURCE = 2;
317 const CSF_ONLYGETSOURCE = 4;
318 const CSF_EXPLORER = 8;
319 
320 const OLEUI_CSERR_LINKCNTRNULL = OLEUI_ERR_STANDARDMAX;
321 const OLEUI_CSERR_LINKCNTRINVALID = OLEUI_ERR_STANDARDMAX+1;
322 const OLEUI_CSERR_FROMNOTNULL = OLEUI_ERR_STANDARDMAX+2;
323 const OLEUI_CSERR_TONOTNULL = OLEUI_ERR_STANDARDMAX+3;
324 const OLEUI_CSERR_SOURCENULL = OLEUI_ERR_STANDARDMAX+4;
325 const OLEUI_CSERR_SOURCEINVALID = OLEUI_ERR_STANDARDMAX+5;
326 const OLEUI_CSERR_SOURCEPARSERROR = OLEUI_ERR_STANDARDMAX+6;
327 const OLEUI_CSERR_SOURCEPARSEERROR = OLEUI_ERR_STANDARDMAX+7;
328 
329 const VPF_SELECTRELATIVE=1;
330 const VPF_DISABLERELATIVE=2;
331 const VPF_DISABLESCALE=4;
332 
333 align(8):
334 extern (Windows) {
335 	alias UINT function(HWND, UINT, WPARAM, LPARAM) LPFNOLEUIHOOK;
336 }
337 
338 struct OLEUIINSERTOBJECTW {
339 	DWORD cbStruct;
340 	DWORD dwFlags;
341 	HWND hWndOwner;
342 	LPCWSTR lpszCaption;
343 	LPFNOLEUIHOOK lpfnHook;
344 	LPARAM lCustData;
345 	HINSTANCE hInstance;
346 	LPCWSTR lpszTemplate;
347 	HRSRC hResource;
348 	CLSID clsid;
349 	LPWSTR lpszFile;
350 	UINT cchFile;
351 	UINT cClsidExclude;
352 	LPCLSID lpClsidExclude;
353 	IID iid;
354 	DWORD oleRender;
355 	LPFORMATETC lpFormatEtc;
356 	LPOLECLIENTSITE lpIOleClientSite;
357 	LPSTORAGE lpIStorage;
358 	PVOID *ppvObj;
359 	SCODE sc;
360 	HGLOBAL hMetaPict;
361 }
362 alias OLEUIINSERTOBJECTW* POLEUIINSERTOBJECTW, LPOLEUIINSERTOBJECTW;
363 
364 struct OLEUIINSERTOBJECTA {
365 	DWORD cbStruct;
366 	DWORD dwFlags;
367 	HWND hWndOwner;
368 	LPCSTR lpszCaption;
369 	LPFNOLEUIHOOK lpfnHook;
370 	LPARAM lCustData;
371 	HINSTANCE hInstance;
372 	LPCSTR lpszTemplate;
373 	HRSRC hResource;
374 	CLSID clsid;
375 	LPSTR lpszFile;
376 	UINT cchFile;
377 	UINT cClsidExclude;
378 	LPCLSID lpClsidExclude;
379 	IID iid;
380 	DWORD oleRender;
381 	LPFORMATETC lpFormatEtc;
382 	LPOLECLIENTSITE lpIOleClientSite;
383 	LPSTORAGE lpIStorage;
384 	PVOID *ppvObj;
385 	SCODE sc;
386 	HGLOBAL hMetaPict;
387 }
388 alias OLEUIINSERTOBJECTA* POLEUIINSERTOBJECTA, LPOLEUIINSERTOBJECTA;
389 
390 UINT OleUIInsertObjectW(LPOLEUIINSERTOBJECTW);
391 UINT OleUIInsertObjectA(LPOLEUIINSERTOBJECTA);
392 
393 enum OLEUIPASTEFLAG {
394 	OLEUIPASTE_PASTEONLY,
395 	OLEUIPASTE_LINKTYPE1,
396 	OLEUIPASTE_LINKTYPE2,
397 	OLEUIPASTE_LINKTYPE3 = 4,
398 	OLEUIPASTE_LINKTYPE4 = 8,
399 	OLEUIPASTE_LINKTYPE5 = 16,
400 	OLEUIPASTE_LINKTYPE6 = 32,
401 	OLEUIPASTE_LINKTYPE7 = 64,
402 	OLEUIPASTE_LINKTYPE8 = 128,
403 	OLEUIPASTE_PASTE = 512,
404 	OLEUIPASTE_LINKANYTYPE = 1024,
405 	OLEUIPASTE_ENABLEICON = 2048
406 }
407 
408 struct OLEUIPASTEENTRYW {
409 	FORMATETC fmtetc;
410 	LPCWSTR lpstrFormatName;
411 	LPCWSTR lpstrResultText;
412 	DWORD dwFlags;
413 	DWORD dwScratchSpace;
414 }
415 alias OLEUIPASTEENTRYW* POLEUIPASTEENTRYW, LPOLEUIPASTEENTRYW;
416 
417 struct OLEUIPASTEENTRYA {
418 	FORMATETC fmtetc;
419 	LPCSTR lpstrFormatName;
420 	LPCSTR lpstrResultText;
421 	DWORD dwFlags;
422 	DWORD dwScratchSpace;
423 }
424 alias OLEUIPASTEENTRYA* POLEUIPASTEENTRYA, LPOLEUIPASTEENTRYA;
425 
426 struct OLEUIPASTESPECIALW {
427 	DWORD cbStruct;
428 	DWORD dwFlags;
429 	HWND hWndOwner;
430 	LPCWSTR lpszCaption;
431 	LPFNOLEUIHOOK lpfnHook;
432 	LPARAM lCustData;
433 	HINSTANCE hInstance;
434 	LPCWSTR lpszTemplate;
435 	HRSRC hResource;
436 	LPDATAOBJECT lpSrcDataObj;
437 	LPOLEUIPASTEENTRYW arrPasteEntries;
438 	int cPasteEntries;
439 	UINT *arrLinkTypes;
440 	int cLinkTypes;
441 	UINT cClsidExclude;
442 	LPCLSID lpClsidExclude;
443 	int nSelectedIndex;
444 	BOOL fLink;
445 	HGLOBAL hMetaPict;
446 	SIZEL sizel;
447 }
448 alias OLEUIPASTESPECIALW* POLEUIPASTESPECIALW, LPOLEUIPASTESPECIALW;
449 
450 struct OLEUIPASTESPECIALA {
451 	DWORD cbStruct;
452 	DWORD dwFlags;
453 	HWND hWndOwner;
454 	LPCSTR lpszCaption;
455 	LPFNOLEUIHOOK lpfnHook;
456 	LPARAM lCustData;
457 	HINSTANCE hInstance;
458 	LPCSTR lpszTemplate;
459 	HRSRC hResource;
460 	LPDATAOBJECT lpSrcDataObj;
461 	LPOLEUIPASTEENTRYA arrPasteEntries;
462 	int cPasteEntries;
463 	UINT* arrLinkTypes;
464 	int cLinkTypes;
465 	UINT cClsidExclude;
466 	LPCLSID lpClsidExclude;
467 	int nSelectedIndex;
468 	BOOL fLink;
469 	HGLOBAL hMetaPict;
470 	SIZEL sizel;
471 }
472 alias OLEUIPASTESPECIALA* POLEUIPASTESPECIALA, LPOLEUIPASTESPECIALA;
473 
474 interface IOleUILinkContainerW : IUnknown
475 {
476 	HRESULT QueryInterface(REFIID, PVOID*);
477 	ULONG AddRef();
478 	ULONG Release();
479 	DWORD GetNextLink(DWORD dwLink);
480 	HRESULT SetLinkUpdateOptions(DWORD, DWORD);
481 	HRESULT GetLinkUpdateOptions(DWORD, PDWORD);
482 	HRESULT SetLinkSource(DWORD, LPWSTR, ULONG, PULONG, BOOL);
483 	HRESULT GetLinkSource(DWORD, LPWSTR*, PULONG, LPWSTR*, LPWSTR*, BOOL*, BOOL*);
484 	HRESULT OpenLinkSource(DWORD);
485 	HRESULT UpdateLink(DWORD, BOOL, BOOL);
486 	HRESULT CancelLink(DWORD);
487 }
488 alias IOleUILinkContainerW LPOLEUILINKCONTAINERW;
489 
490 interface IOleUILinkContainerA : IUnknown
491 {
492 	HRESULT QueryInterface(REFIID, PVOID*);
493 	ULONG AddRef();
494 	ULONG Release();
495 	DWORD GetNextLink(DWORD);
496 	HRESULT SetLinkUpdateOptions(DWORD, DWORD);
497 	HRESULT GetLinkUpdateOptions(DWORD, PDWORD);
498 	HRESULT SetLinkSource(DWORD, LPSTR, ULONG, PULONG, BOOL);
499 	HRESULT GetLinkSource(DWORD, LPSTR*, PULONG, LPSTR*, LPSTR*, BOOL*, BOOL*);
500 	HRESULT OpenLinkSource(DWORD);
501 	HRESULT UpdateLink(DWORD, BOOL, BOOL);
502 	HRESULT CancelLink(DWORD);
503 }
504 alias IOleUILinkContainerA LPOLEUILINKCONTAINERA;
505 
506 struct OLEUIEDITLINKSW {
507 	DWORD cbStruct;
508 	DWORD dwFlags;
509 	HWND hWndOwner;
510 	LPCWSTR lpszCaption;
511 	LPFNOLEUIHOOK lpfnHook;
512 	LPARAM lCustData;
513 	HINSTANCE hInstance;
514 	LPCWSTR lpszTemplate;
515 	HRSRC hResource;
516 	LPOLEUILINKCONTAINERW lpOleUILinkContainer;
517 }
518 alias OLEUIEDITLINKSW* POLEUIEDITLINKSW, LPOLEUIEDITLINKSW;
519 
520 struct OLEUIEDITLINKSA {
521 	DWORD cbStruct;
522 	DWORD dwFlags;
523 	HWND hWndOwner;
524 	LPCSTR lpszCaption;
525 	LPFNOLEUIHOOK lpfnHook;
526 	LPARAM lCustData;
527 	HINSTANCE hInstance;
528 	LPCSTR lpszTemplate;
529 	HRSRC hResource;
530 	LPOLEUILINKCONTAINERA lpOleUILinkContainer;
531 }
532 alias OLEUIEDITLINKSA* POLEUIEDITLINKSA, LPOLEUIEDITLINKSA;
533 
534 struct OLEUICHANGEICONW {
535 	DWORD cbStruct;
536 	DWORD dwFlags;
537 	HWND hWndOwner;
538 	LPCWSTR lpszCaption;
539 	LPFNOLEUIHOOK lpfnHook;
540 	LPARAM lCustData;
541 	HINSTANCE hInstance;
542 	LPCWSTR lpszTemplate;
543 	HRSRC hResource;
544 	HGLOBAL hMetaPict;
545 	CLSID clsid;
546 	WCHAR[MAX_PATH] szIconExe;
547 	int cchIconExe;
548 }
549 alias OLEUICHANGEICONW* POLEUICHANGEICONW, LPOLEUICHANGEICONW;
550 
551 struct OLEUICHANGEICONA {
552 	DWORD cbStruct;
553 	DWORD dwFlags;
554 	HWND hWndOwner;
555 	LPCSTR lpszCaption;
556 	LPFNOLEUIHOOK lpfnHook;
557 	LPARAM lCustData;
558 	HINSTANCE hInstance;
559 	LPCSTR lpszTemplate;
560 	HRSRC hResource;
561 	HGLOBAL hMetaPict;
562 	CLSID clsid;
563 	CHAR[MAX_PATH] szIconExe;
564 	int cchIconExe;
565 }
566 alias OLEUICHANGEICONA* POLEUICHANGEICONA, LPOLEUICHANGEICONA;
567 
568 struct OLEUICONVERTW {
569 	DWORD cbStruct;
570 	DWORD dwFlags;
571 	HWND hWndOwner;
572 	LPCWSTR lpszCaption;
573 	LPFNOLEUIHOOK lpfnHook;
574 	LPARAM lCustData;
575 	HINSTANCE hInstance;
576 	LPCWSTR lpszTemplate;
577 	HRSRC hResource;
578 	CLSID clsid;
579 	CLSID clsidConvertDefault;
580 	CLSID clsidActivateDefault;
581 	CLSID clsidNew;
582 	DWORD dvAspect;
583 	WORD wFormat;
584 	BOOL fIsLinkedObject;
585 	HGLOBAL hMetaPict;
586 	LPWSTR lpszUserType;
587 	BOOL fObjectsIconChanged;
588 	LPWSTR lpszDefLabel;
589 	UINT cClsidExclude;
590 	LPCLSID lpClsidExclude;
591 }
592 alias OLEUICONVERTW* POLEUICONVERTW, LPOLEUICONVERTW;
593 
594 struct OLEUICONVERTA {
595 	DWORD cbStruct;
596 	DWORD dwFlags;
597 	HWND hWndOwner;
598 	LPCSTR lpszCaption;
599 	LPFNOLEUIHOOK lpfnHook;
600 	LPARAM lCustData;
601 	HINSTANCE hInstance;
602 	LPCSTR lpszTemplate;
603 	HRSRC hResource;
604 	CLSID clsid;
605 	CLSID clsidConvertDefault;
606 	CLSID clsidActivateDefault;
607 	CLSID clsidNew;
608 	DWORD dvAspect;
609 	WORD wFormat;
610 	BOOL fIsLinkedObject;
611 	HGLOBAL hMetaPict;
612 	LPSTR lpszUserType;
613 	BOOL fObjectsIconChanged;
614 	LPSTR lpszDefLabel;
615 	UINT cClsidExclude;
616 	LPCLSID lpClsidExclude;
617 }
618 alias OLEUICONVERTA* POLEUICONVERTA, LPOLEUICONVERTA;
619 
620 struct OLEUIBUSYW {
621 	DWORD cbStruct;
622 	DWORD dwFlags;
623 	HWND hWndOwner;
624 	LPCWSTR lpszCaption;
625 	LPFNOLEUIHOOK lpfnHook;
626 	LPARAM lCustData;
627 	HINSTANCE hInstance;
628 	LPCWSTR lpszTemplate;
629 	HRSRC hResource;
630 	HTASK hTask;
631 	HWND *lphWndDialog;
632 }
633 alias OLEUIBUSYW* POLEUIBUSYW, LPOLEUIBUSYW;
634 
635 struct OLEUIBUSYA {
636 	DWORD cbStruct;
637 	DWORD dwFlags;
638 	HWND hWndOwner;
639 	LPCSTR lpszCaption;
640 	LPFNOLEUIHOOK lpfnHook;
641 	LPARAM lCustData;
642 	HINSTANCE hInstance;
643 	LPCSTR lpszTemplate;
644 	HRSRC hResource;
645 	HTASK hTask;
646 	HWND *lphWndDialog;
647 }
648 alias OLEUIBUSYA* POLEUIBUSYA, LPOLEUIBUSYA;
649 
650 struct OLEUICHANGESOURCEW {
651 	DWORD cbStruct;
652 	DWORD dwFlags;
653 	HWND hWndOwner;
654 	LPCWSTR lpszCaption;
655 	LPFNOLEUIHOOK lpfnHook;
656 	LPARAM lCustData;
657 	HINSTANCE hInstance;
658 	LPCWSTR lpszTemplate;
659 	HRSRC hResource;
660 	OPENFILENAMEW* lpOFN;
661 	DWORD[4] dwReserved1;
662 	LPOLEUILINKCONTAINERW lpOleUILinkContainer;
663 	DWORD dwLink;
664 	LPWSTR lpszDisplayName;
665 	ULONG nFileLength;
666 	LPWSTR lpszFrom;
667 	LPWSTR lpszTo;
668 }
669 alias OLEUICHANGESOURCEW* POLEUICHANGESOURCEW, LPOLEUICHANGESOURCEW;
670 
671 struct OLEUICHANGESOURCEA {
672 	DWORD cbStruct;
673 	DWORD dwFlags;
674 	HWND hWndOwner;
675 	LPCSTR lpszCaption;
676 	LPFNOLEUIHOOK lpfnHook;
677 	LPARAM lCustData;
678 	HINSTANCE hInstance;
679 	LPCSTR lpszTemplate;
680 	HRSRC hResource;
681 	OPENFILENAMEA *lpOFN;
682 	DWORD[4] dwReserved1;
683 	LPOLEUILINKCONTAINERA lpOleUILinkContainer;
684 	DWORD dwLink;
685 	LPSTR lpszDisplayName;
686 	ULONG nFileLength;
687 	LPSTR lpszFrom;
688 	LPSTR lpszTo;
689 }
690 alias OLEUICHANGESOURCEA* POLEUICHANGESOURCEA, LPOLEUICHANGESOURCEA;
691 
692 interface IOleUIObjInfoW : IUnknown
693 {
694 	HRESULT QueryInterface(REFIID, PVOID*);
695 	ULONG AddRef();
696 	ULONG Release();
697 	HRESULT GetObjectInfo(DWORD, PDWORD, LPWSTR*, LPWSTR*, LPWSTR*, LPWSTR*);
698 	HRESULT GetConvertInfo(DWORD, CLSID*, PWORD, CLSID*, LPCLSID*, UINT*);
699 	HRESULT ConvertObject(DWORD, REFCLSID);
700 	HRESULT GetViewInfo(DWORD, HGLOBAL*, PDWORD, int*);
701 	HRESULT SetViewInfo(DWORD, HGLOBAL, DWORD, int, BOOL);
702 }
703 alias IOleUIObjInfoW LPOLEUIOBJINFOW;
704 
705 interface IOleUIObjInfoA : IUnknown
706 {
707 	HRESULT QueryInterface(REFIID, PVOID*);
708 	ULONG AddRef();
709 	ULONG Release();
710 	HRESULT GetObjectInfo(DWORD, PDWORD, LPSTR*, LPSTR*, LPSTR*, LPSTR*);
711 	HRESULT GetConvertInfo(DWORD, CLSID*, PWORD, CLSID*, LPCLSID*, UINT*);
712 	HRESULT ConvertObject(DWORD, REFCLSID);
713 	HRESULT GetViewInfo(DWORD, HGLOBAL*, PDWORD, int*);
714 	HRESULT SetViewInfo(DWORD, HGLOBAL, DWORD, int, BOOL);
715 }
716 alias IOleUIObjInfoA LPOLEUIOBJINFOA;
717 
718 interface IOleUILinkInfoW : IOleUILinkContainerW
719 {
720 	HRESULT QueryInterface(REFIID, PVOID*);
721 	ULONG AddRef();
722 	ULONG Release();
723 	DWORD GetNextLink(DWORD);
724 	HRESULT SetLinkUpdateOptions(DWORD, DWORD);
725 	HRESULT GetLinkUpdateOptions(DWORD, DWORD*);
726 	HRESULT SetLinkSource(DWORD, LPWSTR, ULONG, PULONG, BOOL);
727 	HRESULT GetLinkSource(DWORD, LPWSTR*, PULONG, LPWSTR*, LPWSTR*, BOOL*, BOOL*);
728 	HRESULT OpenLinkSource(DWORD);
729 	HRESULT UpdateLink(DWORD, BOOL, BOOL);
730 	HRESULT CancelLink(DWORD);
731 	HRESULT GetLastUpdate(DWORD, FILETIME*);
732 }
733 alias IOleUILinkInfoW LPOLEUILINKINFOW;
734 
735 interface IOleUILinkInfoA : IOleUILinkContainerA
736 {
737 	HRESULT QueryInterface(REFIID, PVOID*);
738 	ULONG AddRef();
739 	ULONG Release();
740 	DWORD GetNextLink(DWORD);
741 	HRESULT SetLinkUpdateOptions(DWORD, DWORD);
742 	HRESULT GetLinkUpdateOptions(DWORD, DWORD*);
743 	HRESULT SetLinkSource(DWORD, LPSTR, ULONG, PULONG, BOOL);
744 	HRESULT GetLinkSource(DWORD, LPSTR*, PULONG, LPSTR*, LPSTR*, BOOL*, BOOL*);
745 	HRESULT OpenLinkSource(DWORD);
746 	HRESULT UpdateLink(DWORD, BOOL, BOOL);
747 	HRESULT CancelLink(DWORD);
748 	HRESULT GetLastUpdate(DWORD, FILETIME*);
749 }
750 alias IOleUILinkInfoA LPOLEUILINKINFOA;
751 
752 struct OLEUIGNRLPROPSW {
753 	DWORD cbStruct;
754 	DWORD dwFlags;
755 	DWORD[2] dwReserved1;
756 	LPFNOLEUIHOOK lpfnHook;
757 	LPARAM lCustData;
758 	DWORD[3] dwReserved2;
759 	OLEUIOBJECTPROPSW* lpOP;
760 }
761 alias OLEUIGNRLPROPSW* POLEUIGNRLPROPSW, LPOLEUIGNRLPROPSW;
762 
763 struct OLEUIGNRLPROPSA {
764 	DWORD cbStruct;
765 	DWORD dwFlags;
766 	DWORD[2] dwReserved1;
767 	LPFNOLEUIHOOK lpfnHook;
768 	LPARAM lCustData;
769 	DWORD[3] dwReserved2;
770 	OLEUIOBJECTPROPSA* lpOP;
771 }
772 alias OLEUIGNRLPROPSA* POLEUIGNRLPROPSA, LPOLEUIGNRLPROPSA;
773 
774 struct OLEUIVIEWPROPSW {
775 	DWORD cbStruct;
776 	DWORD dwFlags;
777 	DWORD[2] dwReserved1;
778 	LPFNOLEUIHOOK lpfnHook;
779 	LPARAM lCustData;
780 	DWORD[3] dwReserved2;
781 	OLEUIOBJECTPROPSW* lpOP;
782 	int nScaleMin;
783 	int nScaleMax;
784 }
785 alias OLEUIVIEWPROPSW* POLEUIVIEWPROPSW, LPOLEUIVIEWPROPSW;
786 
787 struct OLEUIVIEWPROPSA {
788 	DWORD cbStruct;
789 	DWORD dwFlags;
790 	DWORD[2] dwReserved1;
791 	LPFNOLEUIHOOK lpfnHook;
792 	LPARAM lCustData;
793 	DWORD[3] dwReserved2;
794 	OLEUIOBJECTPROPSA *lpOP;
795 	int nScaleMin;
796 	int nScaleMax;
797 }
798 alias OLEUIVIEWPROPSA* POLEUIVIEWPROPSA, LPOLEUIVIEWPROPSA;
799 
800 struct OLEUILINKPROPSW {
801 	DWORD cbStruct;
802 	DWORD dwFlags;
803 	DWORD[2] dwReserved1;
804 	LPFNOLEUIHOOK lpfnHook;
805 	LPARAM lCustData;
806 	DWORD[3] dwReserved2;
807 	OLEUIOBJECTPROPSW *lpOP;
808 }
809 alias OLEUILINKPROPSW* POLEUILINKPROPSW, LPOLEUILINKPROPSW;
810 
811 struct OLEUILINKPROPSA {
812 	DWORD cbStruct;
813 	DWORD dwFlags;
814 	DWORD[2] dwReserved1;
815 	LPFNOLEUIHOOK lpfnHook;
816 	LPARAM lCustData;
817 	DWORD[3] dwReserved2;
818 	OLEUIOBJECTPROPSA* lpOP;
819 }
820 alias OLEUILINKPROPSA*  POLEUILINKPROPSA, LPOLEUILINKPROPSA;
821 
822 struct OLEUIOBJECTPROPSW {
823 	DWORD cbStruct;
824 	DWORD dwFlags;
825 	LPPROPSHEETHEADERW lpPS;
826 	DWORD dwObject;
827 	LPOLEUIOBJINFOW lpObjInfo;
828 	DWORD dwLink;
829 	LPOLEUILINKINFOW lpLinkInfo;
830 	LPOLEUIGNRLPROPSW lpGP;
831 	LPOLEUIVIEWPROPSW lpVP;
832 	LPOLEUILINKPROPSW lpLP;
833 }
834 alias OLEUIOBJECTPROPSW* POLEUIOBJECTPROPSW, LPOLEUIOBJECTPROPSW;
835 
836 struct OLEUIOBJECTPROPSA {
837 	DWORD cbStruct;
838 	DWORD dwFlags;
839 	LPPROPSHEETHEADERA lpPS;
840 	DWORD dwObject;
841 	LPOLEUIOBJINFOA lpObjInfo;
842 	DWORD dwLink;
843 	LPOLEUILINKINFOA lpLinkInfo;
844 	LPOLEUIGNRLPROPSA lpGP;
845 	LPOLEUIVIEWPROPSA lpVP;
846 	LPOLEUILINKPROPSA lpLP;
847 }
848 alias OLEUIOBJECTPROPSA* POLEUIOBJECTPROPSA, LPOLEUIOBJECTPROPSA;
849 
850 extern (Windows) {
851 	BOOL OleUIAddVerbMenuW(LPOLEOBJECT, LPCWSTR, HMENU, UINT, UINT, UINT, BOOL, UINT, HMENU*);
852 	BOOL OleUIAddVerbMenuA(LPOLEOBJECT, LPCSTR, HMENU, UINT, UINT, UINT, BOOL, UINT, HMENU*);
853 	UINT OleUIBusyW(LPOLEUIBUSYW);
854 	UINT OleUIBusyA(LPOLEUIBUSYA);
855 	BOOL OleUICanConvertOrActivateAs(REFCLSID, BOOL, WORD);
856 	UINT OleUIChangeIconW(LPOLEUICHANGEICONW);
857 	UINT OleUIChangeIconA(LPOLEUICHANGEICONA);
858 	UINT OleUIChangeSourceW(LPOLEUICHANGESOURCEW);
859 	UINT OleUIChangeSourceA(LPOLEUICHANGESOURCEA);
860 	UINT OleUIConvertW(LPOLEUICONVERTW);
861 	UINT OleUIConvertA(LPOLEUICONVERTA);
862 	UINT OleUIEditLinksW(LPOLEUIEDITLINKSW);
863 	UINT OleUIEditLinksA(LPOLEUIEDITLINKSA);
864 	UINT OleUIObjectPropertiesW(LPOLEUIOBJECTPROPSW);
865 	UINT OleUIObjectPropertiesA(LPOLEUIOBJECTPROPSA);
866 	UINT OleUIPasteSpecialW(LPOLEUIPASTESPECIALW);
867 	UINT OleUIPasteSpecialA(LPOLEUIPASTESPECIALA);
868 	BOOL OleUIUpdateLinksW(LPOLEUILINKCONTAINERW, HWND, LPWSTR, int);
869 	BOOL OleUIUpdateLinksA(LPOLEUILINKCONTAINERA, HWND, LPSTR, int);
870 }
871 
872 extern (C) {
873 	int OleUIPromptUserW(int, HWND, ...);
874 	int OleUIPromptUserA(int, HWND, ...);
875 }
876 
877 version(Unicode) {
878 	alias IDD_SERVERNOTREGW IDD_SERVERNOTREG;
879 	alias IDD_LINKTYPECHANGEDW IDD_LINKTYPECHANGED;
880 	alias OleUIUpdateLinksW OleUIUpdateLinks;
881 	alias OleUIAddVerbMenuW OleUIAddVerbMenu;
882 	alias OLEUIOBJECTPROPSW OLEUIOBJECTPROPS;
883 	alias POLEUIOBJECTPROPSW POLEUIOBJECTPROPS;
884 	alias LPOLEUIOBJECTPROPSW LPOLEUIOBJECTPROPS;
885 	alias OleUIObjectPropertiesW OleUIObjectProperties;
886 	alias OLEUIINSERTOBJECTW OLEUIINSERTOBJECT;
887 	alias POLEUIINSERTOBJECTW POLEUIINSERTOBJECT;
888 	alias LPOLEUIINSERTOBJECTW LPOLEUIINSERTOBJECT;
889 	alias OleUIInsertObjectW OleUIInsertObject;
890 	alias OleUIPromptUserW OleUIPromptUser;
891 	alias OLEUIPASTEENTRYW OLEUIPASTEENTRY;
892 	alias POLEUIPASTEENTRYW POLEUIPASTEENTRY;
893 	alias LPOLEUIPASTEENTRYW LPOLEUIPASTEENTRY;
894 	alias OLEUIPASTESPECIALW OLEUIPASTESPECIAL;
895 	alias POLEUIPASTESPECIALW POLEUIPASTESPECIAL;
896 	alias LPOLEUIPASTESPECIALW LPOLEUIPASTESPECIAL;
897 	alias OleUIPasteSpecialW OleUIPasteSpecial;
898 	alias IOleUILinkContainerW IOleUILinkContainer;
899 	alias LPOLEUILINKCONTAINERW LPOLEUILINKCONTAINER;
900 	alias OLEUIEDITLINKSW OLEUIEDITLINKS;
901 	alias POLEUIEDITLINKSW POLEUIEDITLINKS;
902 	alias LPOLEUIEDITLINKSW LPOLEUIEDITLINKS;
903 	alias OleUIEditLinksW OleUIEditLinks;
904 	alias OLEUICHANGEICONW OLEUICHANGEICON;
905 	alias POLEUICHANGEICONW POLEUICHANGEICON;
906 	alias LPOLEUICHANGEICONW LPOLEUICHANGEICON;
907 	alias OleUIChangeIconW OleUIChangeIcon;
908 	alias OLEUICONVERTW OLEUICONVERT;
909 	alias POLEUICONVERTW POLEUICONVERT;
910 	alias LPOLEUICONVERTW LPOLEUICONVERT;
911 	alias OleUIConvertW OleUIConvert;
912 	alias OLEUIBUSYW OLEUIBUSY;
913 	alias POLEUIBUSYW POLEUIBUSY;
914 	alias LPOLEUIBUSYW LPOLEUIBUSY;
915 	alias OleUIBusyW OleUIBusy;
916 	alias OLEUICHANGESOURCEW OLEUICHANGESOURCE;
917 	alias POLEUICHANGESOURCEW POLEUICHANGESOURCE;
918 	alias LPOLEUICHANGESOURCEW LPOLEUICHANGESOURCE;
919 	alias OleUIChangeSourceW OleUIChangeSource;
920 	alias IOleUIObjInfoW IOleUIObjInfo;
921 	alias LPOLEUIOBJINFOW LPOLEUIOBJINFO;
922 	alias IOleUILinkInfoW IOleUILinkInfo;
923 	//alias IOleUILinkInfoWVtbl IOleUILinkInfoVtbl;
924 	alias LPOLEUILINKINFOW LPOLEUILINKINFO;
925 	alias OLEUIGNRLPROPSW OLEUIGNRLPROPS;
926 	alias POLEUIGNRLPROPSW POLEUIGNRLPROPS;
927 	alias LPOLEUIGNRLPROPSW LPOLEUIGNRLPROPS;
928 	alias OLEUIVIEWPROPSW OLEUIVIEWPROPS;
929 	alias POLEUIVIEWPROPSW POLEUIVIEWPROPS;
930 	alias LPOLEUIVIEWPROPSW LPOLEUIVIEWPROPS;
931 	alias OLEUILINKPROPSW OLEUILINKPROPS;
932 	alias POLEUILINKPROPSW POLEUILINKPROPS;
933 	alias LPOLEUILINKPROPSW LPOLEUILINKPROPS;
934 } else {
935 	alias IDD_SERVERNOTREGA IDD_SERVERNOTREG;
936 	alias IDD_LINKTYPECHANGEDA IDD_LINKTYPECHANGED;
937 	alias OleUIUpdateLinksA OleUIUpdateLinks;
938 	alias OleUIAddVerbMenuA OleUIAddVerbMenu;
939 	alias OLEUIOBJECTPROPSA OLEUIOBJECTPROPS;
940 	alias POLEUIOBJECTPROPSA POLEUIOBJECTPROPS;
941 	alias LPOLEUIOBJECTPROPSA LPOLEUIOBJECTPROPS;
942 	alias OleUIObjectPropertiesA OleUIObjectProperties;
943 	alias OLEUIINSERTOBJECTA OLEUIINSERTOBJECT;
944 	alias POLEUIINSERTOBJECTA POLEUIINSERTOBJECT;
945 	alias LPOLEUIINSERTOBJECTA LPOLEUIINSERTOBJECT;
946 	alias OleUIInsertObjectA OleUIInsertObject;
947 	alias OleUIPromptUserA OleUIPromptUser;
948 	alias OLEUIPASTEENTRYA OLEUIPASTEENTRY;
949 	alias POLEUIPASTEENTRYA POLEUIPASTEENTRY;
950 	alias LPOLEUIPASTEENTRYA LPOLEUIPASTEENTRY;
951 	alias OLEUIPASTESPECIALA OLEUIPASTESPECIAL;
952 	alias POLEUIPASTESPECIALA POLEUIPASTESPECIAL;
953 	alias LPOLEUIPASTESPECIALA LPOLEUIPASTESPECIAL;
954 	alias OleUIPasteSpecialA OleUIPasteSpecial;
955 	alias IOleUILinkContainerA IOleUILinkContainer;
956 	alias LPOLEUILINKCONTAINERA LPOLEUILINKCONTAINER;
957 	alias OLEUIEDITLINKSA OLEUIEDITLINKS;
958 	alias POLEUIEDITLINKSA POLEUIEDITLINKS;
959 	alias LPOLEUIEDITLINKSA LPOLEUIEDITLINKS;
960 	alias OleUIEditLinksA OleUIEditLinks;
961 	alias OLEUICHANGEICONA OLEUICHANGEICON;
962 	alias POLEUICHANGEICONA POLEUICHANGEICON;
963 	alias LPOLEUICHANGEICONA LPOLEUICHANGEICON;
964 	alias OleUIChangeIconA OleUIChangeIcon;
965 	alias OLEUICONVERTA OLEUICONVERT;
966 	alias POLEUICONVERTA POLEUICONVERT;
967 	alias LPOLEUICONVERTA LPOLEUICONVERT;
968 	alias OleUIConvertA OleUIConvert;
969 	alias OLEUIBUSYA OLEUIBUSY;
970 	alias POLEUIBUSYA POLEUIBUSY;
971 	alias LPOLEUIBUSYA LPOLEUIBUSY;
972 	alias OleUIBusyA OleUIBusy;
973 	alias OLEUICHANGESOURCEA OLEUICHANGESOURCE;
974 	alias POLEUICHANGESOURCEA POLEUICHANGESOURCE;
975 	alias LPOLEUICHANGESOURCEA LPOLEUICHANGESOURCE;
976 	alias OleUIChangeSourceA OleUIChangeSource;
977 	alias IOleUIObjInfoA IOleUIObjInfo;
978 	alias LPOLEUIOBJINFOA LPOLEUIOBJINFO;
979 	alias IOleUILinkInfoA IOleUILinkInfo;
980 	//alias IOleUILinkInfoAVtbl IOleUILinkInfoVtbl;
981 	alias LPOLEUILINKINFOA LPOLEUILINKINFO;
982 	alias OLEUIGNRLPROPSA OLEUIGNRLPROPS;
983 	alias POLEUIGNRLPROPSA POLEUIGNRLPROPS;
984 	alias LPOLEUIGNRLPROPSA LPOLEUIGNRLPROPS;
985 	alias OLEUIVIEWPROPSA OLEUIVIEWPROPS;
986 	alias POLEUIVIEWPROPSA POLEUIVIEWPROPS;
987 	alias LPOLEUIVIEWPROPSA LPOLEUIVIEWPROPS;
988 	alias OLEUILINKPROPSA OLEUILINKPROPS;
989 	alias POLEUILINKPROPSA POLEUILINKPROPS;
990 	alias LPOLEUILINKPROPSA LPOLEUILINKPROPS;
991 }