From f215e02bf85f68d3a6106c2a1f4f7f063f819064 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:17:27 +0200 Subject: Adding upstream version 7.0.14-dfsg. Signed-off-by: Daniel Baumann --- .../Graphics/shaderlib/wine/include/Makefile.in | 669 + .../Graphics/shaderlib/wine/include/accctrl.h | 460 + .../Graphics/shaderlib/wine/include/access.idl | 88 + .../Graphics/shaderlib/wine/include/aclapi.h | 92 + .../Graphics/shaderlib/wine/include/aclui.h | 247 + .../Graphics/shaderlib/wine/include/activaut.idl | 38 + .../Graphics/shaderlib/wine/include/activdbg.idl | 590 + .../Graphics/shaderlib/wine/include/activscp.idl | 558 + .../Graphics/shaderlib/wine/include/adshlp.h | 45 + .../Graphics/shaderlib/wine/include/advpub.h | 290 + .../Graphics/shaderlib/wine/include/af_irda.h | 110 + .../Graphics/shaderlib/wine/include/amaudio.h | 56 + .../Graphics/shaderlib/wine/include/amstream.idl | 327 + .../Graphics/shaderlib/wine/include/amvideo.idl | 250 + .../Graphics/shaderlib/wine/include/appcompatapi.h | 41 + .../Graphics/shaderlib/wine/include/appmgmt.h | 63 + .../Graphics/shaderlib/wine/include/asptlb.idl | 142 + .../Graphics/shaderlib/wine/include/asynot.idl | 68 + .../Graphics/shaderlib/wine/include/asysta.idl | 60 + .../Graphics/shaderlib/wine/include/atlbase.h | 275 + .../Graphics/shaderlib/wine/include/atliface.idl | 96 + .../Graphics/shaderlib/wine/include/atlwin.h | 62 + .../Graphics/shaderlib/wine/include/audevcod.h | 53 + .../shaderlib/wine/include/audioclient.idl | 336 + .../shaderlib/wine/include/audiopolicy.idl | 249 + .../shaderlib/wine/include/audiosessiontypes.h | 57 + .../Graphics/shaderlib/wine/include/austream.idl | 117 + .../Graphics/shaderlib/wine/include/aviriff.h | 333 + .../Devices/Graphics/shaderlib/wine/include/avrt.h | 83 + .../Graphics/shaderlib/wine/include/axcore.idl | 666 + .../Graphics/shaderlib/wine/include/axextend.idl | 1074 ++ .../Graphics/shaderlib/wine/include/basetsd.h | 333 + .../Graphics/shaderlib/wine/include/basetyps.h | 92 + .../Graphics/shaderlib/wine/include/bcrypt.h | 59 + .../Graphics/shaderlib/wine/include/binres.idl | 58 + .../Graphics/shaderlib/wine/include/bits.idl | 426 + .../Graphics/shaderlib/wine/include/bits1_5.idl | 97 + .../Graphics/shaderlib/wine/include/bitsmsg.h | 90 + .../Graphics/shaderlib/wine/include/cderr.h | 80 + .../Graphics/shaderlib/wine/include/cfgmgr32.h | 214 + .../Graphics/shaderlib/wine/include/cguid.h | 118 + .../Graphics/shaderlib/wine/include/chprst.idl | 52 + .../Graphics/shaderlib/wine/include/cierror.h | 53 + .../Graphics/shaderlib/wine/include/clusapi.h | 66 + .../Graphics/shaderlib/wine/include/cmdbas.idl | 71 + .../Graphics/shaderlib/wine/include/cmdtxt.idl | 53 + .../Graphics/shaderlib/wine/include/comcat.idl | 241 + .../Graphics/shaderlib/wine/include/commctrl.h | 5183 ++++++ .../Graphics/shaderlib/wine/include/commctrl.rh | 220 + .../Graphics/shaderlib/wine/include/commdlg.h | 851 + .../shaderlib/wine/include/commoncontrols.idl | 223 + .../Graphics/shaderlib/wine/include/compobj.h | 34 + .../Graphics/shaderlib/wine/include/config.h | 1273 ++ .../Graphics/shaderlib/wine/include/config.h.in | 1412 ++ .../Graphics/shaderlib/wine/include/config_linux.h | 1275 ++ .../Graphics/shaderlib/wine/include/control.idl | 257 + .../Graphics/shaderlib/wine/include/cor.idl | 117 + .../Graphics/shaderlib/wine/include/cordebug.idl | 1050 ++ .../Graphics/shaderlib/wine/include/corerror.h | 139 + .../Graphics/shaderlib/wine/include/corhdr.h | 139 + .../Devices/Graphics/shaderlib/wine/include/cpl.h | 98 + .../Graphics/shaderlib/wine/include/crtrow.idl | 60 + .../Graphics/shaderlib/wine/include/cryptdlg.h | 323 + .../Graphics/shaderlib/wine/include/cryptuiapi.h | 447 + .../Graphics/shaderlib/wine/include/ctfutb.idl | 82 + .../Graphics/shaderlib/wine/include/ctxtcall.idl | 58 + .../Graphics/shaderlib/wine/include/custcntl.h | 137 + .../Graphics/shaderlib/wine/include/cvconst.h | 719 + .../Devices/Graphics/shaderlib/wine/include/d3d.h | 1577 ++ .../Graphics/shaderlib/wine/include/d3d10.idl | 1611 ++ .../Graphics/shaderlib/wine/include/d3d10_1.idl | 135 + .../shaderlib/wine/include/d3d10_1shader.h | 61 + .../Graphics/shaderlib/wine/include/d3d10effect.h | 866 + .../Graphics/shaderlib/wine/include/d3d10misc.h | 57 + .../Graphics/shaderlib/wine/include/d3d10shader.h | 242 + .../Graphics/shaderlib/wine/include/d3d11.idl | 2010 ++ .../shaderlib/wine/include/d3d11sdklayers.idl | 1268 ++ .../Graphics/shaderlib/wine/include/d3d11shader.h | 217 + .../Devices/Graphics/shaderlib/wine/include/d3d8.h | 1162 ++ .../Graphics/shaderlib/wine/include/d3d8caps.h | 295 + .../Graphics/shaderlib/wine/include/d3d8types.h | 1222 ++ .../Devices/Graphics/shaderlib/wine/include/d3d9.h | 2134 +++ .../Graphics/shaderlib/wine/include/d3d9caps.h | 404 + .../Graphics/shaderlib/wine/include/d3d9types.h | 1595 ++ .../Graphics/shaderlib/wine/include/d3dcaps.h | 442 + .../Graphics/shaderlib/wine/include/d3dcommon.idl | 648 + .../Graphics/shaderlib/wine/include/d3dcompiler.h | 132 + .../Graphics/shaderlib/wine/include/d3dhal.h | 529 + .../Graphics/shaderlib/wine/include/d3drm.h | 533 + .../Graphics/shaderlib/wine/include/d3drmdef.h | 475 + .../Graphics/shaderlib/wine/include/d3drmobj.h | 4711 +++++ .../Graphics/shaderlib/wine/include/d3drmwin.h | 112 + .../Graphics/shaderlib/wine/include/d3dtypes.h | 1368 ++ .../Graphics/shaderlib/wine/include/d3dvec.inl | 152 + .../Graphics/shaderlib/wine/include/d3dx9.h | 65 + .../Graphics/shaderlib/wine/include/d3dx9anim.h | 417 + .../Graphics/shaderlib/wine/include/d3dx9core.h | 514 + .../Graphics/shaderlib/wine/include/d3dx9effect.h | 441 + .../Graphics/shaderlib/wine/include/d3dx9math.h | 483 + .../Graphics/shaderlib/wine/include/d3dx9math.inl | 1307 ++ .../Graphics/shaderlib/wine/include/d3dx9mesh.h | 1066 ++ .../Graphics/shaderlib/wine/include/d3dx9shader.h | 381 + .../Graphics/shaderlib/wine/include/d3dx9shape.h | 55 + .../Graphics/shaderlib/wine/include/d3dx9tex.h | 358 + .../Graphics/shaderlib/wine/include/d3dx9xof.h | 195 + .../Graphics/shaderlib/wine/include/dbccmd.idl | 45 + .../Graphics/shaderlib/wine/include/dbcses.idl | 45 + .../Graphics/shaderlib/wine/include/dbdsad.idl | 84 + .../Graphics/shaderlib/wine/include/dbghelp.h | 1543 ++ .../Graphics/shaderlib/wine/include/dbinit.idl | 38 + .../Graphics/shaderlib/wine/include/dbprop.idl | 75 + .../Graphics/shaderlib/wine/include/dbs.idl | 740 + .../Devices/Graphics/shaderlib/wine/include/dbt.h | 160 + .../Graphics/shaderlib/wine/include/dciddi.h | 92 + .../Graphics/shaderlib/wine/include/dciman.h | 47 + .../Graphics/shaderlib/wine/include/dcommon.h | 38 + .../Devices/Graphics/shaderlib/wine/include/dde.h | 88 + .../Devices/Graphics/shaderlib/wine/include/dde.rh | 41 + .../Graphics/shaderlib/wine/include/ddeml.h | 392 + .../Graphics/shaderlib/wine/include/ddk/compstui.h | 80 + .../Graphics/shaderlib/wine/include/ddk/hidsdi.h | 44 + .../Graphics/shaderlib/wine/include/ddk/imm.h | 182 + .../Graphics/shaderlib/wine/include/ddk/mountmgr.h | 151 + .../Graphics/shaderlib/wine/include/ddk/ntddcdvd.h | 207 + .../Graphics/shaderlib/wine/include/ddk/ntddk.h | 155 + .../Graphics/shaderlib/wine/include/ddk/ntddser.h | 407 + .../Graphics/shaderlib/wine/include/ddk/ntddtape.h | 59 + .../Graphics/shaderlib/wine/include/ddk/usb.h | 415 + .../Graphics/shaderlib/wine/include/ddk/usb100.h | 127 + .../Graphics/shaderlib/wine/include/ddk/usb200.h | 33 + .../Graphics/shaderlib/wine/include/ddk/usbdlib.h | 46 + .../Graphics/shaderlib/wine/include/ddk/usbioctl.h | 34 + .../Graphics/shaderlib/wine/include/ddk/usbiodef.h | 35 + .../Graphics/shaderlib/wine/include/ddk/wdm.h | 1361 ++ .../Graphics/shaderlib/wine/include/ddk/winddiui.h | 59 + .../Graphics/shaderlib/wine/include/ddk/winsplp.h | 436 + .../Graphics/shaderlib/wine/include/ddraw.h | 2740 +++ .../Graphics/shaderlib/wine/include/ddrawgdi.h | 45 + .../Graphics/shaderlib/wine/include/ddrawi.h | 1079 ++ .../Graphics/shaderlib/wine/include/ddstream.idl | 97 + .../shaderlib/wine/include/delayloadhandler.h | 64 + .../Graphics/shaderlib/wine/include/devenum.idl | 46 + .../Graphics/shaderlib/wine/include/devguid.h | 115 + .../shaderlib/wine/include/devicetopology.idl | 745 + .../Graphics/shaderlib/wine/include/devpkey.h | 71 + .../Graphics/shaderlib/wine/include/devpropdef.h | 114 + .../Graphics/shaderlib/wine/include/difxapi.h | 79 + .../Graphics/shaderlib/wine/include/digitalv.h | 875 + .../Graphics/shaderlib/wine/include/dimm.idl | 599 + .../Graphics/shaderlib/wine/include/dinput.h | 2511 +++ .../Graphics/shaderlib/wine/include/dinputd.h | 254 + .../Graphics/shaderlib/wine/include/dispdib.h | 53 + .../Graphics/shaderlib/wine/include/dispex.idl | 214 + .../Devices/Graphics/shaderlib/wine/include/dlgs.h | 233 + .../Devices/Graphics/shaderlib/wine/include/dls1.h | 212 + .../Devices/Graphics/shaderlib/wine/include/dls2.h | 116 + .../Graphics/shaderlib/wine/include/dmdls.h | 219 + .../Graphics/shaderlib/wine/include/dmerror.h | 173 + .../Graphics/shaderlib/wine/include/dmksctrl.h | 119 + .../Devices/Graphics/shaderlib/wine/include/dmo.h | 43 + .../Graphics/shaderlib/wine/include/dmoreg.h | 87 + .../Graphics/shaderlib/wine/include/dmort.h | 38 + .../Graphics/shaderlib/wine/include/dmplugin.h | 308 + .../Graphics/shaderlib/wine/include/dmusbuff.h | 61 + .../Graphics/shaderlib/wine/include/dmusicc.h | 775 + .../Graphics/shaderlib/wine/include/dmusicf.h | 918 + .../Graphics/shaderlib/wine/include/dmusici.h | 1743 ++ .../Graphics/shaderlib/wine/include/dmusics.h | 246 + .../Graphics/shaderlib/wine/include/docobj.idl | 420 + .../shaderlib/wine/include/docobjectservice.idl | 76 + .../shaderlib/wine/include/downloadmgr.idl | 52 + .../Graphics/shaderlib/wine/include/dpaddr.h | 367 + .../Graphics/shaderlib/wine/include/dplay.h | 1282 ++ .../Graphics/shaderlib/wine/include/dplay8.h | 1010 + .../Graphics/shaderlib/wine/include/dplobby.h | 518 + .../Graphics/shaderlib/wine/include/dplobby8.h | 268 + .../Graphics/shaderlib/wine/include/dpnathlp.h | 201 + .../Graphics/shaderlib/wine/include/dsconf.h | 176 + .../Graphics/shaderlib/wine/include/dsgetdc.h | 112 + .../Graphics/shaderlib/wine/include/dshow.h | 69 + .../Graphics/shaderlib/wine/include/dsound.h | 1211 ++ .../Graphics/shaderlib/wine/include/dsrole.h | 101 + .../Graphics/shaderlib/wine/include/dvdmedia.h | 63 + .../Graphics/shaderlib/wine/include/dwmapi.h | 137 + .../Graphics/shaderlib/wine/include/dwrite.idl | 1420 ++ .../Graphics/shaderlib/wine/include/dwrite_1.idl | 833 + .../Graphics/shaderlib/wine/include/dxdiag.h | 164 + .../Graphics/shaderlib/wine/include/dxerr8.h | 61 + .../Graphics/shaderlib/wine/include/dxerr9.h | 61 + .../Graphics/shaderlib/wine/include/dxfile.h | 308 + .../Graphics/shaderlib/wine/include/dxgi.idl | 465 + .../Graphics/shaderlib/wine/include/dxgiformat.h | 153 + .../Graphics/shaderlib/wine/include/dxgitype.h | 93 + .../Graphics/shaderlib/wine/include/dyngraph.idl | 159 + .../shaderlib/wine/include/endpointvolume.idl | 157 + .../Graphics/shaderlib/wine/include/errorrep.h | 52 + .../Graphics/shaderlib/wine/include/errors.h | 54 + .../Graphics/shaderlib/wine/include/errrec.idl | 87 + .../Graphics/shaderlib/wine/include/evcode.h | 103 + .../Graphics/shaderlib/wine/include/evntprov.h | 80 + .../Graphics/shaderlib/wine/include/evntrace.h | 251 + .../Graphics/shaderlib/wine/include/excpt.h | 60 + .../Graphics/shaderlib/wine/include/exdisp.idl | 1055 ++ .../Graphics/shaderlib/wine/include/exdispid.h | 181 + .../Devices/Graphics/shaderlib/wine/include/fci.h | 272 + .../Devices/Graphics/shaderlib/wine/include/fdi.h | 310 + .../Graphics/shaderlib/wine/include/fileapi.h | 50 + .../Graphics/shaderlib/wine/include/fltdefs.h | 142 + .../Graphics/shaderlib/wine/include/fusion.idl | 365 + .../Graphics/shaderlib/wine/include/gameux.idl | 210 + .../Graphics/shaderlib/wine/include/gdiplus.h | 74 + .../Graphics/shaderlib/wine/include/gdipluscolor.h | 60 + .../shaderlib/wine/include/gdipluscolormatrix.h | 69 + .../Graphics/shaderlib/wine/include/gdiplusenums.h | 767 + .../Graphics/shaderlib/wine/include/gdiplusflat.h | 753 + .../shaderlib/wine/include/gdiplusgpstubs.h | 108 + .../shaderlib/wine/include/gdiplusimaging.h | 462 + .../Graphics/shaderlib/wine/include/gdiplusinit.h | 78 + .../Graphics/shaderlib/wine/include/gdiplusmem.h | 44 + .../shaderlib/wine/include/gdiplusmetaheader.h | 176 + .../shaderlib/wine/include/gdipluspixelformats.h | 114 + .../Graphics/shaderlib/wine/include/gdiplustypes.h | 285 + .../Graphics/shaderlib/wine/include/guiddef.h | 169 + .../Graphics/shaderlib/wine/include/hlguids.h | 40 + .../Graphics/shaderlib/wine/include/hlink.idl | 450 + .../Graphics/shaderlib/wine/include/htiface.idl | 137 + .../Graphics/shaderlib/wine/include/htiframe.idl | 143 + .../Graphics/shaderlib/wine/include/htmlhelp.h | 461 + .../Devices/Graphics/shaderlib/wine/include/http.h | 75 + .../shaderlib/wine/include/httprequest.idl | 201 + .../shaderlib/wine/include/httprequestid.h | 51 + .../shaderlib/wine/include/i_cryptasn1tls.h | 50 + .../Graphics/shaderlib/wine/include/iads.idl | 788 + .../Graphics/shaderlib/wine/include/icftypes.idl | 78 + .../Devices/Graphics/shaderlib/wine/include/icm.h | 445 + .../Graphics/shaderlib/wine/include/icmpapi.h | 62 + .../Graphics/shaderlib/wine/include/idispids.h | 42 + .../Graphics/shaderlib/wine/include/iextag.idl | 129 + .../Graphics/shaderlib/wine/include/ifdef.h | 239 + .../Graphics/shaderlib/wine/include/ifmib.h | 80 + .../Graphics/shaderlib/wine/include/imagehlp.h | 1409 ++ .../Devices/Graphics/shaderlib/wine/include/imm.h | 587 + .../Graphics/shaderlib/wine/include/imnact.idl | 308 + .../Graphics/shaderlib/wine/include/imnxport.idl | 1123 ++ .../Graphics/shaderlib/wine/include/in6addr.h | 61 + .../Graphics/shaderlib/wine/include/inaddr.h | 69 + .../Graphics/shaderlib/wine/include/indexsrv.idl | 133 + .../Graphics/shaderlib/wine/include/initguid.h | 35 + .../Graphics/shaderlib/wine/include/inputscope.idl | 93 + .../Graphics/shaderlib/wine/include/intshcut.h | 123 + .../Graphics/shaderlib/wine/include/ipexport.h | 128 + .../Graphics/shaderlib/wine/include/iphlpapi.h | 171 + .../Graphics/shaderlib/wine/include/ipifcons.h | 254 + .../Graphics/shaderlib/wine/include/ipmib.h | 254 + .../Graphics/shaderlib/wine/include/iprtrmib.h | 58 + .../Graphics/shaderlib/wine/include/iptypes.h | 269 + .../Graphics/shaderlib/wine/include/isguids.h | 37 + .../Graphics/shaderlib/wine/include/knownfolders.h | 151 + .../Devices/Graphics/shaderlib/wine/include/ks.h | 75 + .../Graphics/shaderlib/wine/include/ksguid.h | 29 + .../Graphics/shaderlib/wine/include/ksmedia.h | 153 + .../Devices/Graphics/shaderlib/wine/include/lm.h | 55 + .../Graphics/shaderlib/wine/include/lmaccess.h | 487 + .../Graphics/shaderlib/wine/include/lmapibuf.h | 49 + .../Devices/Graphics/shaderlib/wine/include/lmat.h | 44 + .../Graphics/shaderlib/wine/include/lmbrowsr.h | 56 + .../Graphics/shaderlib/wine/include/lmcons.h | 79 + .../Graphics/shaderlib/wine/include/lmerr.h | 327 + .../Graphics/shaderlib/wine/include/lmjoin.h | 52 + .../Graphics/shaderlib/wine/include/lmmsg.h | 61 + .../Graphics/shaderlib/wine/include/lmserver.h | 91 + .../Graphics/shaderlib/wine/include/lmshare.h | 71 + .../Graphics/shaderlib/wine/include/lmstats.h | 107 + .../Graphics/shaderlib/wine/include/lmuse.h | 93 + .../Graphics/shaderlib/wine/include/lmuseflg.h | 35 + .../Graphics/shaderlib/wine/include/lmwksta.h | 102 + .../Graphics/shaderlib/wine/include/loadperf.h | 51 + .../Graphics/shaderlib/wine/include/lzexpand.h | 64 + .../Devices/Graphics/shaderlib/wine/include/mapi.h | 254 + .../Graphics/shaderlib/wine/include/mapicode.h | 123 + .../Graphics/shaderlib/wine/include/mapidefs.h | 1332 ++ .../Graphics/shaderlib/wine/include/mapiform.h | 56 + .../Graphics/shaderlib/wine/include/mapiguid.h | 90 + .../Graphics/shaderlib/wine/include/mapitags.h | 824 + .../Graphics/shaderlib/wine/include/mapiutil.h | 286 + .../Graphics/shaderlib/wine/include/mapival.h | 130 + .../Graphics/shaderlib/wine/include/mapix.h | 196 + .../Graphics/shaderlib/wine/include/mciavi.h | 52 + .../Devices/Graphics/shaderlib/wine/include/mcx.h | 69 + .../Graphics/shaderlib/wine/include/mediaerr.h | 38 + .../Graphics/shaderlib/wine/include/mediaobj.idl | 78 + .../Graphics/shaderlib/wine/include/metahost.idl | 215 + .../Graphics/shaderlib/wine/include/midles.h | 142 + .../Graphics/shaderlib/wine/include/mimeinfo.idl | 45 + .../Graphics/shaderlib/wine/include/mimeole.idl | 1346 ++ .../Graphics/shaderlib/wine/include/minmax.h | 40 + .../Graphics/shaderlib/wine/include/mlang.idl | 766 + .../Graphics/shaderlib/wine/include/mmc.idl | 67 + .../Graphics/shaderlib/wine/include/mmddk.h | 480 + .../shaderlib/wine/include/mmdeviceapi.idl | 259 + .../Graphics/shaderlib/wine/include/mmreg.h | 508 + .../Graphics/shaderlib/wine/include/mmstream.idl | 193 + .../Graphics/shaderlib/wine/include/mmsystem.h | 2531 +++ .../Graphics/shaderlib/wine/include/mprapi.h | 55 + .../Graphics/shaderlib/wine/include/mprerror.h | 74 + .../Graphics/shaderlib/wine/include/msacm.h | 801 + .../Graphics/shaderlib/wine/include/msacmdlg.h | 45 + .../Graphics/shaderlib/wine/include/msacmdrv.h | 168 + .../Graphics/shaderlib/wine/include/mscat.h | 143 + .../Graphics/shaderlib/wine/include/mscoree.idl | 249 + .../Graphics/shaderlib/wine/include/msctf.idl | 1533 ++ .../Graphics/shaderlib/wine/include/msdadc.idl | 101 + .../Graphics/shaderlib/wine/include/msdaguid.h | 36 + .../Graphics/shaderlib/wine/include/msdasc.idl | 147 + .../Graphics/shaderlib/wine/include/mshtmcid.h | 434 + .../Graphics/shaderlib/wine/include/mshtmdid.h | 3105 ++++ .../Graphics/shaderlib/wine/include/mshtmhst.idl | 311 + .../Graphics/shaderlib/wine/include/mshtml.idl | 18564 +++++++++++++++++++ .../Devices/Graphics/shaderlib/wine/include/msi.h | 719 + .../Graphics/shaderlib/wine/include/msidefs.h | 290 + .../Graphics/shaderlib/wine/include/msident.idl | 103 + .../Graphics/shaderlib/wine/include/msinkaut.idl | 1018 + .../Graphics/shaderlib/wine/include/msiquery.h | 335 + .../Graphics/shaderlib/wine/include/mssip.h | 189 + .../Graphics/shaderlib/wine/include/mstask.idl | 402 + .../Graphics/shaderlib/wine/include/mstcpip.h | 78 + .../shaderlib/wine/include/msvcrt/assert.h | 46 + .../Graphics/shaderlib/wine/include/msvcrt/conio.h | 63 + .../shaderlib/wine/include/msvcrt/crtdbg.h | 140 + .../shaderlib/wine/include/msvcrt/crtdefs.h | 248 + .../Graphics/shaderlib/wine/include/msvcrt/ctype.h | 85 + .../shaderlib/wine/include/msvcrt/direct.h | 59 + .../shaderlib/wine/include/msvcrt/dirent.h | 1 + .../Graphics/shaderlib/wine/include/msvcrt/dos.h | 50 + .../Graphics/shaderlib/wine/include/msvcrt/eh.h | 58 + .../Graphics/shaderlib/wine/include/msvcrt/errno.h | 87 + .../Graphics/shaderlib/wine/include/msvcrt/fcntl.h | 50 + .../Graphics/shaderlib/wine/include/msvcrt/float.h | 158 + .../Graphics/shaderlib/wine/include/msvcrt/io.h | 184 + .../shaderlib/wine/include/msvcrt/limits.h | 49 + .../shaderlib/wine/include/msvcrt/locale.h | 90 + .../shaderlib/wine/include/msvcrt/malloc.h | 99 + .../Graphics/shaderlib/wine/include/msvcrt/math.h | 174 + .../shaderlib/wine/include/msvcrt/mbctype.h | 90 + .../shaderlib/wine/include/msvcrt/mbstring.h | 132 + .../shaderlib/wine/include/msvcrt/memory.h | 37 + .../shaderlib/wine/include/msvcrt/process.h | 126 + .../shaderlib/wine/include/msvcrt/search.h | 52 + .../shaderlib/wine/include/msvcrt/setjmp.h | 140 + .../Graphics/shaderlib/wine/include/msvcrt/share.h | 42 + .../shaderlib/wine/include/msvcrt/signal.h | 63 + .../shaderlib/wine/include/msvcrt/stddef.h | 60 + .../Graphics/shaderlib/wine/include/msvcrt/stdio.h | 272 + .../shaderlib/wine/include/msvcrt/stdlib.h | 301 + .../shaderlib/wine/include/msvcrt/string.h | 156 + .../shaderlib/wine/include/msvcrt/sys/locking.h | 42 + .../shaderlib/wine/include/msvcrt/sys/stat.h | 201 + .../shaderlib/wine/include/msvcrt/sys/timeb.h | 86 + .../shaderlib/wine/include/msvcrt/sys/types.h | 82 + .../shaderlib/wine/include/msvcrt/sys/unistd.h | 1 + .../shaderlib/wine/include/msvcrt/sys/utime.h | 88 + .../Graphics/shaderlib/wine/include/msvcrt/time.h | 162 + .../shaderlib/wine/include/msvcrt/unistd.h | 2 + .../Graphics/shaderlib/wine/include/msvcrt/wchar.h | 478 + .../shaderlib/wine/include/msvcrt/wctype.h | 92 + .../Graphics/shaderlib/wine/include/mswsock.h | 197 + .../Graphics/shaderlib/wine/include/msxml.h | 1773 ++ .../Graphics/shaderlib/wine/include/msxml.idl | 366 + .../Graphics/shaderlib/wine/include/msxml2.idl | 3576 ++++ .../Graphics/shaderlib/wine/include/msxml2did.h | 563 + .../Graphics/shaderlib/wine/include/msxml6.idl | 3431 ++++ .../Graphics/shaderlib/wine/include/msxml6did.h | 33 + .../Graphics/shaderlib/wine/include/msxmldid.h | 76 + .../Devices/Graphics/shaderlib/wine/include/nb30.h | 231 + .../Graphics/shaderlib/wine/include/ndrtypes.h | 190 + .../Graphics/shaderlib/wine/include/netcon.idl | 421 + .../Graphics/shaderlib/wine/include/netfw.idl | 479 + .../Graphics/shaderlib/wine/include/nldef.h | 89 + .../Graphics/shaderlib/wine/include/npapi.h | 229 + .../Graphics/shaderlib/wine/include/nspapi.h | 214 + .../Graphics/shaderlib/wine/include/ntddcdrm.h | 194 + .../Graphics/shaderlib/wine/include/ntddndis.h | 181 + .../Graphics/shaderlib/wine/include/ntddscsi.h | 133 + .../Graphics/shaderlib/wine/include/ntddstor.h | 288 + .../Graphics/shaderlib/wine/include/ntdsapi.h | 66 + .../Graphics/shaderlib/wine/include/ntquery.h | 92 + .../Graphics/shaderlib/wine/include/ntsecapi.h | 403 + .../Graphics/shaderlib/wine/include/ntsecpkg.h | 480 + .../Graphics/shaderlib/wine/include/ntstatus.h | 1229 ++ .../Graphics/shaderlib/wine/include/oaidl.h | 5205 ++++++ .../Graphics/shaderlib/wine/include/oaidl.idl | 1651 ++ .../Graphics/shaderlib/wine/include/objbase.h | 511 + .../shaderlib/wine/include/objectarray.idl | 56 + .../Graphics/shaderlib/wine/include/objidl.h | 10438 +++++++++++ .../Graphics/shaderlib/wine/include/objidl.idl | 2531 +++ .../Graphics/shaderlib/wine/include/objsafe.idl | 54 + .../Graphics/shaderlib/wine/include/objsel.h | 169 + .../Graphics/shaderlib/wine/include/ocidl.idl | 1343 ++ .../Graphics/shaderlib/wine/include/ocmm.idl | 83 + .../Graphics/shaderlib/wine/include/odbcinst.h | 141 + .../Devices/Graphics/shaderlib/wine/include/ole2.h | 179 + .../Graphics/shaderlib/wine/include/ole2ver.h | 53 + .../Graphics/shaderlib/wine/include/oleacc.idl | 305 + .../Graphics/shaderlib/wine/include/oleauto.h | 772 + .../Graphics/shaderlib/wine/include/olectl.h | 458 + .../Graphics/shaderlib/wine/include/oledb.idl | 85 + .../Graphics/shaderlib/wine/include/oledberr.h | 83 + .../Graphics/shaderlib/wine/include/oledlg.h | 988 + .../Graphics/shaderlib/wine/include/oleidl.h | 3645 ++++ .../Graphics/shaderlib/wine/include/oleidl.idl | 967 + .../Graphics/shaderlib/wine/include/opnrst.idl | 56 + .../Graphics/shaderlib/wine/include/optary.idl | 74 + .../Graphics/shaderlib/wine/include/patchapi.h | 61 + .../Devices/Graphics/shaderlib/wine/include/pdh.h | 255 + .../Graphics/shaderlib/wine/include/pdhmsg.h | 120 + .../Graphics/shaderlib/wine/include/perhist.idl | 47 + .../Graphics/shaderlib/wine/include/pktdef.h | 257 + .../Graphics/shaderlib/wine/include/poppack.h | 272 + .../Graphics/shaderlib/wine/include/powrprof.h | 153 + .../Graphics/shaderlib/wine/include/profinfo.h | 56 + .../Graphics/shaderlib/wine/include/propidl.h | 1027 + .../Graphics/shaderlib/wine/include/propidl.idl | 464 + .../Graphics/shaderlib/wine/include/propkey.h | 55 + .../Graphics/shaderlib/wine/include/propkeydef.h | 82 + .../Graphics/shaderlib/wine/include/propsys.idl | 832 + .../Graphics/shaderlib/wine/include/propvarutil.h | 127 + .../Graphics/shaderlib/wine/include/prsht.h | 547 + .../Graphics/shaderlib/wine/include/psapi.h | 128 + .../Graphics/shaderlib/wine/include/pshpack1.h | 121 + .../Graphics/shaderlib/wine/include/pshpack2.h | 121 + .../Graphics/shaderlib/wine/include/pshpack4.h | 121 + .../Graphics/shaderlib/wine/include/pshpack8.h | 121 + .../Graphics/shaderlib/wine/include/pstore.idl | 285 + .../Graphics/shaderlib/wine/include/qedit.idl | 187 + .../Devices/Graphics/shaderlib/wine/include/ras.h | 526 + .../Graphics/shaderlib/wine/include/rasdlg.h | 41 + .../Graphics/shaderlib/wine/include/raserror.h | 38 + .../Graphics/shaderlib/wine/include/reason.h | 84 + .../Graphics/shaderlib/wine/include/regstr.h | 42 + .../shaderlib/wine/include/restartmanager.h | 67 + .../Graphics/shaderlib/wine/include/richedit.h | 1088 ++ .../Graphics/shaderlib/wine/include/richole.idl | 142 + .../Graphics/shaderlib/wine/include/rmxfguid.h | 139 + .../Graphics/shaderlib/wine/include/rmxftmpl.x | 277 + .../Graphics/shaderlib/wine/include/row.idl | 51 + .../Graphics/shaderlib/wine/include/rowchg.idl | 39 + .../Graphics/shaderlib/wine/include/rowpos.idl | 86 + .../Graphics/shaderlib/wine/include/rowpsc.idl | 45 + .../Devices/Graphics/shaderlib/wine/include/rpc.h | 93 + .../Graphics/shaderlib/wine/include/rpcasync.h | 211 + .../Graphics/shaderlib/wine/include/rpcdce.h | 635 + .../Graphics/shaderlib/wine/include/rpcdcep.h | 241 + .../Graphics/shaderlib/wine/include/rpcndr.h | 786 + .../Graphics/shaderlib/wine/include/rpcnterr.h | 53 + .../Graphics/shaderlib/wine/include/rpcproxy.h | 394 + .../Graphics/shaderlib/wine/include/rpcsal.h | 175 + .../Graphics/shaderlib/wine/include/rstbas.idl | 60 + .../Graphics/shaderlib/wine/include/rstinf.idl | 67 + .../Graphics/shaderlib/wine/include/rstloc.idl | 76 + .../Graphics/shaderlib/wine/include/rstnot.idl | 83 + .../Graphics/shaderlib/wine/include/rtutils.h | 58 + .../Graphics/shaderlib/wine/include/scarderr.h | 105 + .../Graphics/shaderlib/wine/include/schannel.h | 249 + .../Graphics/shaderlib/wine/include/schemadef.h | 54 + .../Graphics/shaderlib/wine/include/schnlsp.h | 33 + .../Devices/Graphics/shaderlib/wine/include/sddl.h | 130 + .../Graphics/shaderlib/wine/include/secext.h | 67 + .../Graphics/shaderlib/wine/include/security.h | 35 + .../Graphics/shaderlib/wine/include/sensapi.h | 56 + .../Graphics/shaderlib/wine/include/sensevts.idl | 136 + .../Graphics/shaderlib/wine/include/servprov.h | 114 + .../Graphics/shaderlib/wine/include/servprov.idl | 55 + .../Graphics/shaderlib/wine/include/sesprp.idl | 60 + .../Graphics/shaderlib/wine/include/setupapi.h | 1873 ++ .../Devices/Graphics/shaderlib/wine/include/sfc.h | 55 + .../shaderlib/wine/include/shdeprecated.idl | 613 + .../Graphics/shaderlib/wine/include/shdispid.h | 39 + .../Graphics/shaderlib/wine/include/shellapi.h | 670 + .../Graphics/shaderlib/wine/include/shldisp.idl | 573 + .../Graphics/shaderlib/wine/include/shlguid.h | 248 + .../Graphics/shaderlib/wine/include/shlobj.h | 1775 ++ .../Graphics/shaderlib/wine/include/shlwapi.h | 1135 ++ .../Graphics/shaderlib/wine/include/shobjidl.idl | 3408 ++++ .../Graphics/shaderlib/wine/include/shtypes.idl | 171 + .../Graphics/shaderlib/wine/include/sipbase.h | 33 + .../Graphics/shaderlib/wine/include/slerror.h | 35 + .../Graphics/shaderlib/wine/include/slpublic.h | 49 + .../Devices/Graphics/shaderlib/wine/include/snmp.h | 304 + .../Graphics/shaderlib/wine/include/softpub.h | 254 + .../Devices/Graphics/shaderlib/wine/include/sql.h | 755 + .../Graphics/shaderlib/wine/include/sqlext.h | 1682 ++ .../Graphics/shaderlib/wine/include/sqltypes.h | 258 + .../Graphics/shaderlib/wine/include/srcrst.idl | 62 + .../shaderlib/wine/include/srrestoreptapi.h | 67 + .../Devices/Graphics/shaderlib/wine/include/sspi.h | 842 + .../Graphics/shaderlib/wine/include/stamp-h.in | 1 + .../Graphics/shaderlib/wine/include/stdole2.idl | 440 + .../Devices/Graphics/shaderlib/wine/include/sti.h | 190 + .../Graphics/shaderlib/wine/include/storage.h | 35 + .../Graphics/shaderlib/wine/include/strmif.idl | 40 + .../Graphics/shaderlib/wine/include/strsafe.h | 42 + .../wine/include/structuredquerycondition.idl | 61 + .../Graphics/shaderlib/wine/include/svrapi.h | 55 + .../Graphics/shaderlib/wine/include/t2embapi.h | 85 + .../Devices/Graphics/shaderlib/wine/include/tapi.h | 1077 ++ .../Graphics/shaderlib/wine/include/tchar.h | 277 + .../Graphics/shaderlib/wine/include/tcpmib.h | 202 + .../Graphics/shaderlib/wine/include/textserv.h | 378 + .../Graphics/shaderlib/wine/include/textstor.idl | 320 + .../Graphics/shaderlib/wine/include/tlhelp32.h | 193 + .../Graphics/shaderlib/wine/include/tlogstg.idl | 61 + .../Graphics/shaderlib/wine/include/tmschema.h | 1279 ++ .../Graphics/shaderlib/wine/include/tom.idl | 444 + .../Graphics/shaderlib/wine/include/traffic.h | 57 + .../Graphics/shaderlib/wine/include/transact.idl | 235 + .../Graphics/shaderlib/wine/include/twain.h | 1849 ++ .../Graphics/shaderlib/wine/include/txcoord.idl | 190 + .../Graphics/shaderlib/wine/include/txdtc.idl | 524 + .../Graphics/shaderlib/wine/include/udpmib.h | 95 + .../Graphics/shaderlib/wine/include/uiautomation.h | 30 + .../shaderlib/wine/include/uiautomationclient.idl | 158 + .../shaderlib/wine/include/uiautomationcore.idl | 100 + .../shaderlib/wine/include/uiautomationcoreapi.h | 58 + .../Graphics/shaderlib/wine/include/unknwn.h | 221 + .../Graphics/shaderlib/wine/include/unknwn.idl | 89 + .../Graphics/shaderlib/wine/include/urlhist.idl | 155 + .../Graphics/shaderlib/wine/include/urlmon.h | 5449 ++++++ .../Graphics/shaderlib/wine/include/urlmon.idl | 2172 +++ .../Graphics/shaderlib/wine/include/userenv.h | 116 + .../Graphics/shaderlib/wine/include/usp10.h | 304 + .../Graphics/shaderlib/wine/include/uuids.h | 289 + .../Graphics/shaderlib/wine/include/uxtheme.h | 217 + .../Graphics/shaderlib/wine/include/vdmdbg.h | 49 + .../Devices/Graphics/shaderlib/wine/include/ver.h | 37 + .../Graphics/shaderlib/wine/include/verrsrc.h | 182 + .../Devices/Graphics/shaderlib/wine/include/vfw.h | 1953 ++ .../Graphics/shaderlib/wine/include/vfwmsgs.h | 175 + .../Graphics/shaderlib/wine/include/vmr9.idl | 533 + .../Graphics/shaderlib/wine/include/vmrender.idl | 490 + .../Graphics/shaderlib/wine/include/vsstyle.h | 1748 ++ .../Graphics/shaderlib/wine/include/vssym32.h | 687 + .../Graphics/shaderlib/wine/include/wbemcli.idl | 671 + .../Graphics/shaderlib/wine/include/wbemdisp.idl | 1130 ++ .../Graphics/shaderlib/wine/include/wbemprov.idl | 37 + .../Graphics/shaderlib/wine/include/werapi.h | 199 + .../Graphics/shaderlib/wine/include/wfext.h | 42 + .../Devices/Graphics/shaderlib/wine/include/wia.h | 36 + .../Graphics/shaderlib/wine/include/wia_lh.idl | 137 + .../Graphics/shaderlib/wine/include/wia_xp.idl | 137 + .../Graphics/shaderlib/wine/include/winbase.h | 2825 +++ .../Graphics/shaderlib/wine/include/wincodec.idl | 1041 ++ .../shaderlib/wine/include/wincodecsdk.idl | 330 + .../Graphics/shaderlib/wine/include/wincon.h | 416 + .../Graphics/shaderlib/wine/include/wincred.h | 303 + .../Graphics/shaderlib/wine/include/wincrypt.h | 4589 +++++ .../Graphics/shaderlib/wine/include/windef.h | 425 + .../Graphics/shaderlib/wine/include/windns.h | 666 + .../Graphics/shaderlib/wine/include/windows.h | 116 + .../Graphics/shaderlib/wine/include/windowsx.h | 1448 ++ .../shaderlib/wine/include/wine/dcetypes.idl | 97 + .../Graphics/shaderlib/wine/include/wine/debug.h | 297 + .../Graphics/shaderlib/wine/include/wine/dplaysp.h | 375 + .../Graphics/shaderlib/wine/include/wine/epm.idl | 131 + .../shaderlib/wine/include/wine/exception.h | 282 + .../shaderlib/wine/include/wine/gdi_driver.h | 291 + .../Graphics/shaderlib/wine/include/wine/irot.idl | 106 + .../Graphics/shaderlib/wine/include/wine/itss.idl | 104 + .../Graphics/shaderlib/wine/include/wine/library.h | 208 + .../Graphics/shaderlib/wine/include/wine/list.h | 243 + .../shaderlib/wine/include/wine/mmsystem16.h | 822 + .../Graphics/shaderlib/wine/include/wine/mscvpdb.h | 2197 +++ .../Graphics/shaderlib/wine/include/wine/port.h | 484 + .../Graphics/shaderlib/wine/include/wine/rbtree.h | 351 + .../Graphics/shaderlib/wine/include/wine/rpcfc.h | 205 + .../Graphics/shaderlib/wine/include/wine/server.h | 151 + .../shaderlib/wine/include/wine/server_protocol.h | 5828 ++++++ .../shaderlib/wine/include/wine/strmbase.h | 669 + .../shaderlib/wine/include/wine/svcctl.idl | 380 + .../Graphics/shaderlib/wine/include/wine/test.h | 654 + .../Graphics/shaderlib/wine/include/wine/unicode.h | 320 + .../Graphics/shaderlib/wine/include/wine/wgl.h | 5081 +++++ .../shaderlib/wine/include/wine/wgl_driver.h | 2862 +++ .../Graphics/shaderlib/wine/include/wine/wglext.h | 943 + .../Graphics/shaderlib/wine/include/wine/winaspi.h | 152 + .../shaderlib/wine/include/wine/winbase16.h | 572 + .../shaderlib/wine/include/wine/windef16.h | 178 + .../shaderlib/wine/include/wine/wine_common_ver.rc | 129 + .../Graphics/shaderlib/wine/include/wine/wined3d.h | 9726 ++++++++++ .../shaderlib/wine/include/wine/winedxgi.idl | 79 + .../shaderlib/wine/include/wine/wingdi16.h | 629 + .../shaderlib/wine/include/wine/winnet16.h | 297 + .../shaderlib/wine/include/wine/winuser16.h | 966 + .../Graphics/shaderlib/wine/include/wine/wpp.h | 71 + .../Graphics/shaderlib/wine/include/winerror.h | 2952 +++ .../Graphics/shaderlib/wine/include/winevt.h | 141 + .../Graphics/shaderlib/wine/include/wingdi.h | 3809 ++++ .../Graphics/shaderlib/wine/include/winhttp.h | 593 + .../Graphics/shaderlib/wine/include/wininet.h | 1739 ++ .../Graphics/shaderlib/wine/include/winineti.h | 143 + .../Graphics/shaderlib/wine/include/winioctl.h | 480 + .../Graphics/shaderlib/wine/include/winldap.h | 653 + .../Graphics/shaderlib/wine/include/winnetwk.h | 416 + .../Graphics/shaderlib/wine/include/winnls.h | 896 + .../Graphics/shaderlib/wine/include/winnls32.h | 43 + .../Graphics/shaderlib/wine/include/winnt.h | 5525 ++++++ .../Graphics/shaderlib/wine/include/winnt.rh | 459 + .../Graphics/shaderlib/wine/include/winperf.h | 79 + .../Graphics/shaderlib/wine/include/winreg.h | 195 + .../Graphics/shaderlib/wine/include/winresrc.h | 54 + .../Graphics/shaderlib/wine/include/winsafer.h | 89 + .../Graphics/shaderlib/wine/include/winscard.h | 164 + .../Graphics/shaderlib/wine/include/winsmcrd.h | 46 + .../Graphics/shaderlib/wine/include/winsnmp.h | 64 + .../Graphics/shaderlib/wine/include/winsock.h | 1057 ++ .../Graphics/shaderlib/wine/include/winsock2.h | 768 + .../Graphics/shaderlib/wine/include/winspool.h | 1822 ++ .../Graphics/shaderlib/wine/include/winsvc.h | 425 + .../Graphics/shaderlib/wine/include/winsxs.idl | 207 + .../Graphics/shaderlib/wine/include/wintab.h | 797 + .../Graphics/shaderlib/wine/include/wintabx.h | 139 + .../Graphics/shaderlib/wine/include/winternl.h | 2708 +++ .../Graphics/shaderlib/wine/include/wintrust.h | 633 + .../Graphics/shaderlib/wine/include/winuser.h | 4043 ++++ .../Graphics/shaderlib/wine/include/winuser.rh | 1351 ++ .../Graphics/shaderlib/wine/include/winver.h | 74 + .../Graphics/shaderlib/wine/include/wmistr.h | 69 + .../Graphics/shaderlib/wine/include/wmiutils.idl | 245 + .../Graphics/shaderlib/wine/include/wmsbuffer.idl | 52 + .../Graphics/shaderlib/wine/include/wmsdkidl.idl | 395 + .../Graphics/shaderlib/wine/include/wnaspi32.h | 250 + .../Graphics/shaderlib/wine/include/wownt32.h | 167 + .../Graphics/shaderlib/wine/include/wpcapi.idl | 116 + .../Graphics/shaderlib/wine/include/ws2def.h | 122 + .../Graphics/shaderlib/wine/include/ws2ipdef.h | 293 + .../Graphics/shaderlib/wine/include/ws2spi.h | 63 + .../Graphics/shaderlib/wine/include/ws2tcpip.h | 217 + .../Graphics/shaderlib/wine/include/wshisotp.h | 39 + .../Graphics/shaderlib/wine/include/wsipx.h | 53 + .../Graphics/shaderlib/wine/include/wsnwlink.h | 58 + .../Graphics/shaderlib/wine/include/wtsapi32.h | 187 + .../Graphics/shaderlib/wine/include/wtypes.h | 767 + .../Graphics/shaderlib/wine/include/wtypes.idl | 848 + .../Graphics/shaderlib/wine/include/wuapi.idl | 1359 ++ .../Devices/Graphics/shaderlib/wine/include/xcmc.h | 359 + .../Graphics/shaderlib/wine/include/xinput.h | 248 + .../Graphics/shaderlib/wine/include/xmldom.h | 29 + .../Graphics/shaderlib/wine/include/xmldom.idl | 847 + .../Graphics/shaderlib/wine/include/xmldomdid.h | 214 + .../Graphics/shaderlib/wine/include/xmldso.idl | 77 + .../Graphics/shaderlib/wine/include/xmldsodid.h | 39 + .../Graphics/shaderlib/wine/include/xmllite.idl | 304 + .../Graphics/shaderlib/wine/include/zmouse.h | 55 + 652 files changed, 331453 insertions(+) create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/Makefile.in create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/accctrl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/access.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/aclapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/aclui.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/activaut.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/activdbg.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/activscp.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/adshlp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/advpub.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/af_irda.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/amaudio.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/amstream.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/amvideo.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/appcompatapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/appmgmt.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/asptlb.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/asynot.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/asysta.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/atlbase.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/atliface.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/atlwin.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/audevcod.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/audioclient.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/audiopolicy.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/audiosessiontypes.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/austream.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/aviriff.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/avrt.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/axcore.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/axextend.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/basetsd.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/basetyps.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/bcrypt.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/binres.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/bits.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/bits1_5.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/bitsmsg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cderr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cfgmgr32.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cguid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/chprst.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cierror.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/clusapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cmdbas.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cmdtxt.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/comcat.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/commctrl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/commctrl.rh create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/commdlg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/commoncontrols.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/compobj.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/config.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/config.h.in create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/config_linux.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/control.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cor.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cordebug.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/corerror.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/corhdr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cpl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/crtrow.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cryptdlg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cryptuiapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ctfutb.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ctxtcall.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/custcntl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/cvconst.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d10.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d10_1.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d10_1shader.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d10effect.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d10misc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d10shader.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d11.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d11sdklayers.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d11shader.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d8.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d8caps.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d8types.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d9.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d9caps.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3d9types.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dcaps.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dcommon.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dcompiler.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dhal.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3drm.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3drmdef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3drmobj.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3drmwin.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dtypes.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dvec.inl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9anim.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9core.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9effect.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9math.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9math.inl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9mesh.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9shader.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9shape.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9tex.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9xof.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dbccmd.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dbcses.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dbdsad.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dbghelp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dbinit.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dbprop.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dbs.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dbt.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dciddi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dciman.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dcommon.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dde.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dde.rh create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddeml.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/compstui.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/hidsdi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/imm.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/mountmgr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/ntddcdvd.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/ntddk.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/ntddser.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/ntddtape.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/usb.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/usb100.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/usb200.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/usbdlib.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/usbioctl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/usbiodef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/wdm.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/winddiui.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddk/winsplp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddraw.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddrawgdi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddrawi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ddstream.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/delayloadhandler.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/devenum.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/devguid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/devicetopology.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/devpkey.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/devpropdef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/difxapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/digitalv.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dimm.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dinput.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dinputd.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dispdib.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dispex.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dlgs.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dls1.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dls2.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmdls.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmerror.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmksctrl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmo.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmoreg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmort.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmplugin.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmusbuff.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmusicc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmusicf.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmusici.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dmusics.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/docobj.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/docobjectservice.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/downloadmgr.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dpaddr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dplay.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dplay8.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dplobby.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dplobby8.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dpnathlp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dsconf.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dsgetdc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dshow.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dsound.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dsrole.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dvdmedia.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dwmapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dwrite.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dwrite_1.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dxdiag.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dxerr8.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dxerr9.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dxfile.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dxgi.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dxgiformat.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dxgitype.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/dyngraph.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/endpointvolume.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/errorrep.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/errors.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/errrec.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/evcode.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/evntprov.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/evntrace.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/excpt.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/exdisp.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/exdispid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/fci.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/fdi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/fileapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/fltdefs.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/fusion.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gameux.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdiplus.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdipluscolor.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdipluscolormatrix.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdiplusenums.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdiplusflat.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdiplusgpstubs.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdiplusimaging.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdiplusinit.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdiplusmem.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdiplusmetaheader.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdipluspixelformats.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/gdiplustypes.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/guiddef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/hlguids.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/hlink.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/htiface.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/htiframe.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/htmlhelp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/http.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/httprequest.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/httprequestid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/i_cryptasn1tls.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/iads.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/icftypes.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/icm.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/icmpapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/idispids.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/iextag.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ifdef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ifmib.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/imagehlp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/imm.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/imnact.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/imnxport.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/in6addr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/inaddr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/indexsrv.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/initguid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/inputscope.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/intshcut.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ipexport.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/iphlpapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ipifcons.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ipmib.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/iprtrmib.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/iptypes.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/isguids.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/knownfolders.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ks.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ksguid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ksmedia.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lm.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmaccess.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmapibuf.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmat.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmbrowsr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmcons.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmerr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmjoin.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmmsg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmserver.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmshare.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmstats.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmuse.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmuseflg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lmwksta.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/loadperf.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/lzexpand.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mapicode.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mapidefs.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mapiform.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mapiguid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mapitags.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mapiutil.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mapival.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mapix.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mciavi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mcx.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mediaerr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mediaobj.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/metahost.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/midles.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mimeinfo.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mimeole.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/minmax.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mlang.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mmc.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mmddk.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mmdeviceapi.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mmreg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mmstream.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mmsystem.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mprapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mprerror.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msacm.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msacmdlg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msacmdrv.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mscat.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mscoree.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msctf.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msdadc.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msdaguid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msdasc.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mshtmcid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mshtmdid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mshtmhst.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mshtml.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msidefs.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msident.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msinkaut.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msiquery.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mssip.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mstask.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mstcpip.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/assert.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/conio.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/crtdbg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/crtdefs.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/ctype.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/direct.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/dirent.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/dos.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/eh.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/errno.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/fcntl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/float.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/io.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/limits.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/locale.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/malloc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/math.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/mbctype.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/mbstring.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/memory.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/process.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/search.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/setjmp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/share.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/signal.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/stddef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/stdio.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/stdlib.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/string.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/locking.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/stat.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/timeb.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/types.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/unistd.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/utime.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/time.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/unistd.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/wchar.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/wctype.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/mswsock.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msxml.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msxml.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msxml2.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msxml2did.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msxml6.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msxml6did.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/msxmldid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/nb30.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ndrtypes.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/netcon.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/netfw.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/nldef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/npapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/nspapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ntddcdrm.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ntddndis.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ntddscsi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ntddstor.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ntdsapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ntquery.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ntsecapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ntsecpkg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ntstatus.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/oaidl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/oaidl.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/objbase.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/objectarray.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/objidl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/objidl.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/objsafe.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/objsel.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ocidl.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ocmm.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/odbcinst.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ole2.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ole2ver.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/oleacc.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/oleauto.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/olectl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/oledb.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/oledberr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/oledlg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/oleidl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/oleidl.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/opnrst.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/optary.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/patchapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/pdh.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/pdhmsg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/perhist.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/pktdef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/poppack.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/powrprof.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/profinfo.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/propidl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/propidl.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/propkey.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/propkeydef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/propsys.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/propvarutil.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/prsht.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/psapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/pshpack1.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/pshpack2.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/pshpack4.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/pshpack8.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/pstore.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/qedit.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ras.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rasdlg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/raserror.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/reason.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/regstr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/restartmanager.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/richedit.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/richole.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rmxfguid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rmxftmpl.x create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/row.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rowchg.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rowpos.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rowpsc.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rpc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rpcasync.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rpcdce.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rpcdcep.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rpcndr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rpcnterr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rpcproxy.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rpcsal.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rstbas.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rstinf.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rstloc.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rstnot.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/rtutils.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/scarderr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/schannel.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/schemadef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/schnlsp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sddl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/secext.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/security.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sensapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sensevts.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/servprov.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/servprov.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sesprp.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/setupapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sfc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/shdeprecated.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/shdispid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/shellapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/shldisp.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/shlguid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/shlobj.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/shlwapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/shobjidl.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/shtypes.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sipbase.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/slerror.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/slpublic.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/snmp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/softpub.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sql.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sqlext.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sqltypes.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/srcrst.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/srrestoreptapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sspi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/stamp-h.in create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/stdole2.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/sti.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/storage.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/strmif.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/strsafe.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/structuredquerycondition.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/svrapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/t2embapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/tapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/tchar.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/tcpmib.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/textserv.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/textstor.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/tlhelp32.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/tlogstg.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/tmschema.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/tom.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/traffic.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/transact.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/twain.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/txcoord.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/txdtc.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/udpmib.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/uiautomation.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/uiautomationclient.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/uiautomationcore.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/uiautomationcoreapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/unknwn.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/unknwn.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/urlhist.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/urlmon.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/urlmon.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/userenv.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/usp10.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/uuids.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/uxtheme.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/vdmdbg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ver.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/verrsrc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/vfw.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/vfwmsgs.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/vmr9.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/vmrender.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/vsstyle.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/vssym32.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wbemcli.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wbemdisp.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wbemprov.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/werapi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wfext.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wia.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wia_lh.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wia_xp.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winbase.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wincodec.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wincodecsdk.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wincon.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wincred.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wincrypt.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/windef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/windns.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/windows.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/windowsx.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/dcetypes.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/debug.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/dplaysp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/epm.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/exception.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/gdi_driver.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/irot.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/itss.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/library.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/list.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/mmsystem16.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/mscvpdb.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/port.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/rbtree.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/rpcfc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/server.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/server_protocol.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/strmbase.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/svcctl.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/test.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/unicode.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/wgl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/wgl_driver.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/wglext.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/winaspi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/winbase16.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/windef16.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/wine_common_ver.rc create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/wined3d.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/winedxgi.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/wingdi16.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/winnet16.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/winuser16.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wine/wpp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winerror.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winevt.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wingdi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winhttp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wininet.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winineti.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winioctl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winldap.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winnetwk.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winnls.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winnls32.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winnt.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winnt.rh create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winperf.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winreg.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winresrc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winsafer.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winscard.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winsmcrd.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winsnmp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winsock.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winsock2.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winspool.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winsvc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winsxs.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wintab.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wintabx.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winternl.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wintrust.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winuser.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winuser.rh create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/winver.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wmistr.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wmiutils.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wmsbuffer.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wmsdkidl.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wnaspi32.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wownt32.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wpcapi.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ws2def.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ws2ipdef.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ws2spi.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/ws2tcpip.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wshisotp.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wsipx.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wsnwlink.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wtsapi32.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wtypes.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wtypes.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/wuapi.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/xcmc.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/xinput.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/xmldom.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/xmldom.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/xmldomdid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/xmldso.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/xmldsodid.h create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/xmllite.idl create mode 100644 src/VBox/Devices/Graphics/shaderlib/wine/include/zmouse.h (limited to 'src/VBox/Devices/Graphics/shaderlib/wine/include') diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/Makefile.in b/src/VBox/Devices/Graphics/shaderlib/wine/include/Makefile.in new file mode 100644 index 00000000..d11c0f0d --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/Makefile.in @@ -0,0 +1,669 @@ +PRIVATE_IDL_H_SRCS = \ + wine/winedxgi.idl + +PUBLIC_IDL_H_SRCS = \ + activaut.idl \ + activdbg.idl \ + activscp.idl \ + amstream.idl \ + amvideo.idl \ + asptlb.idl \ + atliface.idl \ + audioclient.idl \ + audiopolicy.idl \ + austream.idl \ + bits.idl \ + bits1_5.idl \ + comcat.idl \ + commoncontrols.idl \ + control.idl \ + cor.idl \ + cordebug.idl \ + ctfutb.idl \ + ctxtcall.idl \ + d3d10.idl \ + d3d10_1.idl \ + d3d11.idl \ + d3d11sdklayers.idl \ + d3dcommon.idl \ + ddstream.idl \ + devicetopology.idl \ + dimm.idl \ + dispex.idl \ + docobj.idl \ + docobjectservice.idl \ + downloadmgr.idl \ + dwrite.idl \ + dwrite_1.idl \ + dxgi.idl \ + endpointvolume.idl \ + exdisp.idl \ + fusion.idl \ + gameux.idl \ + hlink.idl \ + htiface.idl \ + htiframe.idl \ + httprequest.idl \ + iads.idl \ + icftypes.idl \ + iextag.idl \ + imnact.idl \ + imnxport.idl \ + indexsrv.idl \ + inputscope.idl \ + mediaobj.idl \ + metahost.idl \ + mimeinfo.idl \ + mimeole.idl \ + mlang.idl \ + mmc.idl \ + mmdeviceapi.idl \ + mmstream.idl \ + mscoree.idl \ + msctf.idl \ + msdadc.idl \ + msdasc.idl \ + mshtmhst.idl \ + mshtml.idl \ + msident.idl \ + msinkaut.idl \ + mstask.idl \ + msxml.idl \ + msxml2.idl \ + msxml6.idl \ + netcon.idl \ + netfw.idl \ + oaidl.idl \ + objectarray.idl \ + objidl.idl \ + objsafe.idl \ + ocidl.idl \ + ocmm.idl \ + oleacc.idl \ + oledb.idl \ + oleidl.idl \ + optary.idl \ + perhist.idl \ + propidl.idl \ + propsys.idl \ + pstore.idl \ + qedit.idl \ + richole.idl \ + sensevts.idl \ + servprov.idl \ + shdeprecated.idl \ + shldisp.idl \ + shobjidl.idl \ + shtypes.idl \ + strmif.idl \ + structuredquerycondition.idl \ + textstor.idl \ + tlogstg.idl \ + tom.idl \ + transact.idl \ + txcoord.idl \ + txdtc.idl \ + uiautomationclient.idl \ + uiautomationcore.idl \ + unknwn.idl \ + urlhist.idl \ + urlmon.idl \ + vmr9.idl \ + wbemcli.idl \ + wbemdisp.idl \ + wbemprov.idl \ + wia_lh.idl \ + wia_xp.idl \ + wincodec.idl \ + wincodecsdk.idl \ + wine/itss.idl \ + wine/svcctl.idl \ + winsxs.idl \ + wmiutils.idl \ + wmsbuffer.idl \ + wmsdkidl.idl \ + wpcapi.idl \ + wtypes.idl \ + wuapi.idl \ + xmllite.idl + +IDL_TLB_SRCS = \ + stdole2.idl + +XTEMPLATE_SRCS = \ + rmxftmpl.x + +SRCDIR_INCLUDES = \ + $(IDL_TLB_SRCS) \ + $(PUBLIC_IDL_H_SRCS) \ + $(XTEMPLATE_SRCS) \ + accctrl.h \ + access.idl \ + aclapi.h \ + aclui.h \ + adshlp.h \ + advpub.h \ + af_irda.h \ + amaudio.h \ + appcompatapi.h \ + appmgmt.h \ + asynot.idl \ + asysta.idl \ + atlbase.h \ + atlwin.h \ + audevcod.h \ + audiosessiontypes.h \ + aviriff.h \ + avrt.h \ + axcore.idl \ + axextend.idl \ + basetsd.h \ + basetyps.h \ + bcrypt.h \ + binres.idl \ + bitsmsg.h \ + cderr.h \ + cfgmgr32.h \ + cguid.h \ + chprst.idl \ + cierror.h \ + clusapi.h \ + cmdbas.idl \ + cmdtxt.idl \ + commctrl.h \ + commctrl.rh \ + commdlg.h \ + compobj.h \ + corerror.h \ + corhdr.h \ + cpl.h \ + crtrow.idl \ + cryptdlg.h \ + cryptuiapi.h \ + custcntl.h \ + cvconst.h \ + d3d.h \ + d3d10_1shader.h \ + d3d10effect.h \ + d3d10misc.h \ + d3d10shader.h \ + d3d11shader.h \ + d3d8.h \ + d3d8caps.h \ + d3d8types.h \ + d3d9.h \ + d3d9caps.h \ + d3d9types.h \ + d3dcaps.h \ + d3dcompiler.h \ + d3dhal.h \ + d3drm.h \ + d3drmdef.h \ + d3drmobj.h \ + d3drmwin.h \ + d3dtypes.h \ + d3dvec.inl \ + d3dx9.h \ + d3dx9anim.h \ + d3dx9core.h \ + d3dx9effect.h \ + d3dx9math.h \ + d3dx9math.inl \ + d3dx9mesh.h \ + d3dx9shader.h \ + d3dx9shape.h \ + d3dx9tex.h \ + d3dx9xof.h \ + dbccmd.idl \ + dbcses.idl \ + dbdsad.idl \ + dbghelp.h \ + dbinit.idl \ + dbprop.idl \ + dbs.idl \ + dbt.h \ + dciddi.h \ + dciman.h \ + dcommon.h \ + dde.h \ + dde.rh \ + ddeml.h \ + ddk/compstui.h \ + ddk/hidsdi.h \ + ddk/imm.h \ + ddk/mountmgr.h \ + ddk/ntddcdvd.h \ + ddk/ntddk.h \ + ddk/ntddser.h \ + ddk/ntddtape.h \ + ddk/usb.h \ + ddk/usb100.h \ + ddk/usb200.h \ + ddk/usbdlib.h \ + ddk/usbioctl.h \ + ddk/usbiodef.h \ + ddk/wdm.h \ + ddk/winddiui.h \ + ddk/winsplp.h \ + ddraw.h \ + ddrawgdi.h \ + ddrawi.h \ + delayloadhandler.h \ + devenum.idl \ + devguid.h \ + devpkey.h \ + devpropdef.h \ + difxapi.h \ + digitalv.h \ + dinput.h \ + dinputd.h \ + dispdib.h \ + dlgs.h \ + dls1.h \ + dls2.h \ + dmdls.h \ + dmerror.h \ + dmksctrl.h \ + dmo.h \ + dmoreg.h \ + dmort.h \ + dmplugin.h \ + dmusbuff.h \ + dmusicc.h \ + dmusicf.h \ + dmusici.h \ + dmusics.h \ + dpaddr.h \ + dplay.h \ + dplay8.h \ + dplobby.h \ + dplobby8.h \ + dpnathlp.h \ + dsconf.h \ + dsgetdc.h \ + dshow.h \ + dsound.h \ + dsrole.h \ + dvdmedia.h \ + dwmapi.h \ + dxdiag.h \ + dxerr8.h \ + dxerr9.h \ + dxfile.h \ + dxgiformat.h \ + dxgitype.h \ + dyngraph.idl \ + errorrep.h \ + errors.h \ + errrec.idl \ + evcode.h \ + evntprov.h \ + evntrace.h \ + excpt.h \ + exdispid.h \ + fci.h \ + fdi.h \ + fileapi.h \ + fltdefs.h \ + gdiplus.h \ + gdipluscolor.h \ + gdipluscolormatrix.h \ + gdiplusenums.h \ + gdiplusflat.h \ + gdiplusgpstubs.h \ + gdiplusimaging.h \ + gdiplusinit.h \ + gdiplusmem.h \ + gdiplusmetaheader.h \ + gdipluspixelformats.h \ + gdiplustypes.h \ + guiddef.h \ + hlguids.h \ + htmlhelp.h \ + http.h \ + httprequestid.h \ + i_cryptasn1tls.h \ + icm.h \ + icmpapi.h \ + idispids.h \ + ifdef.h \ + ifmib.h \ + imagehlp.h \ + imm.h \ + in6addr.h \ + inaddr.h \ + initguid.h \ + intshcut.h \ + ipexport.h \ + iphlpapi.h \ + ipifcons.h \ + ipmib.h \ + iprtrmib.h \ + iptypes.h \ + isguids.h \ + knownfolders.h \ + ks.h \ + ksguid.h \ + ksmedia.h \ + lm.h \ + lmaccess.h \ + lmapibuf.h \ + lmat.h \ + lmbrowsr.h \ + lmcons.h \ + lmerr.h \ + lmjoin.h \ + lmmsg.h \ + lmserver.h \ + lmshare.h \ + lmstats.h \ + lmuse.h \ + lmuseflg.h \ + lmwksta.h \ + loadperf.h \ + lzexpand.h \ + mapi.h \ + mapicode.h \ + mapidefs.h \ + mapiform.h \ + mapiguid.h \ + mapitags.h \ + mapiutil.h \ + mapival.h \ + mapix.h \ + mciavi.h \ + mcx.h \ + mediaerr.h \ + midles.h \ + minmax.h \ + mmddk.h \ + mmreg.h \ + mmsystem.h \ + mprapi.h \ + mprerror.h \ + msacm.h \ + msacmdlg.h \ + msacmdrv.h \ + mscat.h \ + msdaguid.h \ + mshtmcid.h \ + mshtmdid.h \ + msi.h \ + msidefs.h \ + msiquery.h \ + mssip.h \ + mstcpip.h \ + msvcrt/assert.h \ + msvcrt/conio.h \ + msvcrt/crtdbg.h \ + msvcrt/crtdefs.h \ + msvcrt/ctype.h \ + msvcrt/direct.h \ + msvcrt/dirent.h \ + msvcrt/dos.h \ + msvcrt/eh.h \ + msvcrt/errno.h \ + msvcrt/fcntl.h \ + msvcrt/float.h \ + msvcrt/io.h \ + msvcrt/limits.h \ + msvcrt/locale.h \ + msvcrt/malloc.h \ + msvcrt/math.h \ + msvcrt/mbctype.h \ + msvcrt/mbstring.h \ + msvcrt/memory.h \ + msvcrt/process.h \ + msvcrt/search.h \ + msvcrt/setjmp.h \ + msvcrt/share.h \ + msvcrt/signal.h \ + msvcrt/stddef.h \ + msvcrt/stdio.h \ + msvcrt/stdlib.h \ + msvcrt/string.h \ + msvcrt/sys/locking.h \ + msvcrt/sys/stat.h \ + msvcrt/sys/timeb.h \ + msvcrt/sys/types.h \ + msvcrt/sys/unistd.h \ + msvcrt/sys/utime.h \ + msvcrt/time.h \ + msvcrt/unistd.h \ + msvcrt/wchar.h \ + msvcrt/wctype.h \ + mswsock.h \ + msxml2did.h \ + msxml6did.h \ + msxmldid.h \ + nb30.h \ + ndrtypes.h \ + nldef.h \ + npapi.h \ + nspapi.h \ + ntddcdrm.h \ + ntddndis.h \ + ntddscsi.h \ + ntddstor.h \ + ntdsapi.h \ + ntquery.h \ + ntsecapi.h \ + ntsecpkg.h \ + ntstatus.h \ + objbase.h \ + objsel.h \ + odbcinst.h \ + ole2.h \ + ole2ver.h \ + oleauto.h \ + olectl.h \ + oledberr.h \ + oledlg.h \ + opnrst.idl \ + patchapi.h \ + pdh.h \ + pdhmsg.h \ + pktdef.h \ + poppack.h \ + powrprof.h \ + profinfo.h \ + propkey.h \ + propkeydef.h \ + propvarutil.h \ + prsht.h \ + psapi.h \ + pshpack1.h \ + pshpack2.h \ + pshpack4.h \ + pshpack8.h \ + ras.h \ + rasdlg.h \ + raserror.h \ + reason.h \ + regstr.h \ + restartmanager.h \ + richedit.h \ + rmxfguid.h \ + row.idl \ + rowchg.idl \ + rowpos.idl \ + rowpsc.idl \ + rpc.h \ + rpcasync.h \ + rpcdce.h \ + rpcdcep.h \ + rpcndr.h \ + rpcnterr.h \ + rpcproxy.h \ + rpcsal.h \ + rstbas.idl \ + rstinf.idl \ + rstloc.idl \ + rstnot.idl \ + rtutils.h \ + scarderr.h \ + schannel.h \ + schemadef.h \ + schnlsp.h \ + sddl.h \ + secext.h \ + security.h \ + sensapi.h \ + sesprp.idl \ + setupapi.h \ + sfc.h \ + shdispid.h \ + shellapi.h \ + shlguid.h \ + shlobj.h \ + shlwapi.h \ + sipbase.h \ + slerror.h \ + slpublic.h \ + snmp.h \ + softpub.h \ + sql.h \ + sqlext.h \ + sqltypes.h \ + srcrst.idl \ + srrestoreptapi.h \ + sspi.h \ + sti.h \ + storage.h \ + strsafe.h \ + svrapi.h \ + t2embapi.h \ + tapi.h \ + tchar.h \ + tcpmib.h \ + textserv.h \ + tlhelp32.h \ + tmschema.h \ + traffic.h \ + twain.h \ + udpmib.h \ + uiautomation.h \ + uiautomationcoreapi.h \ + userenv.h \ + usp10.h \ + uuids.h \ + uxtheme.h \ + vdmdbg.h \ + ver.h \ + verrsrc.h \ + vfw.h \ + vfwmsgs.h \ + vmrender.idl \ + vsstyle.h \ + vssym32.h \ + werapi.h \ + wfext.h \ + wia.h \ + winbase.h \ + wincon.h \ + wincred.h \ + wincrypt.h \ + windef.h \ + windns.h \ + windows.h \ + windowsx.h \ + wine/debug.h \ + wine/exception.h \ + wine/library.h \ + wine/unicode.h \ + winerror.h \ + winevt.h \ + wingdi.h \ + winhttp.h \ + wininet.h \ + winineti.h \ + winioctl.h \ + winldap.h \ + winnetwk.h \ + winnls.h \ + winnls32.h \ + winnt.h \ + winnt.rh \ + winperf.h \ + winreg.h \ + winresrc.h \ + winsafer.h \ + winscard.h \ + winsmcrd.h \ + winsnmp.h \ + winsock.h \ + winsock2.h \ + winspool.h \ + winsvc.h \ + wintab.h \ + wintabx.h \ + winternl.h \ + wintrust.h \ + winuser.h \ + winuser.rh \ + winver.h \ + wmistr.h \ + wnaspi32.h \ + wownt32.h \ + ws2def.h \ + ws2ipdef.h \ + ws2spi.h \ + ws2tcpip.h \ + wshisotp.h \ + wsipx.h \ + wsnwlink.h \ + wtsapi32.h \ + xcmc.h \ + xinput.h \ + xmldom.h \ + xmldom.idl \ + xmldomdid.h \ + xmldso.idl \ + xmldsodid.h \ + zmouse.h + +EXTRASUBDIRS = \ + ddk \ + msvcrt \ + msvcrt/sys \ + wine + +INSTALLDIRS = \ + $(DESTDIR)$(includedir)/windows/ddk \ + $(DESTDIR)$(includedir)/windows \ + $(DESTDIR)$(includedir)/msvcrt/sys \ + $(DESTDIR)$(includedir)/msvcrt \ + $(DESTDIR)$(includedir) + +IDL_H_SRCS = $(PUBLIC_IDL_H_SRCS) $(PRIVATE_IDL_H_SRCS) + +@MAKE_RULES@ + +OBJDIR_INCLUDES = $(PUBLIC_IDL_H_SRCS:.idl=.h) $(XTEMPLATE_SRCS:.x=.h) + +all: $(IDL_H_SRCS:.idl=.h) $(IDL_TLB_SRCS:.idl=.tlb) $(XTEMPLATE_SRCS:.x=.h) + +rmxftmpl.h: rmxftmpl.x $(MAKEXFTMPL) + $(MAKEXFTMPL) -i D3DRM_XTEMPLATES -s D3DRM_XTEMPLATE_BYTES -o $@ $(srcdir)/rmxftmpl.x + +install install-dev:: $(OBJDIR_INCLUDES) $(INSTALLDIRS) + for f in $(SRCDIR_INCLUDES); do case $$f in \ + wine/*) $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(includedir)/`expr $$f : 'wine/\(.*\)'` ;; \ + msvcrt/*) $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(includedir)/$$f ;; \ + *) $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(includedir)/windows/$$f ;; \ + esac; done + for f in $(OBJDIR_INCLUDES); do case $$f in \ + wine/*) $(INSTALL_DATA) $$f $(DESTDIR)$(includedir)/`expr $$f : 'wine/\(.*\)'` ;; \ + msvcrt/*) $(INSTALL_DATA) $$f $(DESTDIR)$(includedir)/$$f ;; \ + *) $(INSTALL_DATA) $$f $(DESTDIR)$(includedir)/windows/$$f ;; \ + esac; done + +# Don't just do a rm -rf on $(includedir) -- don't want to wipe out +# anything extra the user may have put there. +uninstall:: + for f in $(SRCDIR_INCLUDES) $(OBJDIR_INCLUDES); do case $$f in \ + wine/*) $(RM) $(DESTDIR)$(includedir)/`expr $$f : 'wine/\(.*\)'` ;; \ + msvcrt/*) $(RM) $(DESTDIR)$(includedir)/$$f ;; \ + *) $(RM) $(DESTDIR)$(includedir)/windows/$$f ;; \ + esac; done + -rmdir $(INSTALLDIRS) diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/accctrl.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/accctrl.h new file mode 100644 index 00000000..e361f219 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/accctrl.h @@ -0,0 +1,460 @@ +/* + * Copyright (C) 2002 Alexandre Julliard + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_ACCCTRL_H +#define __WINE_ACCCTRL_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum _SE_OBJECT_TYPE +{ + SE_UNKNOWN_OBJECT_TYPE = 0, + SE_FILE_OBJECT, + SE_SERVICE, + SE_PRINTER, + SE_REGISTRY_KEY, + SE_LMSHARE, + SE_KERNEL_OBJECT, + SE_WINDOW_OBJECT, + SE_DS_OBJECT, + SE_DS_OBJECT_ALL, + SE_PROVIDER_DEFINED_OBJECT, + SE_WMIGUID_OBJECT, + SE_REGISTRY_WOW64_32KEY +} SE_OBJECT_TYPE; + +typedef enum _TRUSTEE_TYPE +{ + TRUSTEE_IS_UNKNOWN, + TRUSTEE_IS_USER, + TRUSTEE_IS_GROUP, + TRUSTEE_IS_DOMAIN, + TRUSTEE_IS_ALIAS, + TRUSTEE_IS_WELL_KNOWN_GROUP, + TRUSTEE_IS_DELETED, + TRUSTEE_IS_INVALID, + TRUSTEE_IS_COMPUTER +} TRUSTEE_TYPE; + +typedef enum _TRUSTEE_FORM +{ + TRUSTEE_IS_SID, + TRUSTEE_IS_NAME, + TRUSTEE_BAD_FORM, + TRUSTEE_IS_OBJECTS_AND_SID, + TRUSTEE_IS_OBJECTS_AND_NAME +} TRUSTEE_FORM; + +typedef enum _MULTIPLE_TRUSTEE_OPERATION +{ + NO_MULTIPLE_TRUSTEE, + TRUSTEE_IS_IMPERSONATE, +} MULTIPLE_TRUSTEE_OPERATION; + +typedef struct _OBJECTS_AND_SID +{ + DWORD ObjectsPresent; + GUID ObjectTypeGuid; + GUID InheritedObjectTypeGuid; + SID *pSid; +} OBJECTS_AND_SID, *POBJECTS_AND_SID; + +typedef struct _OBJECTS_AND_NAME_A +{ + DWORD ObjectsPresent; + SE_OBJECT_TYPE ObjectType; + LPSTR ObjectTypeName; + LPSTR InheritedObjectTypeName; + LPSTR ptstrName; +} OBJECTS_AND_NAME_A, *POBJECTS_AND_NAME_A; + +typedef struct _OBJECTS_AND_NAME_W +{ + DWORD ObjectsPresent; + SE_OBJECT_TYPE ObjectType; + LPWSTR ObjectTypeName; + LPWSTR InheritedObjectTypeName; + LPWSTR ptstrName; +} OBJECTS_AND_NAME_W, *POBJECTS_AND_NAME_W; + +DECL_WINELIB_TYPE_AW(OBJECTS_AND_NAME_) +DECL_WINELIB_TYPE_AW(POBJECTS_AND_NAME_) + +typedef struct _TRUSTEE_A +{ + struct _TRUSTEE_A *pMultipleTrustee; + MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation; + TRUSTEE_FORM TrusteeForm; + TRUSTEE_TYPE TrusteeType; + LPSTR ptstrName; +} TRUSTEE_A, *PTRUSTEE_A, TRUSTEEA, *PTRUSTEEA; + +typedef struct _TRUSTEE_W +{ + struct _TRUSTEE_W *pMultipleTrustee; + MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation; + TRUSTEE_FORM TrusteeForm; + TRUSTEE_TYPE TrusteeType; + LPWSTR ptstrName; +} TRUSTEE_W, *PTRUSTEE_W, TRUSTEEW, *PTRUSTEEW; + +DECL_WINELIB_TYPE_AW(TRUSTEE_) +DECL_WINELIB_TYPE_AW(PTRUSTEE_) +DECL_WINELIB_TYPE_AW(TRUSTEE) +DECL_WINELIB_TYPE_AW(PTRUSTEE) + +typedef enum _ACCESS_MODE +{ + NOT_USED_ACCESS = 0, + GRANT_ACCESS, + SET_ACCESS, + DENY_ACCESS, + REVOKE_ACCESS, + SET_AUDIT_SUCCESS, + SET_AUDIT_FAILURE +} ACCESS_MODE; + +#define NO_INHERITANCE 0x0 +#define SUB_OBJECTS_ONLY_INHERIT 0x1 +#define SUB_CONTAINERS_ONLY_INHERIT 0x2 +#define SUB_CONTAINERS_AND_OBJECTS_INHERIT 0x3 +#define INHERIT_NO_PROPAGATE 0x4 +#define INHERIT_ONLY 0x8 +#define INHERITED_ACCESS_ENTRY 0x10 +#define INHERITED_PARENT 0x10000000 +#define INHERITED_GRANDPARENT 0x20000000 + +typedef struct _EXPLICIT_ACCESS_A +{ + DWORD grfAccessPermissions; + ACCESS_MODE grfAccessMode; + DWORD grfInheritance; + TRUSTEE_A Trustee; +} EXPLICIT_ACCESS_A, *PEXPLICIT_ACCESS_A, EXPLICIT_ACCESSA, *PEXPLICIT_ACCESSA; + +typedef struct _EXPLICIT_ACCESS_W +{ + DWORD grfAccessPermissions; + ACCESS_MODE grfAccessMode; + DWORD grfInheritance; + TRUSTEE_W Trustee; +} EXPLICIT_ACCESS_W, *PEXPLICIT_ACCESS_W, EXPLICIT_ACCESSW, *PEXPLICIT_ACCESSW; + +DECL_WINELIB_TYPE_AW(EXPLICIT_ACCESS_) +DECL_WINELIB_TYPE_AW(PEXPLICIT_ACCESS_) +DECL_WINELIB_TYPE_AW(EXPLICIT_ACCESS) +DECL_WINELIB_TYPE_AW(PEXPLICIT_ACCESS) + +typedef ULONG ACCESS_RIGHTS, *PACCESS_RIGHTS; +typedef ULONG INHERIT_FLAGS, *PINHERIT_FLAGS; + +typedef struct _ACTRL_ACCESS_ENTRYA +{ + TRUSTEE_A Trustee; + ULONG fAccessFlags; + ACCESS_RIGHTS Access; + ACCESS_RIGHTS ProvSpecificAccess; + INHERIT_FLAGS Inheritance; + LPSTR lpInheritProperty; +} ACTRL_ACCESS_ENTRYA, *PACTRL_ACCESS_ENTRYA; + +typedef struct _ACTRL_ACCESS_ENTRYW +{ + TRUSTEE_W Trustee; + ULONG fAccessFlags; + ACCESS_RIGHTS Access; + ACCESS_RIGHTS ProvSpecificAccess; + INHERIT_FLAGS Inheritance; + LPWSTR lpInheritProperty; +} ACTRL_ACCESS_ENTRYW, *PACTRL_ACCESS_ENTRYW; + +DECL_WINELIB_TYPE_AW(ACTRL_ACCESS_ENTRY) +DECL_WINELIB_TYPE_AW(PACTRL_ACCESS_ENTRY) + + +typedef struct _ACTRL_ACCESS_ENTRY_LISTA +{ + ULONG cEntries; + ACTRL_ACCESS_ENTRYA *pAccessList; +} ACTRL_ACCESS_ENTRY_LISTA, *PACTRL_ACCESS_ENTRY_LISTA; + +typedef struct _ACTRL_ACCESS_ENTRY_LISTW +{ + ULONG cEntries; + ACTRL_ACCESS_ENTRYW *pAccessList; +} ACTRL_ACCESS_ENTRY_LISTW, *PACTRL_ACCESS_ENTRY_LISTW; + +DECL_WINELIB_TYPE_AW(ACTRL_ACCESS_ENTRY_LIST) +DECL_WINELIB_TYPE_AW(PACTRL_ACCESS_ENTRY_LIST) + +typedef struct _ACTRL_PROPERTY_ENTRYA +{ + LPSTR lpProperty; + PACTRL_ACCESS_ENTRY_LISTA pAccessEntryList; + ULONG fListFlags; +} ACTRL_PROPERTY_ENTRYA, *PACTRL_PROPERTY_ENTRYA; + +typedef struct _ACTRL_PROPERTY_ENTRYW +{ + LPWSTR lpProperty; + PACTRL_ACCESS_ENTRY_LISTW pAccessEntryList; + ULONG fListFlags; +} ACTRL_PROPERTY_ENTRYW, *PACTRL_PROPERTY_ENTRYW; + +DECL_WINELIB_TYPE_AW(ACTRL_PROPERTY_ENTRY) +DECL_WINELIB_TYPE_AW(PACTRL_PROPERTY_ENTRY) + +typedef struct _ACTRL_ALISTA +{ + ULONG cEntries; + PACTRL_PROPERTY_ENTRYA pPropertyAccessList; +} ACTRL_ACCESSA, *PACTRL_ACCESSA, ACTRL_AUDITA, *PACTRL_AUDITA; + +typedef struct _ACTRL_ALISTW +{ + ULONG cEntries; + PACTRL_PROPERTY_ENTRYW pPropertyAccessList; +} ACTRL_ACCESSW, *PACTRL_ACCESSW, ACTRL_AUDITW, *PACTRL_AUDITW; + +DECL_WINELIB_TYPE_AW(ACTRL_ACCESS) +DECL_WINELIB_TYPE_AW(PACTRL_ACCESS) +DECL_WINELIB_TYPE_AW(ACTRL_AUDIT) +DECL_WINELIB_TYPE_AW(PACTRL_AUDIT) + +#define TRUSTEE_ACCESS_ALLOWED 0x00000001 +#define TRUSTEE_ACCESS_READ 0x00000002 +#define TRUSTEE_ACCESS_WRITE 0x00000004 + +#define TRUSTEE_ACCESS_EXPLICIT 0x00000001 +#define TRUSTEE_ACCESS_READ_WRITE (TRUSTEE_ACCESS_READ|TRUSTEE_ACCESS_WRITE) +#define TRUSTEE_ACCESS_ALL 0xFFFFFFFF + +typedef struct _TRUSTEE_ACCESSA +{ + LPSTR lpProperty; + ACCESS_RIGHTS Access; + ULONG fAccessFlags; + ULONG fReturnedAccess; +} TRUSTEE_ACCESSA, *PTRUSTEE_ACCESSA; + +typedef struct _TRUSTEE_ACCESSW +{ + LPWSTR lpProperty; + ACCESS_RIGHTS Access; + ULONG fAccessFlags; + ULONG fReturnedAccess; +} TRUSTEE_ACCESSW, *PTRUSTEE_ACCESSW; + +DECL_WINELIB_TYPE_AW(TRUSTEE_ACCESS) +DECL_WINELIB_TYPE_AW(PTRUSTEE_ACCESS) + +#define ACTRL_RESERVED 0x00000000 +#define ACTRL_PERM_1 0x00000001 +#define ACTRL_PERM_2 0x00000002 +#define ACTRL_PERM_3 0x00000004 +#define ACTRL_PERM_4 0x00000008 +#define ACTRL_PERM_5 0x00000010 +#define ACTRL_PERM_6 0x00000020 +#define ACTRL_PERM_7 0x00000040 +#define ACTRL_PERM_8 0x00000080 +#define ACTRL_PERM_9 0x00000100 +#define ACTRL_PERM_10 0x00000200 +#define ACTRL_PERM_11 0x00000400 +#define ACTRL_PERM_12 0x00000800 +#define ACTRL_PERM_13 0x00001000 +#define ACTRL_PERM_14 0x00002000 +#define ACTRL_PERM_15 0x00004000 +#define ACTRL_PERM_16 0x00008000 +#define ACTRL_PERM_17 0x00010000 +#define ACTRL_PERM_18 0x00020000 +#define ACTRL_PERM_19 0x00040000 +#define ACTRL_PERM_20 0x00080000 + +#define ACTRL_ACCESS_ALLOWED 0x00000001 +#define ACTRL_ACCESS_DENIED 0x00000002 +#define ACTRL_AUDIT_SUCCESS 0x00000004 +#define ACTRL_AUDIT_FAILURE 0x00000008 + +#define ACTRL_ACCESS_PROTECTED 0x00000001 + +#define ACTRL_SYSTEM_ACCESS 0x04000000 +#define ACTRL_DELETE 0x08000000 +#define ACTRL_READ_CONTROL 0x10000000 +#define ACTRL_CHANGE_ACCESS 0x20000000 +#define ACTRL_CHANGE_OWNER 0x40000000 +#define ACTRL_SYNCHRONIZE 0x80000000 +#define ACTRL_STD_RIGHTS_ALL 0xf8000000 +#define ACTRL_STD_RIGHT_REQUIRED (ACTRL_STD_RIGHTS_ALL & ~ACTRL_SYNCHRONIZE) + +#define ACTRL_DS_OPEN ACTRL_RESERVED +#define ACTRL_DS_CREATE_CHILD ACTRL_PERM_1 +#define ACTRL_DS_DELETE_CHILD ACTRL_PERM_2 +#define ACTRL_DS_LIST ACTRL_PERM_3 +#define ACTRL_DS_SELF ACTRL_PERM_4 +#define ACTRL_DS_READ_PROP ACTRL_PERM_5 +#define ACTRL_DS_WRITE_PROP ACTRL_PERM_6 +#define ACTRL_DS_DELETE_TREE ACTRL_PERM_7 +#define ACTRL_DS_LIST_OBJECT ACTRL_PERM_8 +#define ACTRL_DS_CONTROL_ACCESS ACTRL_PERM_9 + +#define ACTRL_FILE_READ ACTRL_PERM_1 +#define ACTRL_FILE_WRITE ACTRL_PERM_2 +#define ACTRL_FILE_APPEND ACTRL_PERM_3 +#define ACTRL_FILE_READ_PROP ACTRL_PERM_4 +#define ACTRL_FILE_WRITE_PROP ACTRL_PERM_5 +#define ACTRL_FILE_EXECUTE ACTRL_PERM_6 +#define ACTRL_FILE_READ_ATTRIB ACTRL_PERM_8 +#define ACTRL_FILE_WRITE_ATTRIB ACTRL_PERM_9 +#define ACTRL_FILE_CREATE_PIPE ACTRL_PERM_10 +#define ACTRL_DIR_LIST ACTRL_PERM_1 +#define ACTRL_DIR_CREATE_OBJECT ACTRL_PERM_2 +#define ACTRL_DIR_CREATE_CHILD ACTRL_PERM_3 +#define ACTRL_DIR_DELETE_CHILD ACTRL_PERM_7 +#define ACTRL_DIR_TRAVERSE ACTRL_PERM_6 +#define ACTRL_KERNEL_TERMINATE ACTRL_PERM_1 +#define ACTRL_KERNEL_THREAD ACTRL_PERM_2 +#define ACTRL_KERNEL_VM ACTRL_PERM_3 +#define ACTRL_KERNEL_VM_READ ACTRL_PERM_4 +#define ACTRL_KERNEL_VM_WRITE ACTRL_PERM_5 +#define ACTRL_KERNEL_DUP_HANDLE ACTRL_PERM_6 +#define ACTRL_KERNEL_PROCESS ACTRL_PERM_7 +#define ACTRL_KERNEL_SET_INFO ACTRL_PERM_8 +#define ACTRL_KERNEL_GET_INFO ACTRL_PERM_9 +#define ACTRL_KERNEL_CONTROL ACTRL_PERM_10 +#define ACTRL_KERNEL_ALERT ACTRL_PERM_11 +#define ACTRL_KERNEL_GET_CONTEXT ACTRL_PERM_12 +#define ACTRL_KERNEL_SET_CONTEXT ACTRL_PERM_13 +#define ACTRL_KERNEL_TOKEN ACTRL_PERM_14 +#define ACTRL_KERNEL_IMPERSONATE ACTRL_PERM_15 +#define ACTRL_KERNEL_DIMPERSONATE ACTRL_PERM_16 +#define ACTRL_PRINT_SADMIN ACTRL_PERM_1 +#define ACTRL_PRINT_SLIST ACTRL_PERM_2 +#define ACTRL_PRINT_PADMIN ACTRL_PERM_3 +#define ACTRL_PRINT_PUSE ACTRL_PERM_4 +#define ACTRL_PRINT_JADMIN ACTRL_PERM_5 +#define ACTRL_SVC_GET_INFO ACTRL_PERM_1 +#define ACTRL_SVC_SET_INFO ACTRL_PERM_2 +#define ACTRL_SVC_STATUS ACTRL_PERM_3 +#define ACTRL_SVC_LIST ACTRL_PERM_4 +#define ACTRL_SVC_START ACTRL_PERM_5 +#define ACTRL_SVC_STOP ACTRL_PERM_6 +#define ACTRL_SVC_PAUSE ACTRL_PERM_7 +#define ACTRL_SVC_INTERROGATE ACTRL_PERM_8 +#define ACTRL_SVC_UCONTROL ACTRL_PERM_9 +#define ACTRL_REG_QUERY ACTRL_PERM_1 +#define ACTRL_REG_SET ACTRL_PERM_2 +#define ACTRL_REG_CREATE_CHILD ACTRL_PERM_3 +#define ACTRL_REG_LIST ACTRL_PERM_4 +#define ACTRL_REG_NOTIFY ACTRL_PERM_5 +#define ACTRL_REG_LINK ACTRL_PERM_6 +#define ACTRL_WIN_CLIPBRD ACTRL_PERM_1 +#define ACTRL_WIN_GLOBAL_ATOMS ACTRL_PERM_2 +#define ACTRL_WIN_CREATE ACTRL_PERM_3 +#define ACTRL_WIN_LIST_DESK ACTRL_PERM_4 +#define ACTRL_WIN_LIST ACTRL_PERM_5 +#define ACTRL_WIN_READ_ATTRIBS ACTRL_PERM_6 +#define ACTRL_WIN_WRITE_ATTRIBS ACTRL_PERM_7 +#define ACTRL_WIN_SCREEN ACTRL_PERM_8 +#define ACTRL_WIN_EXIT ACTRL_PERM_9 + +#define ACTRL_ACCESS_NO_OPTIONS 0x00000000 +#define ACTRL_ACCESS_SUPPORTS_OBJECT_ENTRIES 0x00000001 + +typedef struct _ACTRL_OVERLAPPED +{ + union { + PVOID Provider; + ULONG Reserved1; + } DUMMYUNIONNAME; + ULONG Reserved2; + HANDLE hEvent; +} ACTRL_OVERLAPPED, *PACTRL_OVERLAPPED; + +typedef struct _ACTRL_ACCESS_INFOA +{ + ULONG fAccessPermission; + LPSTR lpAccessPermissionName; +} ACTRL_ACCESS_INFOA, *PACTRL_ACCESS_INFOA; + +typedef struct _ACTRL_ACCESS_INFOW +{ + ULONG fAccessPermission; + LPWSTR lpAccessPermissionName; +} ACTRL_ACCESS_INFOW, *PACTRL_ACCESS_INFOW; + +DECL_WINELIB_TYPE_AW(ACTRL_ACCESS_INFO) +DECL_WINELIB_TYPE_AW(PACTRL_ACCESS_INFO) + +typedef struct _ACTRL_CONTROL_INFOA +{ + LPSTR lpControlId; + LPSTR lpControlName; +} ACTRL_CONTROL_INFOA, *PACTRL_CONTROL_INFOA; + +typedef struct _ACTRL_CONTROL_INFOW +{ + LPWSTR lpControlId; + LPWSTR lpControlName; +} ACTRL_CONTROL_INFOW, *PACTRL_CONTROL_INFOW; + +DECL_WINELIB_TYPE_AW(ACTRL_CONTROL_INFO) +DECL_WINELIB_TYPE_AW(PACTRL_CONTROL_INFO) + +typedef enum _PROGRESS_INVOKE_SETTING { + ProgressInvokeNever = 1, + ProgressInvokeEveryObject, + ProgressInvokeOnError, + ProgressCancelOperation, + ProgressRetryOperation +} PROG_INVOKE_SETTING, *PPROG_INVOKE_SETTING; + +typedef struct _INHERITED_FROMA +{ + LONG GenerationGap; + LPSTR AncestorName; +} INHERITED_FROMA, *PINHERITED_FROMA; + +typedef struct _INHERITED_FROMW +{ + LONG GenerationGap; + LPWSTR AncestorName; +} INHERITED_FROMW, *PINHERITED_FROMW; + +DECL_WINELIB_TYPE_AW(INHERITED_FROM) +DECL_WINELIB_TYPE_AW(PINHERITED_FROM) + +#define AccFree LocalFree + +#ifdef __cplusplus +} +#endif + +#endif /* __WINE_ACCCTRL_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/access.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/access.idl new file mode 100644 index 00000000..5c32bd34 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/access.idl @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2009 Huw Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +[ + object, + uuid(0c733a8c-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface IAccessor : IUnknown +{ + + typedef DWORD DBACCESSORFLAGS; + + typedef DWORD DBBINDSTATUS; + + [local] + HRESULT AddRefAccessor([in] HACCESSOR hAccessor, + [in, out, unique, annotation("__out_opt")] DBREFCOUNT *pcRefCount); + + [call_as(AddRefAccessor)] + HRESULT RemoteAddRefAccessor([in] HACCESSOR hAccessor, + [in, out, unique, annotation("__out_opt")] DBREFCOUNT *pcRefCount, + [out] IErrorInfo **ppErrorInfoRem); + + [local] + HRESULT CreateAccessor([in] DBACCESSORFLAGS dwAccessorFlags, + [in] DBCOUNTITEM cBindings, + [in, size_is(cBindings), annotation("__in_ecount(cBindings)")] const DBBINDING rgBindings[], + [in] DBLENGTH cbRowSize, + [out, annotation("__out")] HACCESSOR *phAccessor, + [out, size_is(cBindings), annotation("__out_ecount_opt(cBindings)")] DBBINDSTATUS rgStatus[]); + + [call_as(CreateAccessor)] + HRESULT RemoteCreateAccessor([in] DBACCESSORFLAGS dwAccessorFlags, + [in] DBCOUNTITEM cBindings, + [in, unique, size_is((ULONG)cBindings)] DBBINDING *rgBindings, + [in] DBLENGTH cbRowSize, + [out] HACCESSOR *phAccessor, + [in, out, unique, size_is((ULONG)cBindings)] DBBINDSTATUS *rgStatus, + [out] IErrorInfo **ppErrorInfoRem); + + [local] + HRESULT GetBindings([in] HACCESSOR hAccessor, + [out, annotation("__out")] DBACCESSORFLAGS *pdwAccessorFlags, + [in, out, annotation("__out_opt")] DBCOUNTITEM *pcBindings, + [out, size_is(,*pcBindings), annotation("__deref_out_ecount_opt(*pcBindings)")] DBBINDING **prgBindings); + + [call_as(GetBindings)] + HRESULT RemoteGetBindings([in] HACCESSOR hAccessor, + [out] DBACCESSORFLAGS *pdwAccessorFlags, + [in, out] DBCOUNTITEM *pcBindings, + [out, size_is(,(ULONG)*pcBindings)] DBBINDING **prgBindings, + [out] IErrorInfo **ppErrorInfoRem); + + [local] + HRESULT ReleaseAccessor([in] HACCESSOR hAccessor, + [in, out, unique, annotation("__out_opt")] DBREFCOUNT *pcRefCount); + + [call_as(ReleaseAccessor)] + HRESULT RemoteReleaseAccessor([in] HACCESSOR hAccessor, + [in, out, unique] DBREFCOUNT *pcRefCount, + [out] IErrorInfo **ppErrorInfoRem); + +}; diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/aclapi.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/aclapi.h new file mode 100644 index 00000000..694804da --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/aclapi.h @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2004 Mike McCormack + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_ACLAPI_H +#define __WINE_ACLAPI_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void (*FN_PROGRESS)(LPWSTR,DWORD,PPROG_INVOKE_SETTING,PVOID,BOOL); + +WINADVAPI DWORD WINAPI GetExplicitEntriesFromAclA( PACL, PULONG, PEXPLICIT_ACCESS_A* ); +WINADVAPI DWORD WINAPI GetExplicitEntriesFromAclW( PACL, PULONG, PEXPLICIT_ACCESS_W* ); +#define GetExplicitEntriesFromAcl WINELIB_NAME_AW(GetExplicitEntriesFromAcl) +WINADVAPI DWORD WINAPI GetSecurityInfo( HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID*, PSID*, PACL*, PACL*, PSECURITY_DESCRIPTOR*); +WINADVAPI DWORD WINAPI GetSecurityInfoExA(HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, LPCSTR, LPCSTR, PACTRL_ACCESSA*, PACTRL_AUDITA*, LPSTR*, LPSTR*); +WINADVAPI DWORD WINAPI GetSecurityInfoExW(HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, LPCWSTR, LPCWSTR, PACTRL_ACCESSW*, PACTRL_AUDITW*, LPWSTR*, LPWSTR*); +#define GetSecurityInfoEx WINELIB_NAME_AW(GetSecurityInfoEx) +WINADVAPI DWORD WINAPI GetNamedSecurityInfoA(LPSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID*, PSID*, PACL*, PACL*, PSECURITY_DESCRIPTOR*); +WINADVAPI DWORD WINAPI GetNamedSecurityInfoW(LPWSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID*, PSID*, PACL*, PACL*, PSECURITY_DESCRIPTOR*); +#define GetNamedSecurityInfo WINELIB_NAME_AW(GetNamedSecurityInfo) +WINADVAPI DWORD WINAPI SetNamedSecurityInfoA(LPSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID, PSID, PACL, PACL); +WINADVAPI DWORD WINAPI SetNamedSecurityInfoW(LPWSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID, PSID, PACL, PACL); +#define SetNamedSecurityInfo WINELIB_NAME_AW(SetNamedSecurityInfo) +WINADVAPI DWORD WINAPI SetEntriesInAclA( ULONG, PEXPLICIT_ACCESSA, PACL, PACL*); +WINADVAPI DWORD WINAPI SetEntriesInAclW( ULONG, PEXPLICIT_ACCESSW, PACL, PACL*); +#define SetEntriesInAcl WINELIB_NAME_AW(SetEntriesInAcl) +WINADVAPI DWORD WINAPI SetSecurityInfo(HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID, PSID, PACL, PACL); +WINADVAPI TRUSTEE_FORM WINAPI GetTrusteeFormA( PTRUSTEEA ); +WINADVAPI TRUSTEE_FORM WINAPI GetTrusteeFormW( PTRUSTEEW ); +#define GetTrusteeForm WINELIB_NAME_AW(GetTrusteeForm) +WINADVAPI LPSTR WINAPI GetTrusteeNameA( PTRUSTEEA ); +WINADVAPI LPWSTR WINAPI GetTrusteeNameW( PTRUSTEEW ); +#define GetTrusteeName WINELIB_NAME_AW(GetTrusteeName) +WINADVAPI TRUSTEE_TYPE WINAPI GetTrusteeTypeA( PTRUSTEEA ); +WINADVAPI TRUSTEE_TYPE WINAPI GetTrusteeTypeW( PTRUSTEEW ); +#define GetTrusteeType WINELIB_NAME_AW(GetTrusteeType) +WINADVAPI DWORD WINAPI BuildSecurityDescriptorA( PTRUSTEEA, PTRUSTEEA, ULONG, PEXPLICIT_ACCESS_A, ULONG, PEXPLICIT_ACCESS_A, PSECURITY_DESCRIPTOR, PULONG, PSECURITY_DESCRIPTOR* ); +WINADVAPI DWORD WINAPI BuildSecurityDescriptorW( PTRUSTEEW, PTRUSTEEW, ULONG, PEXPLICIT_ACCESS_W, ULONG, PEXPLICIT_ACCESS_W, PSECURITY_DESCRIPTOR, PULONG, PSECURITY_DESCRIPTOR* ); +#define BuildSecurityDescriptor WINELIB_NAME_AW(BuildSecurityDescriptor) +WINADVAPI void WINAPI BuildTrusteeWithNameA( PTRUSTEEA, LPSTR ); +WINADVAPI void WINAPI BuildTrusteeWithNameW( PTRUSTEEW, LPWSTR ); +#define BuildTrusteeWithName WINELIB_NAME_AW(BuildTrusteeWithName) +WINADVAPI void WINAPI BuildTrusteeWithObjectsAndNameA(PTRUSTEEA, POBJECTS_AND_NAME_A, SE_OBJECT_TYPE, LPSTR, LPSTR, LPSTR); +WINADVAPI void WINAPI BuildTrusteeWithObjectsAndNameW(PTRUSTEEW, POBJECTS_AND_NAME_W, SE_OBJECT_TYPE, LPWSTR, LPWSTR, LPWSTR); +#define BuildTrusteeWithObjectsAndName WINELIB_NAME_AW(BuildTrusteeWithObjectsAndName) +WINADVAPI void WINAPI BuildTrusteeWithObjectsAndSidA(PTRUSTEEA, POBJECTS_AND_SID, GUID*, GUID*, PSID); +WINADVAPI void WINAPI BuildTrusteeWithObjectsAndSidW(PTRUSTEEW, POBJECTS_AND_SID, GUID*, GUID*, PSID); +#define BuildTrusteeWithObjectsAndSid WINELIB_NAME_AW(BuildTrusteeWithObjectsAndSid) +WINADVAPI void WINAPI BuildExplicitAccessWithNameA(PEXPLICIT_ACCESSA, LPSTR, DWORD, ACCESS_MODE, DWORD); +WINADVAPI void WINAPI BuildExplicitAccessWithNameW(PEXPLICIT_ACCESSW, LPWSTR, DWORD, ACCESS_MODE, DWORD); +#define BuildExplicitAccessWithName WINELIB_NAME_AW(BuildExplicitAccessWithName) +WINADVAPI void WINAPI BuildTrusteeWithSidA(PTRUSTEEA pTrustee, PSID pSid); +WINADVAPI void WINAPI BuildTrusteeWithSidW(PTRUSTEEW pTrustee, PSID pSid); +#define BuildTrusteeWithSid WINELIB_NAME_AW(BuildTrusteeWithSid) +WINADVAPI DWORD WINAPI GetEffectiveRightsFromAclA(PACL,PTRUSTEE_A,PACCESS_MASK); +WINADVAPI DWORD WINAPI GetEffectiveRightsFromAclW(PACL,PTRUSTEE_W,PACCESS_MASK); +#define GetEffectiveRightsFromAcl WINELIB_NAME_AW(GetEffectiveRightsFromAcl) + +#ifdef __cplusplus +} +#endif + +#endif /* __WINE_ACLAPI_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/aclui.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/aclui.h new file mode 100644 index 00000000..e1ad3189 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/aclui.h @@ -0,0 +1,247 @@ +/* + * Copyright (C) 2009 Nikolay Sivov + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_ACLUI_H +#define __WINE_ACLUI_H + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +typedef struct _SI_OBJECT_INFO +{ + DWORD dwFlags; + HINSTANCE hInstance; + LPWSTR pszServerName; + LPWSTR pszObjectName; + LPWSTR pszPageTitle; + GUID guidObjectType; +} SI_OBJECT_INFO, *PSI_OBJECT_INFO; + +#define SI_EDIT_PERMS 0x00000000 +#define SI_EDIT_OWNER 0x00000001 +#define SI_EDIT_AUDITS 0x00000002 +#define SI_CONTAINER 0x00000004 +#define SI_READONLY 0x00000008 +#define SI_ADVANCED 0x00000010 +#define SI_RESET 0x00000020 +#define SI_OWNER_READONLY 0x00000040 +#define SI_EDIT_PROPERTIES 0x00000080 +#define SI_OWNER_RECURSE 0x00000100 +#define SI_NO_ACL_PROTECT 0x00000200 +#define SI_NO_TREE_APPLY 0x00000400 +#define SI_PAGE_TITLE 0x00000800 +#define SI_SERVER_IS_DC 0x00001000 +#define SI_RESET_DACL_TREE 0x00004000 +#define SI_RESET_SACL_TREE 0x00008000 +#define SI_OBJECT_GUID 0x00010000 +#define SI_EDIT_EFFECTIVE 0x00020000 +#define SI_RESET_DACL 0x00040000 +#define SI_RESET_SACL 0x00080000 +#define SI_RESET_OWNER 0x00100000 +#define SI_NO_ADDITIONAL_PERMISSION 0x00200000 +#define SI_VIEW_ONLY 0x00400000 +#define SI_PERMS_ELEVATION_REQUIRED 0x01000000 +#define SI_AUDITS_ELEVATION_REQUIRED 0x02000000 +#define SI_OWNER_ELEVATION_REQUIRED 0x04000000 +#define SI_MAY_WRITE 0x10000000 + +#define SI_EDIT_ALL (SI_EDIT_PERMS | SI_EDIT_OWNER | SI_EDIT_AUDITS) + +typedef struct _SI_ACCESS +{ + const GUID *pguid; + ACCESS_MASK mask; + LPCWSTR pszName; + DWORD dwFlags; +} SI_ACCESS, *PSI_ACCESS; + +#define SI_ACCESS_SPECIFIC 0x00010000 +#define SI_ACCESS_GENERAL 0x00020000 +#define SI_ACCESS_CONTAINER 0x00040000 +#define SI_ACCESS_PROPERTY 0x00080000 + +typedef struct _SI_INHERIT_TYPE +{ + const GUID *pguid; + ULONG dwFlags; + LPCWSTR pszName; +} SI_INHERIT_TYPE, *PSI_INHERIT_TYPE; + +typedef enum _SI_PAGE_TYPE +{ + SI_PAGE_PERM, + SI_PAGE_ADVPERM, + SI_PAGE_AUDIT, + SI_PAGE_OWNER, + SI_PAGE_EFFECTIVE, + SI_PAGE_TAKEOWNERSHIP +} SI_PAGE_TYPE; + +#define PSPCB_SI_INITDIALOG (WM_USER + 1) + +#undef INTERFACE +#define INTERFACE ISecurityInformation +DECLARE_INTERFACE_IID_(ISecurityInformation, IUnknown, "965fc360-16ff-11d0-91cb-00aa00bbb723") +{ + /* IUnknown methods */ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* ISecurityInformation methods */ + STDMETHOD(GetObjectInformation) (THIS_ PSI_OBJECT_INFO pObjectInfo ) PURE; + STDMETHOD(GetSecurity) (THIS_ SECURITY_INFORMATION RequestedInformation, + PSECURITY_DESCRIPTOR *ppSecurityDescriptor, + BOOL fDefault ) PURE; + STDMETHOD(SetSecurity) (THIS_ SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor ) PURE; + STDMETHOD(GetAccessRights) (THIS_ const GUID* pguidObjectType, + DWORD dwFlags, + PSI_ACCESS *ppAccess, + ULONG *pcAccesses, + ULONG *piDefaultAccess ) PURE; + STDMETHOD(MapGeneric) (THIS_ const GUID *pguidObjectType, + UCHAR *pAceFlags, + ACCESS_MASK *pMask) PURE; + STDMETHOD(GetInheritTypes) (THIS_ PSI_INHERIT_TYPE *ppInheritTypes, + ULONG *pcInheritTypes ) PURE; + STDMETHOD(PropertySheetPageCallback)(THIS_ HWND hwnd, UINT uMsg, SI_PAGE_TYPE uPage ) PURE; +}; +#undef INTERFACE +typedef ISecurityInformation *LPSECURITYINFO; + +#define INTERFACE ISecurityInformation2 +DECLARE_INTERFACE_IID_(ISecurityInformation2, IUnknown, "c3ccfdb4-6f88-11d2-a3ce-00c04fb1782a") +{ + /* IUnknown methods */ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* ISecurityInformation2 methods */ + STDMETHOD_(BOOL,IsDaclCanonical) (THIS_ PACL pDacl) PURE; + STDMETHOD(LookupSids) (THIS_ ULONG cSids, PSID *rgpSids, LPDATAOBJECT *ppdo) PURE; +}; +#undef INTERFACE +typedef ISecurityInformation2 *LPSECURITYINFO2; + +#define CFSTR_ACLUI_SID_INFO_LIST TEXT("CFSTR_ACLUI_SID_INFO_LIST") + +typedef struct _SID_INFO +{ + PSID pSid; + PWSTR pwzCommonName; + PWSTR pwzClass; + PWSTR pwzUPN; +} SID_INFO, *PSID_INFO; + +typedef struct _SID_INFO_LIST +{ + ULONG cItems; + SID_INFO aSidInfo[ANYSIZE_ARRAY]; +} SID_INFO_LIST, *PSID_INFO_LIST; + + +#define INTERFACE IEffectivePermission +DECLARE_INTERFACE_IID_(IEffectivePermission, IUnknown, "3853dc76-9f35-407c-88a1-d19344365fbc") +{ + /* IUnknown methods */ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* ISecurityInformation methods */ + STDMETHOD(GetEffectivePermission) (THIS_ + const GUID* pguidObjectType, + PSID pUserSid, + LPCWSTR pszServerName, + PSECURITY_DESCRIPTOR pSD, + POBJECT_TYPE_LIST *ppObjectTypeList, + ULONG *pcObjectTypeListLength, + PACCESS_MASK *ppGrantedAccessList, + ULONG *pcGrantedAccessListLength) PURE; +}; +#undef INTERFACE +typedef IEffectivePermission *LPEFFECTIVEPERMISSION; + +#define INTERFACE ISecurityObjectTypeInfo +DECLARE_INTERFACE_IID_(ISecurityObjectTypeInfo, IUnknown, "fc3066eb-79ef-444b-9111-d18a75ebf2fa") +{ + /* IUnknown methods */ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* ISecurityInformation methods */ + STDMETHOD(GetInheritSource)(THIS_ SECURITY_INFORMATION si, + PACL pACL, +#ifndef WINE_NO_UNICODE_MACROS + PINHERITED_FROM *ppInheritArray +#else + PINHERITED_FROMW *ppInheritArray +#endif + ) PURE; +}; +#undef INTERFACE +typedef ISecurityObjectTypeInfo *LPSecurityObjectTypeInfo; + + +#define INTERFACE ISecurityInformation3 +DECLARE_INTERFACE_IID_(ISecurityInformation3, IUnknown, "e2cdc9cc-31bd-4f8f-8c8b-b641af516a1a") +{ + /* IUnknown methods */ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* ISecurityInformation3 methods */ + STDMETHOD(GetFullResourceName) (THIS_ LPWSTR *ppszResourceName) PURE; + STDMETHOD(OpenElevatedEditor) (THIS_ HWND hWnd, SI_PAGE_TYPE uPage) PURE; +}; +#undef INTERFACE +typedef ISecurityInformation3 *LPSECURITYINFO3; + +DEFINE_GUID(IID_ISecurityInformation, 0x965fc360, 0x16ff, 0x11d0, 0x91, 0xcb, 0x0, 0xaa, 0x0, 0xbb, 0xb7, 0x23); +DEFINE_GUID(IID_ISecurityInformation2, 0xc3ccfdb4, 0x6f88, 0x11d2, 0xa3, 0xce, 0x0, 0xc0, 0x4f, 0xb1, 0x78, 0x2a); +DEFINE_GUID(IID_IEffectivePermission, 0x3853dc76, 0x9f35, 0x407c, 0x88, 0xa1, 0xd1, 0x93, 0x44, 0x36, 0x5f, 0xbc); +DEFINE_GUID(IID_ISecurityObjectTypeInfo, 0xfc3066eb, 0x79ef, 0x444b, 0x91, 0x11, 0xd1, 0x8a, 0x75, 0xeb, 0xf2, 0xfa); +DEFINE_GUID(IID_ISecurityInformation3, 0xe2cdc9cc, 0x31bd, 0x4f8f, 0x8c, 0x8b, 0xb6, 0x41, 0xaf, 0x51, 0x6a, 0x1a); + +HPROPSHEETPAGE WINAPI CreateSecurityPage(LPSECURITYINFO psi); +BOOL WINAPI EditSecurity(HWND owner, LPSECURITYINFO psi); +HRESULT WINAPI EditSecurityAdvanced(HWND owner, LPSECURITYINFO psi, SI_PAGE_TYPE uSIPage); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __WINE_ACLUI_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/activaut.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/activaut.idl new file mode 100644 index 00000000..1c0a4997 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/activaut.idl @@ -0,0 +1,38 @@ +/* + * Copyright 2008 Jacek Caban for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef DO_NO_IMPORTS +import "ocidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; +#endif + +cpp_quote("#ifndef _NO_AUTHOR_GUIDS") + +cpp_quote("DEFINE_GUID(CATID_ActiveScriptAuthor, 0xaee2a92,0xbcbb,0x11d0,0x8c,0x72,0x0,0xc0,0x4f,0xc2,0xb0,0x85);") + +cpp_quote("#endif") diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/activdbg.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/activdbg.idl new file mode 100644 index 00000000..b80d427b --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/activdbg.idl @@ -0,0 +1,590 @@ +/* + * Copyright 2008 Jacek Caban for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +import "ocidl.idl"; +import "activscp.idl"; +/* import "dbgprop.idl"; */ + +interface IDebugDocumentContext; +interface IRemoteDebugApplication; +interface IEnumDebugCodeContexts; + +/* FIXME: */ +interface IEnumDebugStackFrames; +interface IDebugStackFrame; +interface IApplicationDebugger; +interface IEnumRemoteDebugApplicationThreads; +interface IDebugApplicationNode; +interface IEnumDebugExpressionContexts; +interface IDebugApplicationThread; +interface IDebugSyncOperation; +interface IDebugAsyncOperation; +interface IDebugStackFrameSniffer; +interface IDebugThreadCall32; +interface IActiveScriptErrorDebug; +interface IProvideExpressionContexts; + +typedef enum tagBREAKPOINT_STATE { + BREAKPOINT_DELETED, + BREAKPOINT_DISABLED, + BREAKPOINT_ENABLED +} BREAKPOINT_STATE; + +typedef DWORD APPBREAKFLAGS; + +typedef enum tagBREAKREASON { + BREAKREASON_STEP, + BREAKREASON_BREAKPOINT, + BREAKREASON_DEBUGGER_BLOCK, + BREAKREASON_HOST_INITIATED, + BREAKREASON_LANGUAGE_INITIATED, + BREAKREASON_DEBUGGER_HALT, + BREAKREASON_ERROR, + BREAKREASON_JIT +} BREAKREASON; + +typedef enum tagBREAKRESUME_ACTION { + BREAKRESUMEACTION_ABORT, + BREAKRESUMEACTION_CONTINUE, + BREAKRESUMEACTION_STEP_INTO, + BREAKRESUMEACTION_STEP_OVER, + BREAKRESUMEACTION_STEP_OUT, + BREAKRESUMEACTION_IGNORE +} BREAKRESUMEACTION; + +typedef enum tagDOCUMENTNAMETYPE { + DOCUMENTNAMETYPE_APPNODE, + DOCUMENTNAMETYPE_TITLE, + DOCUMENTNAMETYPE_FILE_TAIL, + DOCUMENTNAMETYPE_URL +} DOCUMENTNAMETYPE; + +typedef enum tagERRORRESUMEACTION { + ERRORRESUMEACTION_ReexecuteErrorStatement, + ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller, + ERRORRESUMEACTION_SkipErrorStatement, +} ERRORRESUMEACTION; + +typedef WORD SOURCE_TEXT_ATTR; + +#ifdef INTEROPLIB +enum enum_SOURCE_TEXT_ATTR +{ + SOURCETEXT_ATTR_KEYWORD = 0x01, + SOURCETEXT_ATTR_COMMENT = 0x02, + SOURCETEXT_ATTR_NONSOURCE = 0x04, + SOURCETEXT_ATTR_OPERATOR = 0x08, + SOURCETEXT_ATTR_NUMBER = 0x10, + SOURCETEXT_ATTR_STRING = 0x20, + SOURCETEXT_ATTR_FUNCTION_START = 0x40 +}; +#endif + +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_KEYWORD = 0x01; +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_COMMENT = 0x02; +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_NONSOURCE = 0x04; +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_OPERATOR = 0x08; +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_NUMBER = 0x10; +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_STRING = 0x20; +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_FUNCTION_START = 0x40; + +/************************************************************ + * interface IActiveScriptDebug32 + */ +[ + object, + uuid(51973c10-cb0c-11d0-b5c9-00a0244a0e7a), + pointer_default(unique) +] +interface IActiveScriptDebug32 : IUnknown +{ + HRESULT GetScriptTextAttributes( + [in, size_is(uNumCodeChars)] LPCOLESTR pstrCode, + [in] ULONG uNumCodeChars, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwFlags, + [in, out, size_is(uNumCodeChars)] SOURCE_TEXT_ATTR *pattr); + + HRESULT GetScriptletTextAttributes( + [in, size_is(uNumCodeChars)] LPCOLESTR pstrCode, + [in] ULONG uNumCodeChars, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwFlags, + [in, out, size_is(uNumCodeChars)] SOURCE_TEXT_ATTR *pattr); + + HRESULT EnumCodeContextsOfPosition( + [in] DWORD dwSourceContext, + [in] ULONG uCharacterOffset, + [in] ULONG uNumChars, + [out] IEnumDebugCodeContexts **ppescc); +} + +[ + object, + uuid(bc437e23-f5b8-47f4-bb79-7d1ce5483b86), + pointer_default(unique) +] +interface IActiveScriptDebug64 : IUnknown +{ + HRESULT GetScriptTextAttributes( + [in, size_is(uNumCodeChars)] LPCOLESTR pstrCode, + [in] ULONG uNumCodeChars, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwFlags, + [in, out, size_is(uNumCodeChars)] SOURCE_TEXT_ATTR *pattr); + + HRESULT GetScriptletTextAttributes( + [in, size_is(uNumCodeChars)] LPCOLESTR pstrCode, + [in] ULONG uNumCodeChars, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwFlags, + [in, out, size_is(uNumCodeChars)] SOURCE_TEXT_ATTR *pattr); + + HRESULT EnumCodeContextsOfPosition( + [in] DWORDLONG dwSourceContext, + [in] ULONG uCharacterOffset, + [in] ULONG uNumChars, + [out] IEnumDebugCodeContexts **ppescc); +} + +/************************************************************ + * interface IDebugDocumentInfo + */ +[ + object, + uuid(51973c1f-cb0c-11d0-b5c9-00a0244a0e7a), + pointer_default(unique) +] +interface IDebugDocumentInfo : IUnknown +{ + HRESULT GetName( + [in] DOCUMENTNAMETYPE dnt, + [out] BSTR *pbstrName); + + HRESULT GetDocumentClassId( + [out] CLSID *pclsidDocument); +} + +/************************************************************ + * interface IDebugDocument + */ +[ + object, + uuid(51973c21-cb0c-11d0-b5c9-00a0244a0e7a), + pointer_default(unique) +] +interface IDebugDocument : IDebugDocumentInfo +{ +} + +/************************************************************ + * interface IDebugCodeContext + */ +[ + object, + uuid(51973c13-cb0c-11d0-b5c9-00a0244a0e7a), + pointer_default(unique) +] +interface IDebugCodeContext : IUnknown +{ + HRESULT GetDocumentContext( + [out] IDebugDocumentContext **ppsc); + + HRESULT SetBreakPoint( + [in] BREAKPOINT_STATE bps); +} + +/************************************************************ + * interface IEnumDebugCodeContexts + */ +[ + object, + uuid(51973c1d-cb0c-11d0-b5c9-00a0244a0e7a), + pointer_default(unique) +] +interface IEnumDebugCodeContexts : IUnknown +{ + HRESULT Next( + [in] ULONG celt, + [out] IDebugCodeContext **pscc, + [out] ULONG *pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumDebugCodeContexts **ppescc); +} + +/************************************************************ + * interface IDebugDocumentContext + */ +[ + object, + uuid(51973c28-cb0c-11d0-b5c9-00a0244a0e7a), + pointer_default(unique) +] +interface IDebugDocumentContext : IUnknown +{ + HRESULT GetDocument( + [out] IDebugDocument **ppsd); + + HRESULT EnumCodeContexts( + [out] IEnumDebugCodeContexts **ppescc); +} + +/************************************************************ + * interface IRemoteDebugApplicationThread + */ +[ + object, + uuid(51973c37-cb0c-11d0-b5c9-00a0244a0e7a), + pointer_default(unique) +] +interface IRemoteDebugApplicationThread : IUnknown +{ + HRESULT GetSystemThreadId( + [out] DWORD *dwThreadId); + + HRESULT GetApplication( + [out] IRemoteDebugApplication **pprda); + + HRESULT EnumStackFrames( + [out] IEnumDebugStackFrames **ppedsf); + + HRESULT GetDescription( + [out] BSTR *pbstrDescription, + [out] BSTR *pbstrState); + + HRESULT SetNextStatement( + [in] IDebugStackFrame *pStackFrame, + [in] IDebugCodeContext *pCodeContext); + + HRESULT GetState( + [out] DWORD *pState); + + HRESULT Suspend( + [out] DWORD *pdwCount); + + HRESULT Resume( + [out] DWORD *pdwCount); + + HRESULT GetSuspendCount( + [out] DWORD *pdwCount); +} + +/************************************************************ + * interface IRemoteDebugApplication + */ +[ + object, + uuid(51973c30-cb0c-11d0-b5c9-00a0244Aae7a), + pointer_default(unique) +] +interface IRemoteDebugApplication : IUnknown +{ + HRESULT ResumeFromBreakPoint( + [in] IRemoteDebugApplicationThread *prptFocus, + [in] BREAKRESUMEACTION bra, + [in] ERRORRESUMEACTION era); + + HRESULT CauseBreak(); + + HRESULT ConnectDebugger( + [in] IApplicationDebugger *pad); + + HRESULT DisconnectDebugger(); + + HRESULT GetDebugger( + [out] IApplicationDebugger **pad); + + HRESULT CreateInstanceAtApplication( + [in] REFCLSID rclsid, + [in] IUnknown *pUnkOuter, + [in] DWORD dwClsContext, + [in] REFIID riid, + [out, iid_is(riid)] IUnknown **ppvObject); + + HRESULT QueryAlive(); + + HRESULT EnumThreads( + [out] IEnumRemoteDebugApplicationThreads **pperdat); + + HRESULT GetName( + [out] BSTR *pbstrName); + + HRESULT GetRootNode( + [out] IDebugApplicationNode **ppdanRoot); + + HRESULT EnumGlobalExpressionContexts( + [out] IEnumDebugExpressionContexts **ppedec); +} + +/************************************************************ + * interface IDebugApplication32 + */ +[ + object, + uuid(51973c32-cb0c-11d0-b5c9-00a0244a0e7a), + pointer_default(unique), + local +] +interface IDebugApplication32 : IRemoteDebugApplication +{ + HRESULT SetName( + [in] LPCOLESTR pstrName); + + HRESULT StepOutComplete(); + + HRESULT DebugOutput( + [in] LPCOLESTR pstr); + + HRESULT StartDebugSession(); + + HRESULT HandleBreakPoint( + [in] BREAKREASON br, + [out] BREAKRESUMEACTION *pbra); + + HRESULT Close(); + + HRESULT GetBreakFlags( + [out] APPBREAKFLAGS *pabf, + [out] IRemoteDebugApplicationThread **pprdatSteppingThread); + + cpp_quote("#undef GetCurrentThread") + HRESULT GetCurrentThread( + [out] IDebugApplicationThread **pat); + + HRESULT CreateAsyncDebugOperation( + [in] IDebugSyncOperation *psdo, + [out] IDebugAsyncOperation **ppado); + + HRESULT AddStackFrameSniffer( + [in] IDebugStackFrameSniffer *pdsfs, + [out] DWORD *pdwCookie); + + HRESULT RemoveStackFrameSniffer( + [in] DWORD dwCookie); + + HRESULT QueryCurrentThreadIsDebuggerThread(); + + HRESULT SynchronousCallInDebuggerThread( + [in] IDebugThreadCall32 *pptc, + [in] DWORD dwParam1, + [in] DWORD dwParam2, + [in] DWORD dwParam3); + + HRESULT CreateApplicationNode( + [out] IDebugApplicationNode **ppdanNew); + + HRESULT FireDebuggerEvent( + [in] REFGUID riid, + [in] IUnknown *punk); + + HRESULT HandleRuntimeError( + [in] IActiveScriptErrorDebug *pErrorDebug, + [in] IActiveScriptSite *pScriptSite, + [out] BREAKRESUMEACTION *pbra, + [out] ERRORRESUMEACTION *perra, + [out] BOOL *pfCallOnScriptError); + + BOOL FCanJitDebug(); + + BOOL FIsAutoJitDebugEnabled(); + + HRESULT AddGlobalExpressionContextProvider( + [in] IProvideExpressionContexts *pdsfs, + [out] DWORD *pdwCookie); + + HRESULT RemoveGlobalExpressionContextProvider( + [in] DWORD dwCookie); +} + +/************************************************************ + * interface IDebugApplication64 + */ +[ + object, + uuid(4dedc754-04c7-4f10-9e60-16a390fe6e62), + pointer_default(unique), + local +] +interface IDebugApplication64 : IRemoteDebugApplication +{ + HRESULT SetName( + [in] LPCOLESTR pstrName); + + HRESULT StepOutComplete(); + + HRESULT DebugOutput( + [in] LPCOLESTR pstr); + + HRESULT StartDebugSession(); + + HRESULT HandleBreakPoint( + [in] BREAKREASON br, + [out] BREAKRESUMEACTION *pbra); + + HRESULT Close(); + + HRESULT GetBreakFlags( + [out] APPBREAKFLAGS *pabf, + [out] IRemoteDebugApplicationThread **pprdatSteppingThread); + + HRESULT GetCurrentThread( + [out] IDebugApplicationThread **pat); + + HRESULT CreateAsyncDebugOperation( + [in] IDebugSyncOperation *psdo, + [out] IDebugAsyncOperation **ppado); + + HRESULT AddStackFrameSniffer( + [in] IDebugStackFrameSniffer *pdsfs, + [out] DWORD *pdwCookie); + + HRESULT RemoveStackFrameSniffer( + [in] DWORD dwCookie); + + HRESULT QueryCurrentThreadIsDebuggerThread(); + + HRESULT SynchronousCallInDebuggerThread( + [in] IDebugThreadCall32 *pptc, + [in] DWORDLONG dwParam1, + [in] DWORDLONG dwParam2, + [in] DWORDLONG dwParam3); + + HRESULT CreateApplicationNode( + [out] IDebugApplicationNode **ppdanNew); + + HRESULT FireDebuggerEvent( + [in] REFGUID riid, + [in] IUnknown *punk); + + HRESULT HandleRuntimeError( + [in] IActiveScriptErrorDebug *pErrorDebug, + [in] IActiveScriptSite *pScriptSite, + [out] BREAKRESUMEACTION *pbra, + [out] ERRORRESUMEACTION *perra, + [out] BOOL *pfCallOnScriptError); + + BOOL FCanJitDebug(); + + BOOL FIsAutoJitDebugEnabled(); + + HRESULT AddGlobalExpressionContextProvider( + [in] IProvideExpressionContexts *pdsfs, + [out] DWORDLONG *pdwCookie); + + HRESULT RemoveGlobalExpressionContextProvider( + [in] DWORDLONG dwCookie); +} + +/************************************************************ + * interface IActiveScriptSiteDebug32 + */ +[ + object, + uuid(51973c11-cb0c-11d0-b5c9-00a0244a0e7a), + pointer_default(unique), + local +] +interface IActiveScriptSiteDebug32 : IUnknown +{ + HRESULT GetDocumentContextFromPosition( + [in] DWORD dwSourceContext, + [in] ULONG uCharacterOffset, + [in] ULONG uNumChars, + [out] IDebugDocumentContext **ppsc); + + HRESULT GetApplication( + [out] IDebugApplication32 **ppda); + + HRESULT GetRootApplicationNode( + [out] IDebugApplicationNode **ppdanRoot); + + HRESULT OnScriptErrorDebug( + [in] IActiveScriptErrorDebug *pErrorDebug, + [out] BOOL *pfEnterDebugger, + [out] BOOL *pfCallOnScriptErrorWhenContinuing); +} + +/************************************************************ + * interface IActiveScriptSiteDebug64 + */ +[ + object, + uuid(d6b96b0a-7463-402c-92ac-89984226942f), + pointer_default(unique), + local +] +interface IActiveScriptSiteDebug64 : IUnknown +{ + HRESULT GetDocumentContextFromPosition( + [in] DWORDLONG dwSourceContext, + [in] ULONG uCharacterOffset, + [in] ULONG uNumChars, + [out] IDebugDocumentContext **ppsc); + + HRESULT GetApplication( + [out] IDebugApplication64 **ppda); + + HRESULT GetRootApplicationNode( + [out] IDebugApplicationNode **ppdanRoot); + + HRESULT OnScriptErrorDebug( + [in] IActiveScriptErrorDebug *pErrorDebug, + [out] BOOL *pfEnterDebugger, + [out] BOOL *pfCallOnScriptErrorWhenContinuing); +} + +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") + +cpp_quote("#define IActiveScriptDebug IActiveScriptDebug64") +cpp_quote("#define IID_IActiveScriptDebug IID_IActiveScriptDebug64") + +cpp_quote("#define IActiveScriptSiteDebug IActiveScriptSiteDebug64") +cpp_quote("#define IID_IActiveScriptSiteDebug IID_IActiveScriptSiteDebug64") + +cpp_quote("#define IDebugApplication IDebugApplication64") +cpp_quote("#define IID_IDebugApplication IID_IDebugApplication64") + +cpp_quote("#else") + +cpp_quote("#define IActiveScriptDebug IActiveScriptDebug32") +cpp_quote("#define IID_IActiveScriptDebug IID_IActiveScriptDebug32") + +cpp_quote("#define IActiveScriptSiteDebug IActiveScriptSiteDebug32") +cpp_quote("#define IID_IActiveScriptSiteDebug IID_IActiveScriptSiteDebug32") + +cpp_quote("#define IDebugApplication IDebugApplication32") +cpp_quote("#define IID_IDebugApplication IID_IDebugApplication32") + +cpp_quote("#endif") +cpp_quote("#endif") diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/activscp.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/activscp.idl new file mode 100644 index 00000000..8457df41 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/activscp.idl @@ -0,0 +1,558 @@ +/* + * Copyright 2004 Kevin Koltzau + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef DO_NO_IMPORTS +import "ocidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; +#endif + +cpp_quote("#ifndef _NO_SCRIPT_GUIDS") + +cpp_quote("DEFINE_GUID(CATID_ActiveScript, 0xf0b7a1a1,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);") +cpp_quote("DEFINE_GUID(CATID_ActiveScriptParse, 0xf0b7a1a2,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);") +cpp_quote("DEFINE_GUID(CATID_ActiveScriptEncode, 0xf0b7a1a3,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);") + +cpp_quote("#endif") + +cpp_quote("#define SCRIPTPROP_NAME 0x00000000") +cpp_quote("#define SCRIPTPROP_MAJORVERSION 0x00000001") +cpp_quote("#define SCRIPTPROP_MINORVERSION 0x00000002") +cpp_quote("#define SCRIPTPROP_BUILDNUMBER 0x00000003") +cpp_quote("#define SCRIPTPROP_DELAYEDEVENTSINKING 0x00001000") +cpp_quote("#define SCRIPTPROP_CATCHEXCEPTION 0x00001001") +cpp_quote("#define SCRIPTPROP_CONVERSIONLCID 0x00001002") +cpp_quote("#define SCRIPTPROP_HOSTSTACKREQUIRED 0x00001003") +cpp_quote("#define SCRIPTPROP_DEBUGGER 0x00001100") +cpp_quote("#define SCRIPTPROP_JITDEBUG 0x00001101") +cpp_quote("#define SCRIPTPROP_INVOKEVERSIONING 0x00004000") + +cpp_quote("#define SCRIPTPROP_HACK_FIBERSUPPORT 0x70000000") +cpp_quote("#define SCRIPTPROP_HACK_TRIDENTEVENTSINK 0x70000001") +cpp_quote("#define SCRIPTPROP_ABBREVIATE_GLOBALNAME_RESOLUTION 0x70000002") + +typedef enum tagSCRIPTSTATE { + SCRIPTSTATE_UNINITIALIZED = 0, + SCRIPTSTATE_STARTED = 1, + SCRIPTSTATE_CONNECTED = 2, + SCRIPTSTATE_DISCONNECTED = 3, + SCRIPTSTATE_CLOSED = 4, + SCRIPTSTATE_INITIALIZED = 5 +} SCRIPTSTATE; + +typedef enum tagSCRIPTTHREADSTATE { + SCRIPTTHREADSTATE_NOTINSCRIPT = 0, + SCRIPTTHREADSTATE_RUNNING = 1 +} SCRIPTTHREADSTATE; + +typedef enum tagSCRIPTUICITEM { + SCRIPTUICITEM_INPUTBOX = 1, + SCRIPTUICITEM_MSGBOX = 2 +} SCRIPTUICITEM; + +typedef enum tagSCRIPTUICHANDLING { + SCRIPTUICHANDLING_ALLOW = 0, + SCRIPTUICHANDLING_NOUIERROR = 1, + SCRIPTUICHANDLING_NOUIDEFAULT = 2 +} SCRIPTUICHANDLING; + +typedef DWORD SCRIPTTHREADID; +cpp_quote("#define SCRIPTTHREADID_CURRENT ((SCRIPTTHREADID)-1)") +cpp_quote("#define SCRIPTTHREADID_BASE ((SCRIPTTHREADID)-2)") +cpp_quote("#define SCRIPTTHREADID_ALL ((SCRIPTTHREADID)-3)") + +cpp_quote("#define SCRIPTITEM_ISVISIBLE 0x00000002") +cpp_quote("#define SCRIPTITEM_ISSOURCE 0x00000004") +cpp_quote("#define SCRIPTITEM_GLOBALMEMBERS 0x00000008") +cpp_quote("#define SCRIPTITEM_ISPERSISTENT 0x00000040") +cpp_quote("#define SCRIPTITEM_CODEONLY 0x00000200") +cpp_quote("#define SCRIPTITEM_NOCODE 0x00000400") +cpp_quote("#define SCRIPTITEM_ALL_FLAGS (SCRIPTITEM_ISSOURCE | \\") +cpp_quote(" SCRIPTITEM_ISVISIBLE | \\") +cpp_quote(" SCRIPTITEM_ISPERSISTENT | \\") +cpp_quote(" SCRIPTITEM_GLOBALMEMBERS | \\") +cpp_quote(" SCRIPTITEM_NOCODE | \\") +cpp_quote(" SCRIPTITEM_CODEONLY)") +cpp_quote("#define SCRIPTTYPELIB_ISCONTROL 0x00000010") +cpp_quote("#define SCRIPTTYPELIB_ISPERSISTENT 0x00000040") +cpp_quote("#define SCRIPTTYPELIB_ALL_FLAGS (SCRIPTTEXT_ISCONTROL | SCRIPTTYPELIB_ISPERSISTENT)") +cpp_quote("#define SCRIPTTEXT_DELAYEXECUTION 0x00000001") +cpp_quote("#define SCRIPTTEXT_ISVISIBLE 0x00000002") +cpp_quote("#define SCRIPTTEXT_ISEXPRESSION 0x00000020") +cpp_quote("#define SCRIPTTEXT_ISPERSISTENT 0x00000040") +cpp_quote("#define SCRIPTTEXT_HOSTMANAGESSOURCE 0x00000080") +cpp_quote("#define SCRIPTTEXT_ALL_FLAGS (SCRIPTTEXT_DELAYEXECUTION | \\") +cpp_quote(" SCRIPTTEXT_ISVISIBLE | \\") +cpp_quote(" SCRIPTTEXT_ISEXPRESSION | \\") +cpp_quote(" SCRIPTTEXT_ISPERSISTENT | \\") +cpp_quote(" SCRIPTTEXT_HOSTMANAGESSOURCE)") +cpp_quote("#define SCRIPTPROC_HOSTMANAGESSOURCE 0x00000080") +cpp_quote("#define SCRIPTPROC_IMPLICIT_THIS 0x00000100") +cpp_quote("#define SCRIPTPROC_IMPLICIT_PARENTS 0x00000200") +cpp_quote("#define SCRIPTPROC_ALL_FLAGS (SCRIPTPROC_HOSTMANAGESSOURCE | \\") +cpp_quote(" SCRIPTPROC_IMPLICIT_THIS | \\") +cpp_quote(" SCRIPTPROC_IMPLICIT_PARENTS)") +cpp_quote("#define SCRIPTINFO_IUNKNOWN 0x00000001") +cpp_quote("#define SCRIPTINFO_ITYPEINFO 0x00000002") +cpp_quote("#define SCRIPTINFO_ALL_FLAGS (SCRIPTINFO_IUNKNOWN | SCRIPTINFO_ITYPEINFO)") +cpp_quote("#define SCRIPTINTERRUPT_DEBUG 0x00000001") +cpp_quote("#define SCRIPTINTERRUPT_RAISEEXCEPTION 0x00000002") +cpp_quote("#define SCRIPTINTERRUPT_ALL_FLAGS (SCRIPTINTERRUPT_DEBUG | SCRIPTINTERRUPT_RAISEEXCEPTION)") +cpp_quote("#define SCRIPTSTAT_STATEMENT_COUNT 1") +cpp_quote("#define SCRIPTSTAT_INSTRUCTION_COUNT 2") +cpp_quote("#define SCRIPTSTAT_INTSTRUCTION_TIME 3") +cpp_quote("#define SCRIPTSTAT_TOTAL_TIME 4") + +[ +object, +uuid(EAE1BA61-A4ED-11cf-8F20-00805F2CD064), +pointer_default(unique) +] +interface IActiveScriptError : IUnknown +{ + HRESULT GetExceptionInfo( + [out] EXCEPINFO *pexcepinfo + ); + + HRESULT GetSourcePosition( + [out] DWORD *pdwSourceContext, + [out] ULONG *pulLineNumber, + [out] LONG *plCharacterPosition + ); + + HRESULT GetSourceLineText( + [out] BSTR *pbstrSourceLine + ); +} + +[ +object, +uuid(DB01A1E3-A42B-11cf-8F20-00805F2CD064), +pointer_default(unique) +] +interface IActiveScriptSite : IUnknown +{ + HRESULT GetLCID( + [out] LCID *plcid); + + HRESULT GetItemInfo( + [in] LPCOLESTR pstrName, + [in] DWORD dwReturnMask, + [out] IUnknown **ppiunkItem, + [out] ITypeInfo **ppti + ); + + HRESULT GetDocVersionString( + [out] BSTR *pbstrVersion + ); + + HRESULT OnScriptTerminate( + [in] const VARIANT *pvarResult, + [in] const EXCEPINFO *pexcepinfo + ); + + HRESULT OnStateChange( + [in] SCRIPTSTATE ssScriptState + ); + + HRESULT OnScriptError( + [in] IActiveScriptError *pscripterror + ); + + HRESULT OnEnterScript(void); + + HRESULT OnLeaveScript(void); +} + +cpp_quote("typedef IActiveScriptSite *PIActiveScriptSite;") + +[ +object, +uuid(D10F6761-83E9-11cf-8F20-00805F2CD064), +pointer_default(unique) +] +interface IActiveScriptSiteWindow : IUnknown +{ + HRESULT GetWindow( + [out] HWND *phwnd + ); + + HRESULT EnableModeless( + [in] BOOL fEnable + ); +} + +[ + object, + uuid(aedae97e-d7ee-4796-b960-7f092ae844ab), + pointer_default(unique) +] +interface IActiveScriptSiteUIControl : IUnknown +{ + HRESULT GetUIBehavior( + [in] SCRIPTUICITEM UicItem, + [out] SCRIPTUICHANDLING *pUicHandling); +} + +[ +object, +uuid(539698A0-CDCA-11CF-A5EB-00AA0047A063), +pointer_default(unique) +] +interface IActiveScriptSiteInterruptPoll : IUnknown +{ + HRESULT QueryContinue(); +} + +[ +object, +uuid(BB1A2AE1-A4F9-11cf-8F20-00805F2CD064), +pointer_default(unique) +] +interface IActiveScript : IUnknown +{ + HRESULT SetScriptSite( + [in] IActiveScriptSite *pass + ); + + HRESULT GetScriptSite( + [in] REFIID riid, + [out, iid_is(riid)] void **ppvObject + ); + + HRESULT SetScriptState( + [in] SCRIPTSTATE ss + ); + + HRESULT GetScriptState( + [out] SCRIPTSTATE *pssState + ); + + HRESULT Close(void); + + HRESULT AddNamedItem( + [in] LPCOLESTR pstrName, + [in] DWORD dwFlags + ); + + HRESULT AddTypeLib( + [in] REFGUID rguidTypeLib, + [in] DWORD dwMajor, + [in] DWORD dwMinor, + [in] DWORD dwFlags + ); + + HRESULT GetScriptDispatch( + [in] LPCOLESTR pstrItemName, + [out] IDispatch **ppdisp + ); + + HRESULT GetCurrentScriptThreadID( + [out] SCRIPTTHREADID *pstidThread + ); + + HRESULT GetScriptThreadID( + [in] DWORD dwWin32ThreadId, + [out] SCRIPTTHREADID *pstidThread + ); + + HRESULT GetScriptThreadState( + [in] SCRIPTTHREADID stidThread, + [out] SCRIPTTHREADSTATE *pstsState + ); + + HRESULT InterruptScriptThread( + [in] SCRIPTTHREADID stidThread, + [in] const EXCEPINFO *pexcepinfo, + [in] DWORD dwFlags + ); + + HRESULT Clone( + [out] IActiveScript **ppscript + ); +} + +cpp_quote("typedef IActiveScript *PIActiveScript;") + +[ +object, +uuid(BB1A2AE2-A4F9-11cf-8F20-00805F2CD064), +pointer_default(unique) +] +interface IActiveScriptParse32 : IUnknown +{ + HRESULT InitNew(void); + + HRESULT AddScriptlet( + [in] LPCOLESTR pstrDefaultName, + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrItemName, + [in] LPCOLESTR pstrSubItemName, + [in] LPCOLESTR pstrEventName, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] BSTR *pbstrName, + [out] EXCEPINFO *pexcepinfo + ); + + HRESULT ParseScriptText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] VARIANT *pvarResult, + [out] EXCEPINFO *pexcepinfo + ); +} + +[ + object, + uuid(c7ef7658-e1ee-480e-97ea-d52cb4d76d17), + pointer_default(unique) +] +interface IActiveScriptParse64 : IUnknown +{ + HRESULT InitNew(void); + + HRESULT AddScriptlet( + [in] LPCOLESTR pstrDefaultName, + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrItemName, + [in] LPCOLESTR pstrSubItemName, + [in] LPCOLESTR pstrEventName, + [in] LPCOLESTR pstrDelimiter, + [in] DWORDLONG dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] BSTR *pbstrName, + [out] EXCEPINFO *pexcepinfo + ); + + HRESULT ParseScriptText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORDLONG dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] VARIANT *pvarResult, + [out] EXCEPINFO *pexcepinfo + ); +} + +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IActiveScriptParse IActiveScriptParse64") +cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse64") +cpp_quote("#else") +cpp_quote("#define IActiveScriptParse IActiveScriptParse32") +cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse32") +cpp_quote("#endif") + +cpp_quote("typedef IActiveScriptParse *PIActiveScriptParse;") + +[ +object, +uuid(1CFF0050-6FDD-11d0-9328-00A0C90DCAA9), +pointer_default(unique) +] +interface IActiveScriptParseProcedureOld32 : IUnknown +{ + HRESULT ParseProcedureText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrFormalParams, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] IDispatch **ppdisp + ); +} + +[ + object, + uuid(21f57128-08c9-4638-ba12-22d15d88dc5c), + pointer_default(unique) +] +interface IActiveScriptParseProcedureOld64 : IUnknown +{ + HRESULT ParseProcedureText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrFormalParams, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORDLONG dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] IDispatch **ppdisp + ); +} + +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld64") +cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld64") +cpp_quote("#else") +cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld32") +cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld32") +cpp_quote("#endif") + +[ +object, +uuid(AA5B6A80-B834-11d0-932F-00A0C90DCAA9), +pointer_default(unique) +] +interface IActiveScriptParseProcedure32 : IUnknown +{ + HRESULT ParseProcedureText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrFormalParams, + [in] LPCOLESTR pstrProcedureName, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] IDispatch **ppdisp + ); +} + +[ + object, + uuid(c64713b6-e029-4cc5-9200-438b72890b6a), + pointer_default(unique) +] +interface IActiveScriptParseProcedure64 : IUnknown +{ + HRESULT ParseProcedureText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrFormalParams, + [in] LPCOLESTR pstrProcedureName, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORDLONG dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] IDispatch **ppdisp + ); +} + +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure64") +cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure64") +cpp_quote("#else") +cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure32") +cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure32") +cpp_quote("#endif") + +[ + object, + uuid(71ee5b20-fb04-11d1-b3a8-00a0c911e8b2), + pointer_default(unique) +] +interface IActiveScriptParseProcedure2_32 : IActiveScriptParseProcedure32 +{ +} + +[ + object, + uuid(fe7c4271-210c-448d-9f54-76dab7047b28), + pointer_default(unique) +] +interface IActiveScriptParseProcedure2_64 : IActiveScriptParseProcedure64 +{ +} + +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_64") +cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_64") +cpp_quote("#else") +cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_32") +cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_32") +cpp_quote("#endif") + +[ +object, +uuid(63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9), +pointer_default(unique) +] +interface IBindEventHandler : IUnknown +{ + HRESULT BindHandler( + [in] LPCOLESTR pstrEvent, + [in] IDispatch *pdisp + ); +} + +[ +object, +uuid(B8DA6310-E19B-11d0-933C-00A0C90DCAA9), +pointer_default(unique) +] +interface IActiveScriptStats : IUnknown +{ + HRESULT GetStat( + [in] DWORD stid, + [out] ULONG *pluHi, + [out] ULONG *pluLo + ); + + HRESULT GetStatEx( + [in] REFGUID guid, + [out] ULONG *pluHi, + [out] ULONG *pluLo + ); + + HRESULT ResetStats(void); +} + +[ + object, + uuid(4954e0d0-fbc7-11d1-8410-006008c3fbfc), + pointer_default(unique) +] +interface IActiveScriptProperty : IUnknown +{ + HRESULT GetProperty( + [in] DWORD dwProperty, + [in] VARIANT *pvarIndex, + [out] VARIANT *pvarValue); + + HRESULT SetProperty( + [in] DWORD dwProperty, + [in] VARIANT *pvarIndex, + [in] VARIANT *pvarValue); +} diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/adshlp.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/adshlp.h new file mode 100644 index 00000000..c066768b --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/adshlp.h @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2005 Francois Gouget + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_ADSHLP_H +#define __WINE_ADSHLP_H + +#ifdef __cplusplus +extern "C" { +#endif + +HRESULT WINAPI ADsBuildEnumerator(IADsContainer*,IEnumVARIANT**); +HRESULT WINAPI ADsEnumerateNext(IEnumVARIANT*,ULONG,VARIANT*,ULONG*); +HRESULT WINAPI ADsGetObject(LPCWSTR,REFIID,VOID**); +HRESULT WINAPI ADsOpenObject(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,REFIID,VOID**); +BOOL WINAPI FreeADsMem(LPVOID); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/advpub.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/advpub.h new file mode 100644 index 00000000..9c088a75 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/advpub.h @@ -0,0 +1,290 @@ +/* + * Copyright 2004 Huw D M Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_ADVPUB_H +#define __WINE_ADVPUB_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef S_ASYNCHRONOUS +#define S_ASYNCHRONOUS _HRESULT_TYPEDEF_(0x401E8) +#endif + +typedef struct _CabInfoA +{ + LPSTR pszCab; + LPSTR pszInf; + LPSTR pszSection; + CHAR szSrcPath[MAX_PATH]; + DWORD dwFlags; +} CABINFOA, *PCABINFOA; + +typedef struct _CabInfoW +{ + LPWSTR pszCab; + LPWSTR pszInf; + LPWSTR pszSection; + WCHAR szSrcPath[MAX_PATH]; + DWORD dwFlags; +} CABINFOW, *PCABINFOW; + +DECL_WINELIB_TYPE_AW(CABINFO) +DECL_WINELIB_TYPE_AW(PCABINFO) + +typedef struct _PERUSERSECTIONA +{ + CHAR szGUID[39 /*MAX_GUID_STRING_LEN*/ + 20]; + CHAR szDispName[128]; + CHAR szLocale[10]; + CHAR szStub[MAX_PATH * 4]; + CHAR szVersion[32]; + CHAR szCompID[128]; + DWORD dwIsInstalled; + BOOL bRollback; +} PERUSERSECTIONA, *PPERUSERSECTIONA; + +typedef struct _PERUSERSECTIONW +{ + WCHAR szGUID[39 /*MAX_GUID_STRING_LEN*/ + 20]; + WCHAR szDispName[128]; + WCHAR szLocale[10]; + WCHAR szStub[MAX_PATH * 4]; + WCHAR szVersion[32]; + WCHAR szCompID[128]; + DWORD dwIsInstalled; + BOOL bRollback; +} PERUSERSECTIONW, *PPERUSERSECTIONW; + +DECL_WINELIB_TYPE_AW(PERUSERSECTION) +DECL_WINELIB_TYPE_AW(PPERUSERSECTION) + +typedef struct _StrEntryA +{ + LPSTR pszName; + LPSTR pszValue; +} STRENTRYA, *LPSTRENTRYA; + +typedef struct _StrEntryW +{ + LPWSTR pszName; + LPWSTR pszValue; +} STRENTRYW, *LPSTRENTRYW; + +DECL_WINELIB_TYPE_AW(STRENTRY) +DECL_WINELIB_TYPE_AW(LPSTRENTRY) + +typedef struct _StrTableA +{ + DWORD cEntries; + STRENTRYA* pse; +} STRTABLEA, *LPSTRTABLEA; +typedef const STRTABLEA CSTRTABLEA, *LPCSTRTABLEA; + +typedef struct _StrTableW +{ + DWORD cEntries; + STRENTRYW* pse; +} STRTABLEW, *LPSTRTABLEW; +typedef const STRTABLEW CSTRTABLEW, *LPCSTRTABLEW; + +DECL_WINELIB_TYPE_AW(STRTABLE) +DECL_WINELIB_TYPE_AW(CSTRTABLE) +DECL_WINELIB_TYPE_AW(LPSTRTABLE) +DECL_WINELIB_TYPE_AW(LPCSTRTABLE) + +/* Flags for AddDelBackupEntry */ +#define AADBE_ADD_ENTRY 0x01 +#define AADBE_DEL_ENTRY 0x02 + +/* Flags for AdvInstallFile */ +#define AIF_WARNIFSKIP 0x00000001 +#define AIF_NOSKIP 0x00000002 +#define AIF_NOVERSIONCHECK 0x00000004 +#define AIF_FORCE_FILE_IN_USE 0x00000008 +#define AIF_NOOVERWRITE 0x00000010 +#define AIF_NO_VERSION_DIALOG 0x00000020 +#define AIF_REPLACEONLY 0x00000400 +#define AIF_NOLANGUAGECHECK 0x10000000 +#define AIF_QUIET 0x20000000 + +/* Flags for RunSetupCommand */ +#define RSC_FLAG_INF 0x00000001 +#define RSC_FLAG_SKIPDISKSPACECHECK 0x00000002 +#define RSC_FLAG_QUIET 0x00000004 +#define RSC_FLAG_NGCONV 0x00000008 +#define RSC_FLAG_UPDHLPDLLS 0x00000010 +#define RSC_FLAG_DELAYREGISTEROCX 0x00000200 +#define RSC_FLAG_SETUPAPI 0x00000400 + +/* Flags for DelNode */ +#define ADN_DEL_IF_EMPTY 0x00000001 +#define ADN_DONT_DEL_SUBDIRS 0x00000002 +#define ADN_DONT_DEL_DIR 0x00000004 +#define ADN_DEL_UNC_PATHS 0x00000008 + +/* Flags for RegRestoreAll, RegSaveRestore, RegSaveRestoreOnINF */ +#define IE4_RESTORE 0x00000001 +#define IE4_BACKNEW 0x00000002 +#define IE4_NODELETENEW 0x00000004 +#define IE4_NOMESSAGES 0x00000008 +#define IE4_NOPROGRESS 0x00000010 +#define IE4_NOENUMKEY 0x00000020 +#define IE4_NO_CRC_MAPPING 0x00000040 +#define IE4_REGSECTION 0x00000080 +#define IE4_FRDOALL 0x00000100 +#define IE4_UPDREFCNT 0x00000200 +#define IE4_USEREFCNT 0x00000400 +#define IE4_EXTRAINCREFCNT 0x00000800 + +/* Flags for file save and restore functions */ +#define AFSR_RESTORE IE4_RESTORE +#define AFSR_BACKNEW IE4_BACKNEW +#define AFSR_NODELETENEW IE4_NODELETENEW +#define AFSR_NOMESSAGES IE4_NOMESSAGES +#define AFSR_NOPROGRESS IE4_NOPROGRESS +#define AFSR_UPDREFCNT IE4_UPDREFCNT +#define AFSR_USEREFCNT IE4_USEREFCNT +#define AFSR_EXTRAINCREFCNT IE4_EXTRAINCREFCNT + +HRESULT WINAPI AddDelBackupEntryA(LPCSTR lpcszFileList, LPCSTR lpcszBackupDir, + LPCSTR lpcszBaseName, DWORD dwFlags); +HRESULT WINAPI AddDelBackupEntryW(LPCWSTR lpcszFileList, LPCWSTR lpcszBackupDir, + LPCWSTR lpcszBaseName, DWORD dwFlags); +#define AddDelBackupEntry WINELIB_NAME_AW(AddDelBackupEntry) +HRESULT WINAPI AdvInstallFileA(HWND hwnd, LPCSTR lpszSourceDir, + LPCSTR lpszSourceFile, LPCSTR lpszDestDir, LPCSTR lpszDestFile, + DWORD dwFlags, DWORD dwReserved); +HRESULT WINAPI AdvInstallFileW(HWND hwnd, LPCWSTR lpszSourceDir, + LPCWSTR lpszSourceFile, LPCWSTR lpszDestDir, LPCWSTR lpszDestFile, + DWORD dwFlags, DWORD dwReserved); +#define AdvInstallFile WINELIB_NAME_AW(AdvInstallFile) +HRESULT WINAPI CloseINFEngine(HINF hInf); +HRESULT WINAPI DelNodeA(LPCSTR pszFileOrDirName, DWORD dwFlags); +HRESULT WINAPI DelNodeW(LPCWSTR pszFileOrDirName, DWORD dwFlags); +#define DelNode WINELIB_NAME_AW(DelNode) +HRESULT WINAPI DelNodeRunDLL32A(HWND,HINSTANCE,LPSTR,INT); +HRESULT WINAPI DelNodeRunDLL32W(HWND,HINSTANCE,LPWSTR,INT); +#define DelNodeRunDLL32 WINELIB_NAME_AW(DelNodeRunDLL32) +HRESULT WINAPI ExecuteCabA( HWND hwnd, CABINFOA* pCab, LPVOID pReserved ); +HRESULT WINAPI ExecuteCabW( HWND hwnd, CABINFOW* pCab, LPVOID pReserved ); +#define ExecuteCab WINELIB_NAME_AW(ExecuteCab) +HRESULT WINAPI ExtractFilesA(LPCSTR,LPCSTR,DWORD,LPCSTR,LPVOID,DWORD); +HRESULT WINAPI ExtractFilesW(LPCWSTR,LPCWSTR,DWORD,LPCWSTR,LPVOID,DWORD); +#define ExtractFiles WINELIB_NAME_AW(ExtractFiles) +HRESULT WINAPI FileSaveMarkNotExistA(LPSTR pszFileList, LPSTR pszDir, LPSTR pszBaseName); +HRESULT WINAPI FileSaveMarkNotExistW(LPWSTR pszFileList, LPWSTR pszDir, LPWSTR pszBaseName); +#define FileSaveMarkNotExist WINELIB_NAME_AW(FileSaveMarkNotExist) +HRESULT WINAPI FileSaveRestoreA(HWND hDlg, LPSTR pszFileList, LPSTR pszDir, + LPSTR pszBaseName, DWORD dwFlags); +HRESULT WINAPI FileSaveRestoreW(HWND hDlg, LPWSTR pszFileList, LPWSTR pszDir, + LPWSTR pszBaseName, DWORD dwFlags); +#define FileSaveRestore WINELIB_NAME_AW(FileSaveRestore) +HRESULT WINAPI FileSaveRestoreOnINFA(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF, + LPCSTR pszSection, LPCSTR pszBackupDir, LPCSTR pszBaseBackupFile, DWORD dwFlags); +HRESULT WINAPI FileSaveRestoreOnINFW(HWND hWnd, LPCWSTR pszTitle, LPCWSTR pszINF, + LPCWSTR pszSection, LPCWSTR pszBackupDir, LPCWSTR pszBaseBackupFile, DWORD dwFlags); +#define FileSaveRestoreOnINF WINELIB_NAME_AW(FileSaveRestoreOnINF) +HRESULT WINAPI GetVersionFromFileA(LPCSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion); +HRESULT WINAPI GetVersionFromFileW(LPCWSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion); +#define GetVersionFromFile WINELIB_NAME_AW(GetVersionFromFile) +HRESULT WINAPI GetVersionFromFileExA(LPCSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion); +HRESULT WINAPI GetVersionFromFileExW(LPCWSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion); +#define GetVersionFromFileEx WINELIB_NAME_AW(GetVersionFromFileEx) +BOOL WINAPI IsNTAdmin(DWORD,LPDWORD); +INT WINAPI LaunchINFSectionA(HWND,HINSTANCE,LPSTR,INT); +INT WINAPI LaunchINFSectionW(HWND,HINSTANCE,LPWSTR,INT); +#define LaunchINFSection WINELIB_NAME_AW(LaunchINFSection) +HRESULT WINAPI LaunchINFSectionExA(HWND,HINSTANCE,LPSTR,INT); +HRESULT WINAPI LaunchINFSectionExW(HWND,HINSTANCE,LPWSTR,INT); +#define LaunchINFSectionEx WINELIB_NAME_AW(LaunchINFSectionEx) +DWORD WINAPI NeedRebootInit(VOID); +BOOL WINAPI NeedReboot(DWORD dwRebootCheck); +HRESULT WINAPI OpenINFEngineA(LPCSTR pszInfFilename, LPCSTR pszInstallSection, + DWORD dwFlags, HINF *phInf, PVOID pvReserved); +HRESULT WINAPI OpenINFEngineW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSection, + DWORD dwFlags, HINF *phInf, PVOID pvReserved); +#define OpenINFEngine WINELIB_NAME_AW(OpenINFEngine) +HRESULT WINAPI RebootCheckOnInstallA(HWND hWnd, LPCSTR pszINF, LPCSTR pszSec, DWORD dwReserved); +HRESULT WINAPI RebootCheckOnInstallW(HWND hWnd, LPCWSTR pszINF, LPCWSTR pszSec, DWORD dwReserved); +#define RebootCheckOnInstall WINELIB_NAME_AW(RebootCheckOnInstall) +HRESULT WINAPI RegInstallA(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTable); +HRESULT WINAPI RegInstallW(HMODULE hm, LPCWSTR pszSection, const STRTABLEW* pstTable); +#define RegInstall WINELIB_NAME_AW(RegInstall) +HRESULT WINAPI RegRestoreAllA(HWND hWnd, LPSTR pszTitleString, HKEY hkBackupKey); +HRESULT WINAPI RegRestoreAllW(HWND hWnd, LPWSTR pszTitleString, HKEY hkBackupKey); +#define RegRestoreAll WINELIB_NAME_AW(RegRestoreAll) +HRESULT WINAPI RegSaveRestoreA(HWND hWnd, LPCSTR pszTitleString, HKEY hkBackupKey, + LPCSTR pcszRootKey, LPCSTR pcszSubKey, LPCSTR pcszValueName, DWORD dwFlags); +HRESULT WINAPI RegSaveRestoreW(HWND hWnd, LPCWSTR pszTitleString, HKEY hkBackupKey, + LPCWSTR pcszRootKey, LPCWSTR pcszSubKey, LPCWSTR pcszValueName, DWORD dwFlags); +#define RegSaveRestore WINELIB_NAME_AW(RegSaveRestore) +HRESULT WINAPI RegSaveRestoreOnINFA(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF, + LPCSTR pszSection, HKEY hHKLMBackKey, HKEY hHKCUBackKey, DWORD dwFlags); +HRESULT WINAPI RegSaveRestoreOnINFW(HWND hWnd, LPCWSTR pszTitle, LPCWSTR pszINF, + LPCWSTR pszSection, HKEY hHKLMBackKey, HKEY hHKCUBackKey, DWORD dwFlags); +#define RegSaveRestoreOnINF WINELIB_NAME_AW(RegSaveRestoreOnINF) +HRESULT WINAPI RunSetupCommandA(HWND hWnd, + LPCSTR szCmdName, LPCSTR szInfSection, LPCSTR szDir, LPCSTR lpszTitle, + HANDLE *phEXE, DWORD dwFlags, LPVOID pvReserved); +HRESULT WINAPI RunSetupCommandW(HWND hWnd, + LPCWSTR szCmdName, LPCWSTR szInfSection, LPCWSTR szDir, LPCWSTR lpszTitle, + HANDLE *phEXE, DWORD dwFlags, LPVOID pvReserved); +#define RunSetupCommand WINELIB_NAME_AW(RunSetupCommand) +HRESULT WINAPI SetPerUserSecValuesA(PERUSERSECTIONA* pPerUser); +HRESULT WINAPI SetPerUserSecValuesW(PERUSERSECTIONW* pPerUser); +#define SetPerUserSecValues WINELIB_NAME_AW(SetPerUserSecValues) +HRESULT WINAPI TranslateInfStringA(LPCSTR pszInfFilename, LPCSTR pszInstallSection, + LPCSTR pszTranslateSection, LPCSTR pszTranslateKey, LPSTR pszBuffer, + DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved); +HRESULT WINAPI TranslateInfStringW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSection, + LPCWSTR pszTranslateSection, LPCWSTR pszTranslateKey, LPWSTR pszBuffer, + DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved); +#define TranslateInfString WINELIB_NAME_AW(TranslateInfString) +HRESULT WINAPI TranslateInfStringExA(HINF hInf, LPCSTR pszInfFilename, + LPCSTR pszTranslateSection, LPCSTR pszTranslateKey, LPSTR pszBuffer, + DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved); +HRESULT WINAPI TranslateInfStringExW(HINF hInf, LPCWSTR pszInfFilename, + LPCWSTR pszTranslateSection, LPCWSTR pszTranslateKey, LPWSTR pszBuffer, + DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved); +#define TranslateInfStringEx WINELIB_NAME_AW(TranslateInfStringEx) +HRESULT WINAPI UserInstStubWrapperA(HWND hWnd, HINSTANCE hInstance, LPSTR pszParms, INT nShow); +HRESULT WINAPI UserInstStubWrapperW(HWND hWnd, HINSTANCE hInstance, LPWSTR pszParms, INT nShow); +#define UserInstStubWrapper WINELIB_NAME_AW(UserInstStubWrapper) +HRESULT WINAPI UserUnInstStubWrapperA(HWND hWnd, HINSTANCE hInstance, LPSTR pszParms, INT nShow); +HRESULT WINAPI UserUnInstStubWrapperW(HWND hWnd, HINSTANCE hInstance, LPWSTR pszParms, INT nShow); +#define UserUnInstStubWrapper WINELIB_NAME_AW(UserUnInstStubWrapper) + +#ifdef __cplusplus +} +#endif + +#endif /* __WINE_ADVPUB_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/af_irda.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/af_irda.h new file mode 100644 index 00000000..d204e53d --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/af_irda.h @@ -0,0 +1,110 @@ +/* + * Copyright 2009 Juan Lang + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef AF_IRDA_H +#define AF_IRDA_H + +typedef struct _IRDA_DEVICE_INFO +{ + UCHAR irdaDeviceID[4]; + char irdaDeviceName[22]; + UCHAR irdaDeviceHints1; + UCHAR irdaDeviceHints2; + UCHAR irdaCharSet; +} IRDA_DEVICE_INFO, *PIRDA_DEVICE_INFO; + +typedef struct _DEVICELIST +{ + ULONG numDevice; + IRDA_DEVICE_INFO Device[1]; +} DEVICELIST, *PDEVICELIST; + +typedef struct _SOCKADDR_IRDA +{ + USHORT irdaAddressFamily; + UCHAR irdaDeviceID[4]; + char irdaServiceName[25]; +} SOCKADDR_IRDA, *PSOCKADDR_IRDA, *LPSOCKADDR_IRDA; + +#ifdef USE_WS_PREFIX + +/* Socket levels and options */ +#define WS_SOL_IRLMP 0xff + +#define WS_IRLMP_ENUMDEVICES ((ULONG)0x10) +#define WS_IRLMP_IAS_SET ((ULONG)0x11) +#define WS_IRLMP_IAS_QUERY ((ULONG)0x12) +#define WS_IRLMP_SEND_PDU_LEN ((ULONG)0x13) +#define WS_IRLMP_EXCLUSIVE_MODE ((ULONG)0x14) +#define WS_IRLMP_IRLPT_MODE ((ULONG)0x15) +#define WS_IRLMP_9WIRE_MODE ((ULONG)0x16) +#define WS_IRLMP_TINYTP_MODE ((ULONG)0x17) +#define WS_IRLMP_PARAMETERS ((ULONG)0x18) +#define WS_IRLMP_DISCOVER_MODE ((ULONG)0x19) +#define WS_IRLMP_SHARP_MODE ((ULONG)0x20) + +#define WS_IAS_MAX_CLASSNAME 64 +#define WS_IAS_MAX_ATTRIBNAME 256 + +#else + +/* Socket levels and options */ +#define SOL_IRLMP 0xff + +#define IRLMP_ENUMDEVICES ((ULONG)0x10) +#define IRLMP_IAS_SET ((ULONG)0x11) +#define IRLMP_IAS_QUERY ((ULONG)0x12) +#define IRLMP_SEND_PDU_LEN ((ULONG)0x13) +#define IRLMP_EXCLUSIVE_MODE ((ULONG)0x14) +#define IRLMP_IRLPT_MODE ((ULONG)0x15) +#define IRLMP_9WIRE_MODE ((ULONG)0x16) +#define IRLMP_TINYTP_MODE ((ULONG)0x17) +#define IRLMP_PARAMETERS ((ULONG)0x18) +#define IRLMP_DISCOVER_MODE ((ULONG)0x19) +#define IRLMP_SHARP_MODE ((ULONG)0x20) + +#define IAS_MAX_CLASSNAME 64 +#define IAS_MAX_ATTRIBNAME 256 + +#endif + +#define IAS_MAX_OCTET_STRING 1024 +#define IAS_MAX_USER_STRING 256 + +#define LmCharSetASCII 0x00 +#define LmCharSetISO_8859_1 0x01 +#define LmCharSetISO_8859_2 0x02 +#define LmCharSetISO_8859_3 0x03 +#define LmCharSetISO_8859_4 0x04 +#define LmCharSetISO_8859_5 0x05 +#define LmCharSetISO_8859_6 0x06 +#define LmCharSetISO_8859_7 0x07 +#define LmCharSetISO_8859_8 0x08 +#define LmCharSetISO_8859_9 0x09 +#define LmCharSetUNICODE 0xff + +#endif /* AF_IRDA_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/amaudio.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/amaudio.h new file mode 100644 index 00000000..cc1e46b0 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/amaudio.h @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2010 Maarten Lankhorst for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __AMAUDIO__ +#define __AMAUDIO__ + +#include +#include + +#undef INTERFACE +#define INTERFACE IAMDirectSound + +DECLARE_INTERFACE_(IAMDirectSound,IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IAMDirectSound methods ***/ + STDMETHOD(GetDirectSoundInterface)(THIS_ IDirectSound **ds) PURE; + STDMETHOD(GetPrimaryBufferInterface)(THIS_ IDirectSoundBuffer **buf) PURE; + STDMETHOD(GetSecondaryBufferInterface)(THIS_ IDirectSoundBuffer **buf) PURE; + STDMETHOD(ReleaseDirectSoundInterface)(THIS_ IDirectSound *ds) PURE; + STDMETHOD(ReleasePrimaryBufferInterface)(THIS_ IDirectSoundBuffer *buf) PURE; + STDMETHOD(ReleaseSecondaryBufferInterface)(THIS_ IDirectSoundBuffer *buf) PURE; + STDMETHOD(SetFocusWindow)(THIS_ HWND hwnd, BOOL bgaudible) PURE; + STDMETHOD(GetFocusWindow)(THIS_ HWND *hwnd, BOOL *bgaudible) PURE; +}; +#undef INTERFACE + +#endif diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/amstream.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/amstream.idl new file mode 100644 index 00000000..d9664bb0 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/amstream.idl @@ -0,0 +1,327 @@ +/* + * Copyright 2004 Christian Costa + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +import "unknwn.idl"; +import "mmstream.idl"; +import "strmif.idl"; + +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("#include ") + +cpp_quote("#if 0") +interface IDirectDraw; +interface IDirectDrawSurface; +cpp_quote("#endif") + +interface IAMMultiMediaStream; +interface IAMMediaStream; +interface IMediaStreamFilter; +interface IAMMediaTypeStream; +interface IAMMediaTypeSample; + +enum { + AMMSF_NOGRAPHTHREAD = 0x00000001 +}; + +enum { + AMMSF_ADDDEFAULTRENDERER = 0x00000001, + AMMSF_CREATEPEER = 0x00000002, + AMMSF_STOPIFNOSAMPLES = 0x00000004, + AMMSF_NOSTALL = 0x00000008 +}; + +enum { + AMMSF_RENDERTYPEMASK = 0x00000003, + AMMSF_RENDERTOEXISTING = 0x00000000, + AMMSF_RENDERALLSTREAMS = 0x00000001, + AMMSF_NORENDER = 0x00000002, + AMMSF_NOCLOCK = 0x00000004, + AMMSF_RUN = 0x00000008 +}; + + +typedef [v1_enum] enum { + Disabled = 0, + ReadData = 1, + RenderData = 2 +} OUTPUT_STATE; + +[ +object, +uuid(7DB01C96-C0C3-11d0-8FF1-00C04FD9189D), +dual, +helpstring("IDirectShowStream Interface"), +pointer_default(unique) +] +interface IDirectShowStream : IDispatch +{ + [propget, id(1), helpstring("property FileName")] HRESULT FileName([out, retval] BSTR *pVal); + [propput, id(1), helpstring("property FileName")] HRESULT FileName([in] BSTR newVal); + [propget, id(2), helpstring("property Video")] HRESULT Video([out, retval] OUTPUT_STATE *pVal); + [propput, id(2), helpstring("propetry Video")] HRESULT Video([in] OUTPUT_STATE newVal); + [propget, id(3), helpstring("property Audio")] HRESULT Audio([out, retval] OUTPUT_STATE *pVal); + [propput, id(3), helpstring("propetry Audio")] HRESULT Audio([in] OUTPUT_STATE newVal); +}; + +[ +object, +uuid(BEBE595C-9A6F-11d0-8FDE-00C04FD9189D), +pointer_default(unique) +] +interface IAMMultiMediaStream : IMultiMediaStream +{ + HRESULT Initialize( + [in] STREAM_TYPE StreamType, + [in] DWORD dwFlags, + [in] IGraphBuilder *pFilterGraph); + + HRESULT GetFilterGraph( + [out] IGraphBuilder **ppGraphBuilder); + + HRESULT GetFilter( + [out] IMediaStreamFilter **ppFilter); + + HRESULT AddMediaStream( + [in] IUnknown *pStreamObject, + [in] const MSPID *PurposeId, + [in] DWORD dwFlags, + [out] IMediaStream **ppNewStream); + + HRESULT OpenFile( + [in] LPCWSTR pszFileName, + [in] DWORD dwFlags); + + HRESULT OpenMoniker( + [in] IBindCtx *pCtx, + [in] IMoniker *pMoniker, + [in] DWORD dwFlags); + + HRESULT Render( + [in] DWORD dwFlags); +} + + +[ +object, +uuid(BEBE595D-9A6F-11d0-8FDE-00C04FD9189D), +pointer_default(unique) +] +interface IAMMediaStream : IMediaStream +{ + HRESULT Initialize( + [in] IUnknown *pSourceObject, + [in] DWORD dwFlags, + [in] REFMSPID PurposeId, + [in] const STREAM_TYPE StreamType); + + HRESULT SetState( + [in] FILTER_STATE State); + + HRESULT JoinAMMultiMediaStream( + [in] IAMMultiMediaStream *pAMMultiMediaStream); + + HRESULT JoinFilter( + [in] IMediaStreamFilter *pMediaStreamFilter); + + HRESULT JoinFilterGraph( + [in] IFilterGraph *pFilterGraph); +} + + +[ +object, +local, +uuid(BEBE595E-9A6F-11d0-8FDE-00C04FD9189D), +pointer_default(unique) +] +interface IMediaStreamFilter : IBaseFilter +{ + HRESULT AddMediaStream( + [in] IAMMediaStream *pAMMediaStream); + + HRESULT GetMediaStream( + [in] REFMSPID idPurpose, + [out] IMediaStream **ppMediaStream); + + HRESULT EnumMediaStreams( + [in] long Index, + [out] IMediaStream **ppMediaStream); + + HRESULT SupportSeeking( + [in] BOOL bRenderer); + + HRESULT ReferenceTimeToStreamTime( + [in] [out] REFERENCE_TIME *pTime); + + HRESULT GetCurrentStreamTime( + [out] REFERENCE_TIME *pCurrentStreamTime); + + HRESULT WaitUntil( + [in] REFERENCE_TIME WaitStreamTime); + + HRESULT Flush( + [in] BOOL bCancelEOS); + + HRESULT EndOfStream(); +} + + +[ +object, +local, +uuid(AB6B4AFC-F6E4-11d0-900D-00C04FD9189D), +pointer_default(unique) +] +interface IDirectDrawMediaSampleAllocator : IUnknown +{ + HRESULT GetDirectDraw(IDirectDraw **ppDirectDraw); +} + + +[ +object, +local, +uuid(AB6B4AFE-F6E4-11d0-900D-00C04FD9189D), +pointer_default(unique) +] +interface IDirectDrawMediaSample : IUnknown +{ + HRESULT GetSurfaceAndReleaseLock( + [out] IDirectDrawSurface **ppDirectDrawSurface, + [out] RECT * pRect); + + HRESULT LockMediaSamplePointer(void); +} + + +[ +object, +local, +uuid(AB6B4AFA-F6E4-11d0-900D-00C04FD9189D), +pointer_default(unique) +] + +interface IAMMediaTypeStream : IMediaStream +{ + HRESULT GetFormat( + [out] AM_MEDIA_TYPE * pMediaType, + [in] DWORD dwFlags); + + HRESULT SetFormat( + [in] AM_MEDIA_TYPE * pMediaType, + [in] DWORD dwFlags); + + HRESULT CreateSample( + [in] long lSampleSize, + [in] BYTE * pbBuffer, + [in] DWORD dwFlags, + [in] IUnknown *pUnkOuter, + [out] IAMMediaTypeSample ** ppAMMediaTypeSample); + + HRESULT GetStreamAllocatorRequirements( + [out] ALLOCATOR_PROPERTIES *pProps); + + HRESULT SetStreamAllocatorRequirements( + [in] ALLOCATOR_PROPERTIES *pProps); +} + + +[ +object, +local, +uuid(AB6B4AFB-F6E4-11d0-900D-00C04FD9189D), +pointer_default(unique) +] +interface IAMMediaTypeSample : IStreamSample +{ + HRESULT SetPointer( + [in] BYTE *pBuffer, + [in] long lSize); + + HRESULT GetPointer( + [out] BYTE ** ppBuffer); + + long GetSize(void); + + HRESULT GetTime( + [out] REFERENCE_TIME * pTimeStart, + [out] REFERENCE_TIME * pTimeEnd); + + HRESULT SetTime( + [in] REFERENCE_TIME * pTimeStart, + [in] REFERENCE_TIME * pTimeEnd); + + HRESULT IsSyncPoint(void); + + HRESULT SetSyncPoint( + BOOL bIsSyncPoint); + + HRESULT IsPreroll(void); + + HRESULT SetPreroll( + BOOL bIsPreroll); + + long GetActualDataLength(void); + + HRESULT SetActualDataLength(long Len); + + HRESULT GetMediaType( + AM_MEDIA_TYPE **ppMediaType); + + HRESULT SetMediaType( + AM_MEDIA_TYPE *pMediaType); + + HRESULT IsDiscontinuity(void); + + HRESULT SetDiscontinuity( + BOOL bDiscontinuity); + + HRESULT GetMediaTime( + [out] LONGLONG * pTimeStart, + [out] LONGLONG * pTimeEnd); + + HRESULT SetMediaTime( + [in] LONGLONG * pTimeStart, + [in] LONGLONG * pTimeEnd); +} + +[ + uuid(49C47CE5-9BA4-11d0-8212-00C04FC32C45) +] +coclass AMMultiMediaStream +{ + [default] dispinterface IDirectShowStream; +} + +cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") +cpp_quote("DEFINE_GUID(CLSID_AMAudioStream, 0x8496e040, 0xaf4c, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") +cpp_quote("DEFINE_GUID(CLSID_AMAudioData, 0xf2468580, 0xaf8a, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") +cpp_quote("DEFINE_GUID(CLSID_AMMediaTypeStream, 0xcf0f2f7c, 0xf7bf, 0x11d0, 0x90, 0x0d, 0x00, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);") +cpp_quote("DEFINE_GUID(CLSID_MediaStreamFilter, 0x49c47ce0, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/amvideo.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/amvideo.idl new file mode 100644 index 00000000..547025ff --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/amvideo.idl @@ -0,0 +1,250 @@ +/* + * Copyright (C) 2003 Robert Shearman + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +import "objidl.idl"; + +/* trick widl into thinking that it knows the DirectDraw types + * as there is no IDL file for them (yet) */ +cpp_quote("#if 0") +interface IDirectDraw; +typedef void DDSURFACEDESC,DDCAPS; +typedef DWORD RGBQUAD; +typedef LONGLONG REFERENCE_TIME; +typedef struct +{ + DWORD biSize; + LONG biWidth; + LONG biHeight; + WORD biPlanes; + WORD biBitCount; + DWORD biCompression; + DWORD biSizeImage; + LONG biXPelsPerMeter; + LONG biYPelsPerMeter; + DWORD biClrUsed; + DWORD biClrImportant; +} BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER; +cpp_quote("#endif") + +cpp_quote("#include ") + +cpp_quote("#define AMDDS_NONE 0x00") +cpp_quote("#define AMDDS_DCIPS 0x01") +cpp_quote("#define AMDDS_PS 0x02") +cpp_quote("#define AMDDS_RGBOVR 0x04") +cpp_quote("#define AMDDS_YUVOVR 0x08") +cpp_quote("#define AMDDS_RGBOFF 0x10") +cpp_quote("#define AMDDS_YUVOFF 0x20") +cpp_quote("#define AMDDS_RGBFLP 0x40") +cpp_quote("#define AMDDS_YUVFLP 0x80") +cpp_quote("#define AMDDS_ALL 0xFF") +cpp_quote("#define AMDDS_DEFAULT AMDDS_ALL") + +cpp_quote("#define AMDDS_YUV (AMDDS_YUVOFF | AMDDS_YUVOVR | AMDDS_YUVFLP)") +cpp_quote("#define AMDDS_RGB (AMDDS_RGBOFF | AMDDS_RGBOVR | AMDDS_RGBFLP)") +cpp_quote("#define AMDSS_PRIMARY (AMDDS_DCIPS | AMDDS_PS)") + +[ + object, + /* uuid(36d39eb0-dd75-11ce-bf0e-00aa0055595a) conflicts with uuids.h */ + pointer_default(unique), + local +] +interface IDirectDrawVideo : IUnknown +{ + HRESULT GetSwitches([out] DWORD * pSwitches); + HRESULT SetSwitches([in] DWORD Switches); + HRESULT GetCaps([out] DDCAPS * pCaps); + HRESULT GetEmulatedCaps([out] DDCAPS *pCaps); + HRESULT GetSurfaceDesc([out] DDSURFACEDESC * pSurfaceDesc); + HRESULT GetFourCCCodes([out] DWORD * pCount, [out] DWORD * pCodes); + HRESULT SetDirectDraw([in] IDirectDraw *ddraw); + HRESULT GetDirectDraw([out] IDirectDraw **ddraw); + HRESULT GetSurfaceType([out] DWORD * pSurfaceType); + HRESULT SetDefault(); + HRESULT UseScanLine([in] long UseScanLine); + HRESULT CanUseScanLine([out] long * UseScanLine); + HRESULT UseOverlayStretch([in] long UseOverlayStretch); + HRESULT CanUseOverlayStretch([out] long * UseOverlayStretch); + HRESULT UseWhenFullScreen([in] long UseWhenFullScreen); + HRESULT WillUseFullScreen([out] long * UseWhenFullScreen); +} + +[ + object, + /* uuid(1bd0ecb0-f8e2-11ce-aac6-0020af0b99a3) conflicts with uuids.h */ + pointer_default(unique), + local +] +interface IQualProp : IUnknown +{ + [propget] HRESULT FramesDroppedInRenderer([out] int * pcFrames); + [propget] HRESULT FramesDrawn([out] int * pcFramesDrawn); + [propget] HRESULT AvgFrameRate([out] int * piAvgFrameRate); + [propget] HRESULT Jitter([out] int * iJitter); + [propget] HRESULT AvgSyncOffset([out] int * piAvg); + [propget] HRESULT DevSyncOffset([out] int * piDev); +} + +[ + object, + /* uuid(dd1d7110-7836-11cf-bf47-00aa0055595a) conflicts with uuids.h */ + pointer_default(unique) +] +interface IFullScreenVideo : IUnknown +{ + HRESULT CountModes([out] long * pModes); + HRESULT GetModeInfo([in] long Mode, [out] long * pWidth, [out] long * pHeight, [out] long * pDepth); + HRESULT GetCurrentMode([out] long * pMode); + HRESULT IsModeAvailable([in] long Mode); + HRESULT IsModeEnabled([in] long Mode); + HRESULT SetEnabled([in] long Mode, [in] long bEnabled); + HRESULT GetClipFactor([out] long * pClipFactor); + HRESULT SetClipFactor([in] long ClipFactor); + HRESULT SetMessageDrain([in] HWND hwnd); + HRESULT GetMessageDrain([out] HWND * hwnd); + HRESULT SetMonitor([in] long Monitor); + HRESULT GetMonitor([out] long * Monitor); + HRESULT HideOnDeactivate([in] long Hide); + HRESULT IsHideOnDeactivate(); + HRESULT SetCaption([in] BSTR strCaption); + HRESULT GetCaption([out] BSTR * pstrCaption); + HRESULT SetDefault(); +} + +[ + object, + /* uuid(53479470-f1dd-11cf-bc42-00aa00ac74f6) conflicts with uuids.h */ + pointer_default(unique), + local +] +interface IFullScreenVideoEx : IFullScreenVideo +{ + HRESULT SetAcceleratorTable([in] HWND hwnd, [in] HACCEL hAccel); + HRESULT GetAcceleratorTable([out] HWND * phwnd, [out] HACCEL * phAccel); + HRESULT KeepPixelAspectRatio([in] long KeepAspect); + /* FIXME: not sure is this next method is an [out] */ + HRESULT IsKeepPixelAspectRatio([out] long * pKeepAspect); +} + +[ + object, + /* uuid(61ded640-e912-11ce-a099-00aa00479a58) conflicts with uuids.h */ + pointer_default(unique), + local +] +interface IBaseVideoMixer : IUnknown +{ + HRESULT SetLeadPin([in] int iPin); + HRESULT GetLeadPin([out] int * piPin); + HRESULT GetInputPinCount([out] int * piPinCount); + HRESULT IsUsingClock([out] int * pbValue); + HRESULT SetUsingClock([in] int bValue); + HRESULT GetClockPeriod([out] int * pbValue); + HRESULT SetClockPeriod([in] int bValue); +} + +#define iPALETTE_COLORS 256 +#define iMASK_COLORS 3 + +cpp_quote("#define iPALETTE_COLORS 256") +cpp_quote("#define iEGA_COLORS 16") +cpp_quote("#define iMASK_COLORS 3") +cpp_quote("#define iTRUECOLOR 16") +cpp_quote("#define iRED 0") +cpp_quote("#define iGREEN 1") +cpp_quote("#define iBLUE 2") +cpp_quote("#define iPALETTE 8") +cpp_quote("#define iMAXBITS 8") + +typedef struct tag_TRUECOLORINFO +{ + DWORD dwBitMasks[iMASK_COLORS]; + RGBQUAD bmiColors[iPALETTE_COLORS]; +} TRUECOLORINFO; + +typedef struct tagVIDEOINFOHEADER +{ + RECT rcSource; + RECT rcTarget; + DWORD dwBitRate; + DWORD dwBitErrorRate; + REFERENCE_TIME AvgTimePerFrame; + + BITMAPINFOHEADER bmiHeader; +} VIDEOINFOHEADER; + +typedef struct tagVIDEOINFO +{ + RECT rcSource; + RECT rcTarget; + DWORD dwBitRate; + DWORD dwBitErrorRate; + REFERENCE_TIME AvgTimePerFrame; + + BITMAPINFOHEADER bmiHeader; + + union + { + RGBQUAD bmiColors[iPALETTE_COLORS]; + DWORD dwBitMasks[iMASK_COLORS]; + TRUECOLORINFO TrueColorInfo; + }; +} VIDEOINFO; + +typedef struct tagMPEG1VIDEOINFO +{ + VIDEOINFOHEADER hdr; + DWORD dwStartTimeCode; + DWORD cbSequenceHeader; + BYTE bSequenceHeader[1]; +} MPEG1VIDEOINFO; + +cpp_quote("#define MAX_SIZE_MPEG1_SEQUENCE_INFO 140") +cpp_quote("#define MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader)") + +typedef struct tagAnalogVideoInfo +{ + RECT rcSource; + RECT rcTarget; + DWORD dwActiveWidth; + DWORD dwActiveHeight; + REFERENCE_TIME AvgTimePerFrame; +} ANALOGVIDEOINFO; + +typedef enum +{ + AM_PROPERTY_FRAMESTEP_STEP = 0x01, + AM_PROPERTY_FRAMESTEP_CANCEL = 0x02, + AM_PROPERTY_FRAMESTEP_CANSTEP = 0x03, + AM_PROPERTY_FRAMESTEP_CANSTEPMULTIPLE = 0x04 +} AM_PROPERTY_FRAMESTEP; + +typedef struct _AM_FRAMESTEP_STEP +{ + DWORD dwFramesToStep; +} AM_FRAMESTEP_STEP; diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/appcompatapi.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/appcompatapi.h new file mode 100644 index 00000000..3cbe6e52 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/appcompatapi.h @@ -0,0 +1,41 @@ +/* + * Copyright 2012 Detlef Riekenberg + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __APPCOMPAT_H +#define __APPCOMPAT_H + +#ifdef __cplusplus +extern "C" { +#endif + +BOOL WINAPI ApphelpCheckShellObject(REFCLSID, BOOL, ULONGLONG *); + +#ifdef __cplusplus +} +#endif + +#endif /* __APPCOMPAT_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/appmgmt.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/appmgmt.h new file mode 100644 index 00000000..c018a0e0 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/appmgmt.h @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2005 Mike McCormack + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef _APPMGMT_H +#define _APPMGMT_H + +typedef struct _MANAGEDAPPLICATION +{ + LPWSTR pszPackageName; + LPWSTR pszPublisher; + DWORD dwVersionHi; + DWORD dwVersionLo; + DWORD dwRevision; + GUID GpoId; + LPWSTR pszPolicyName; + GUID ProductId; + LANGID Language; + LPWSTR pszOwner; + LPWSTR pszCompany; + LPWSTR pszComments; + LPWSTR pszContact; + LPWSTR pszSupportUrl; + DWORD dwPathType; + BOOL bInstalled; +} MANAGEDAPPLICATION, *PMANAGEDAPPLICATION; + + +#ifdef __cplusplus +extern "C" { +#endif + +DWORD WINAPI CommandLineFromMsiDescriptor(WCHAR*,WCHAR*,DWORD*); +DWORD WINAPI GetManagedApplications(GUID*,DWORD,DWORD,LPDWORD,PMANAGEDAPPLICATION*); + +#ifdef __cplusplus +} +#endif + +#endif /* _APPMGMT_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/asptlb.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/asptlb.idl new file mode 100644 index 00000000..ed7a4f45 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/asptlb.idl @@ -0,0 +1,142 @@ +/* + * Copyright (C) 2010 Alistair Leslie-Hughes + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +import "unknwn.idl"; +import "objidl.idl"; +import "oaidl.idl"; + +[ + object, + dual, + uuid(D97A6DA0-A864-11cf-83BE-00A0C90C2BD8) +] +interface IRequestDictionary : IDispatch +{ + [propget] + HRESULT Item(IRequestDictionary *iface, [in, optional] VARIANT Var, + [retval, out] VARIANT *pVariantReturn); + + [restricted, propget] + HRESULT _NewEnum(IRequestDictionary *iface, [retval, out] IUnknown **ppEnumReturn); + + [propget] + HRESULT Count(IRequestDictionary *iface, [retval, out] int *cStrRet); + + [propget] + HRESULT Key(IRequestDictionary *iface, [in] VARIANT VarKey, [retval, out]VARIANT *pvar); +}; + +[ + object, + dual, + uuid(D97A6DA0-A864-11cf-83BE-00A0C90C2BD8) +] +interface IResponse : IDispatch +{ + [propget] + HRESULT Buffer(IResponse *iface, [retval, out] VARIANT_BOOL *fIsBuffering); + + [propput] + HRESULT Buffer(IResponse *iface, [in] VARIANT_BOOL fIsBuffering); + + [propget] + HRESULT ContentType(IResponse *iface, [retval, out] BSTR *pbstrContentTypeRet); + + [propput] + HRESULT ContentType(IResponse *iface, [in] BSTR bstrContentType); + + [propget] + HRESULT Expires(IResponse *iface, [retval, out] VARIANT *pvarExpiresMinutesRet); + + [propput] + HRESULT Expires(IResponse *iface, [in] long lExpiresMinutes); + + [propget] + HRESULT ExpiresAbsolute(IResponse *iface, [retval, out] VARIANT *pvarExpiresRet); + + [propput] + HRESULT ExpiresAbsolute(IResponse *iface, [in] DATE dtExpires); + + [propget] + HRESULT Cookies(IResponse *iface, [retval, out] IRequestDictionary **ppCookies); + + [propget] + HRESULT Status(IResponse *iface, [retval][out] BSTR *pbstrStatusRet); + + [propput] + HRESULT Status(IResponse *iface, [in] BSTR bstrStatus); + + [hidden] + HRESULT Add(IResponse *iface, [in] BSTR bstrHeaderValue, [in] BSTR bstrHeaderName); + + HRESULT AddHeader(IResponse *iface, [in] BSTR bstrHeaderName, [in] BSTR bstrHeaderValue); + + HRESULT AppendToLog(IResponse *iface, [in] BSTR bstrLogEntry); + + HRESULT BinaryWrite(IResponse *iface, [in] VARIANT varInput); + + HRESULT Clear(IResponse *iface); + + HRESULT End(IResponse *iface); + + HRESULT Flush(IResponse *iface); + + HRESULT Redirect(IResponse *iface, [in] BSTR bstrURL); + + HRESULT Write(IResponse *iface, [in] VARIANT varText); + + [hidden] + HRESULT WriteBlock(IResponse *iface, [in] short iBlockNumber); + + HRESULT IsClientConnected(IResponse *iface, [retval, out] VARIANT_BOOL *pfIsClientConnected); + + [propget] + HRESULT get_CharSet( IResponse *iface, [retval, out] BSTR *pbstrCharSetRet); + + [propput] + HRESULT put_CharSet(IResponse *iface, [in] BSTR bstrCharSet); + + HRESULT Pics(IResponse *iface, [in] BSTR bstrHeaderValue); + + [propget] + HRESULT get_CacheControl(IResponse *iface, [retval, out] BSTR *pbstrCacheControl); + + [propput] + HRESULT put_CacheControl(IResponse *iface, [in] BSTR bstrCacheControl); + + [propget] + HRESULT get_CodePage(IResponse *iface, [retval, out] long *plvar); + + [propput] + HRESULT put_CodePage(IResponse *iface, [in] long lvar); + + [propget] + HRESULT get_LCID(IResponse *iface, [retval, out] long *plvar); + + [propput] + HRESULT put_LCID(IResponse *iface, [in] long lvar); +}; diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/asynot.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/asynot.idl new file mode 100644 index 00000000..c97c3c51 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/asynot.idl @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2009 Huw Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +[ + object, + uuid(0c733a96-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface IDBAsynchNotify : IUnknown +{ + [local] + HRESULT OnLowResource([in] DB_DWRESERVE dwReserved); + + [call_as(OnLowResource)] + HRESULT RemoteOnLowResource([in] DB_DWRESERVE dwReserved); + + [local] + HRESULT OnProgress([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] DBCOUNTITEM ulProgress, + [in] DBCOUNTITEM ulProgressMax, + [in] DBASYNCHPHASE eAsynchPhase, + [in, annotation("__in_opt")] LPOLESTR pwszStatusText); + + [call_as(OnProgress)] + HRESULT RemoteOnProgress([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] DBCOUNTITEM ulProgress, + [in] DBCOUNTITEM ulProgressMax, + [in] DBASYNCHPHASE eAsynchPhase, + [in, unique, string] LPOLESTR pwszStatusText); + + [local] + HRESULT OnStop([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] HRESULT hrStatus, + [in, annotation("__in_opt")] LPOLESTR pwszStatusText); + + [call_as(OnStop)] + HRESULT RemoteOnStop([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] HRESULT hrStatus, + [in, unique, string] LPOLESTR pwszStatusText); +} diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/asysta.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/asysta.idl new file mode 100644 index 00000000..70d3d813 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/asysta.idl @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2009 Huw Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +[ + object, + uuid(0c733a95-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface IDBAsynchStatus : IUnknown +{ + [local] + HRESULT Abort([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation); + + [call_as(Abort)] + HRESULT RemoteAbort([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [out] IErrorInfo **ppErrorInfoRem); + + [local] + HRESULT GetStatus([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [out, annotation("__out_opt")] DBCOUNTITEM *pulProgress, + [out, annotation("__out_opt")] DBCOUNTITEM *pulProgressMax, + [out, annotation("__out")] DBASYNCHPHASE *peAsynchPhase, + [out, annotation("__deref_opt_inout_opt")] LPOLESTR *ppwszStatusText); + + [call_as(GetStatus)] + HRESULT RemoteGetStatus([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in, out, unique] DBCOUNTITEM *pulProgress, + [in, out, unique] DBCOUNTITEM *pulProgressMax, + [in, out, unique] DBASYNCHPHASE *peAsynchPhase, + [in, out, unique] LPOLESTR *ppwszStatusText, + [out] IErrorInfo **ppErrorInfoRem); +} diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/atlbase.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/atlbase.h new file mode 100644 index 00000000..24d6eb8e --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/atlbase.h @@ -0,0 +1,275 @@ +/* + * Implementation of the Active Template Library (atl.dll) + * + * Copyright 2004 Aric Stewart for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_ATLBASE_H__ +#define __WINE_ATLBASE_H__ + +#include +#include + +/* Wine extension: we (ab)use _ATL_VER to handle struct layout differences between ATL versions. */ +#define _ATL_VER_30 0x0300 +#define _ATL_VER_70 0x0700 +#define _ATL_VER_80 0x0800 +#define _ATL_VER_100 0x0a00 +#define _ATL_VER_110 0x0b00 + +#ifndef _ATL_VER +#define _ATL_VER _ATL_VER_100 +#endif + +typedef HRESULT (WINAPI _ATL_CREATORFUNC)(void* pv, REFIID riid, LPVOID* ppv); +typedef HRESULT (WINAPI _ATL_CREATORARGFUNC)(void* pv, REFIID riid, LPVOID* ppv, DWORD dw); +typedef HRESULT (WINAPI _ATL_MODULEFUNC)(DWORD dw); +typedef LPCSTR (WINAPI _ATL_DESCRIPTIONFUNCA)(void); +typedef LPCWSTR (WINAPI _ATL_DESCRIPTIONFUNCW)(void); +typedef const struct _ATL_CATMAP_ENTRY* (_ATL_CATMAPFUNC)(void); +typedef void (WINAPI _ATL_TERMFUNC)(DWORD dw); + +typedef CRITICAL_SECTION CComCriticalSection; + +typedef struct _ATL_OBJMAP_ENTRYA_V1_TAG +{ + const CLSID* pclsid; + HRESULT (WINAPI *pfnUpdateRegistry)(BOOL bRegister); + _ATL_CREATORFUNC* pfnGetClassObject; + _ATL_CREATORFUNC* pfnCreateInstance; + IUnknown* pCF; + DWORD dwRegister; + _ATL_DESCRIPTIONFUNCA* pfnGetObjectDescription; +}_ATL_OBJMAP_ENTRYA_V1; + +typedef struct _ATL_OBJMAP_ENTRYW_V1_TAG +{ + const CLSID* pclsid; + HRESULT (WINAPI *pfnUpdateRegistry)(BOOL bRegister); + _ATL_CREATORFUNC* pfnGetClassObject; + _ATL_CREATORFUNC* pfnCreateInstance; + IUnknown* pCF; + DWORD dwRegister; + _ATL_DESCRIPTIONFUNCW* pfnGetObjectDescription; +} _ATL_OBJMAP_ENTRYW_V1; + +typedef struct _ATL_OBJMAP_ENTRYA_TAG +{ + const CLSID* pclsid; + HRESULT (WINAPI *pfnUpdateRegistry)(BOOL bRegister); + _ATL_CREATORFUNC* pfnGetClassObject; + _ATL_CREATORFUNC* pfnCreateInstance; + IUnknown* pCF; + DWORD dwRegister; + _ATL_DESCRIPTIONFUNCA* pfnGetObjectDescription; + _ATL_CATMAPFUNC* pfnGetCategoryMap; + void (WINAPI *pfnObjectMain)(BOOL bStarting); +}_ATL_OBJMAP_ENTRYA; + +typedef struct _ATL_OBJMAP_ENTRYW_TAG +{ + const CLSID* pclsid; + HRESULT (WINAPI *pfnUpdateRegistry)(BOOL bRegister); + _ATL_CREATORFUNC* pfnGetClassObject; + _ATL_CREATORFUNC* pfnCreateInstance; + IUnknown* pCF; + DWORD dwRegister; + _ATL_DESCRIPTIONFUNCW* pfnGetObjectDescription; + _ATL_CATMAPFUNC* pfnGetCategoryMap; + void (WINAPI *pfnObjectMain)(BOOL bStarting); +} _ATL_OBJMAP_ENTRYW, _ATL_OBJMAP_ENTRY30, _ATL_OBJMAP_ENTRY; + + +typedef struct _ATL_TERMFUNC_ELEM_TAG +{ + _ATL_TERMFUNC* pFunc; + DWORD_PTR dw; + struct _ATL_TERMFUNC_ELEM_TAG* pNext; +} _ATL_TERMFUNC_ELEM; + +typedef struct _AtlCreateWndData_TAG +{ + void* m_pThis; + DWORD m_dwThreadID; + struct _AtlCreateWndData_TAG* m_pNext; +} _AtlCreateWndData; + +typedef struct _ATL_MODULEA_TAG +{ + UINT cbSize; + HINSTANCE m_hInst; + HINSTANCE m_hInstResource; + HINSTANCE m_hInstTypeLib; + _ATL_OBJMAP_ENTRYA* m_pObjMap; + LONG m_nLockCnt; + HANDLE m_hHeap; + union + { + CRITICAL_SECTION m_csTypeInfoHolder; + CRITICAL_SECTION m_csStaticDataInit; + } u; + CRITICAL_SECTION m_csWindowCreate; + CRITICAL_SECTION m_csObjMap; + + DWORD dwAtlBuildVer; + _AtlCreateWndData* m_pCreateWndList; + BOOL m_bDestroyHeap; + GUID* pguidVer; + DWORD m_dwHeaps; + HANDLE* m_phHeaps; + int m_nHeap; + _ATL_TERMFUNC_ELEM* m_pTermFuncs; +} _ATL_MODULEA; + +typedef struct _ATL_MODULEW_TAG +{ + UINT cbSize; + HINSTANCE m_hInst; + HINSTANCE m_hInstResource; + HINSTANCE m_hInstTypeLib; + _ATL_OBJMAP_ENTRYW* m_pObjMap; + LONG m_nLockCnt; + HANDLE m_hHeap; + union + { + CRITICAL_SECTION m_csTypeInfoHolder; + CRITICAL_SECTION m_csStaticDataInit; + } u; + CRITICAL_SECTION m_csWindowCreate; + CRITICAL_SECTION m_csObjMap; + + DWORD dwAtlBuildVer; + _AtlCreateWndData* m_pCreateWndList; + BOOL m_bDestroyHeap; + GUID* pguidVer; + DWORD m_dwHeaps; + HANDLE* m_phHeaps; + int m_nHeap; + _ATL_TERMFUNC_ELEM* m_pTermFuncs; +} _ATL_MODULEW; + +typedef struct +{ + void *m_aT; + int m_nSize; + int m_nAllocSize; +} CSimpleArray; + +typedef struct _ATL_MODULE70 +{ + UINT cbSize; + LONG m_nLockCnt; + _ATL_TERMFUNC_ELEM *m_pTermFuncs; + CComCriticalSection m_csStaticDataInitAndTypeInfo; +} _ATL_MODULE70; + +typedef struct _ATL_WIN_MODULE70 +{ + UINT cbSize; + CComCriticalSection m_csWindowCreate; + _AtlCreateWndData *m_pCreateWndList; + CSimpleArray /* */ m_rgWindowClassAtoms; +} _ATL_WIN_MODULE70; + +typedef struct _ATL_COM_MODULE70 +{ + UINT cbSize; + HINSTANCE m_hInstTypeLib; + _ATL_OBJMAP_ENTRY **m_ppAutoObjMapFirst; + _ATL_OBJMAP_ENTRY **m_ppAutoObjMapLast; + CComCriticalSection m_csObjMap; +} _ATL_COM_MODULE70, _ATL_COM_MODULE; + +#if _ATL_VER >= _ATL_VER_70 +typedef _ATL_MODULE70 _ATL_MODULE; +typedef _ATL_WIN_MODULE70 _ATL_WIN_MODULE; +#else +typedef _ATL_MODULEW _ATL_MODULE; +typedef _ATL_MODULEW _ATL_WIN_MODULE; +#endif + +typedef struct _ATL_INTMAP_ENTRY_TAG +{ + const IID* piid; + DWORD dw; + _ATL_CREATORARGFUNC* pFunc; +} _ATL_INTMAP_ENTRY; + +struct _ATL_REGMAP_ENTRY +{ + LPCOLESTR szKey; + LPCOLESTR szData; +}; + +struct _ATL_CATMAP_ENTRY +{ + int iType; + const CATID *pcatid; +}; + +#define _ATL_CATMAP_ENTRY_END 0 +#define _ATL_CATMAP_ENTRY_IMPLEMENTED 1 +#define _ATL_CATMAP_ENTRY_REQUIRED 2 + +HRESULT WINAPI AtlAdvise(IUnknown *pUnkCP, IUnknown *pUnk, const IID * iid, LPDWORD dpw); +HRESULT WINAPI AtlAxAttachControl(IUnknown*,HWND,IUnknown**); +HRESULT WINAPI AtlAxCreateControl(LPCOLESTR,HWND,IStream*,IUnknown**); +HRESULT WINAPI AtlAxCreateControlEx(LPCOLESTR,HWND,IStream*,IUnknown**,IUnknown**,REFIID,IUnknown*); +HRESULT WINAPI AtlFreeMarshalStream(IStream *pStream); +HRESULT WINAPI AtlInternalQueryInterface(void* pThis, const _ATL_INTMAP_ENTRY* pEntries, REFIID iid, void** ppvObject); +HRESULT WINAPI AtlMarshalPtrInProc(IUnknown *pUnk, const IID *iid, IStream **ppStream); +void WINAPI AtlModuleAddCreateWndData(_ATL_MODULEW *pM, _AtlCreateWndData *pData, void* pvObject); +HRESULT WINAPI AtlWinModuleInit(_ATL_WIN_MODULE*); +void WINAPI AtlWinModuleAddCreateWndData(_ATL_WIN_MODULE*,_AtlCreateWndData*,void*); +void* WINAPI AtlWinModuleExtractCreateWndData(_ATL_WIN_MODULE*); +HRESULT WINAPI AtlModuleAddTermFunc(_ATL_MODULE *pM, _ATL_TERMFUNC *pFunc, DWORD_PTR dw); +void WINAPI AtlCallTermFunc(_ATL_MODULE*); +void* WINAPI AtlModuleExtractCreateWndData(_ATL_MODULEW *pM); +HRESULT WINAPI AtlModuleInit(_ATL_MODULEW* pM, _ATL_OBJMAP_ENTRYW* p, HINSTANCE h); +HRESULT WINAPI AtlModuleLoadTypeLib(_ATL_MODULEW *pM, LPCOLESTR lpszIndex, BSTR *pbstrPath, ITypeLib **ppTypeLib); +HRESULT WINAPI AtlModuleRegisterClassObjects(_ATL_MODULEW* pM, DWORD dwClsContext, DWORD dwFlags); +HRESULT WINAPI AtlModuleRegisterServer(_ATL_MODULEW* pM, BOOL bRegTypeLib, const CLSID* pCLSID); +HRESULT WINAPI AtlModuleRegisterTypeLib(_ATL_MODULEW *pM, LPCOLESTR lpszIndex); +HRESULT WINAPI AtlModuleUnregisterServer(_ATL_MODULEW* pM, const CLSID* pCLSID); +HRESULT WINAPI AtlModuleUpdateRegistryFromResourceD(_ATL_MODULEW *pM, LPCOLESTR lpszRes, BOOL bRegister, struct _ATL_REGMAP_ENTRY *pMapEntries, IRegistrar *pReg ); +HRESULT WINAPI AtlModuleUnregisterServerEx(_ATL_MODULEW* pM, BOOL bUnRegTypeLib, const CLSID* pCLSID); +HRESULT WINAPI AtlModuleTerm(_ATL_MODULEW* pM); +HRESULT WINAPI AtlUnadvise(IUnknown *pUnkCP, const IID * iid, DWORD dw); +HRESULT WINAPI AtlUnmarshalPtr(IStream *pStream, const IID *iid, IUnknown **ppUnk); +HRESULT WINAPI AtlCreateRegistrar(IRegistrar**); +HRESULT WINAPI AtlUpdateRegistryFromResourceD(HINSTANCE,LPCOLESTR,BOOL,struct _ATL_REGMAP_ENTRY*,IRegistrar*); +HRESULT WINAPI AtlLoadTypeLib(HINSTANCE,LPCOLESTR,BSTR*,ITypeLib**); +HRESULT WINAPI AtlRegisterTypeLib(HINSTANCE,LPCOLESTR); +HRESULT WINAPI AtlRegisterClassCategoriesHelper(REFCLSID,const struct _ATL_CATMAP_ENTRY*,BOOL); +HRESULT WINAPI AtlComModuleGetClassObject(_ATL_COM_MODULE*,REFCLSID,REFIID,void**); +HRESULT WINAPI AtlComModuleRegisterClassObjects(_ATL_COM_MODULE*,DWORD,DWORD); +HRESULT WINAPI AtlComModuleUnregisterServer(_ATL_COM_MODULE*,BOOL,const CLSID*); +BOOL WINAPI AtlWaitWithMessageLoop(HANDLE); +HRESULT WINAPI AtlGetObjectSourceInterface(IUnknown*,GUID*,IID*,unsigned short*,unsigned short*); +HRESULT WINAPI AtlSetPerUserRegistration(unsigned char /*bool*/); +HRESULT WINAPI AtlGetPerUserRegistration(unsigned char /*bool*/ *); + +#endif /* __WINE_ATLBASE_H__ */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/atliface.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/atliface.idl new file mode 100644 index 00000000..60e12ba0 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/atliface.idl @@ -0,0 +1,96 @@ +/* + * Copyright 2005 Jacek Caban + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +import "ocidl.idl"; + +cpp_quote("#ifdef ATL_INITGUID") +cpp_quote("#include ") +cpp_quote("#endif") + +[ + object, + uuid(e21f8a85-b05d-4243-8183-c7cb405588f7), + pointer_default(unique) +] +interface IRegistrarBase : IUnknown +{ + HRESULT AddReplacement( + [in] LPCOLESTR Key, + [in] LPCOLESTR item); + + HRESULT ClearReplacements(); +} + +[ + object, + uuid(44EC053B-400F-11D0-9DCD-00A0C90391D3), + pointer_default(unique) +] +interface IRegistrar : IRegistrarBase +{ + HRESULT ResourceRegisterSz( + [in] LPCOLESTR resFileName, + [in] LPCOLESTR szID, + [in] LPCOLESTR szType); + + HRESULT ResourceUnregisterSz( + [in] LPCOLESTR resFileName, + [in] LPCOLESTR szID, + [in] LPCOLESTR szType); + + HRESULT FileRegister( + [in] LPCOLESTR fileName); + + HRESULT FileUnregister( + [in] LPCOLESTR fileName); + + HRESULT StringRegister( + [in] LPCOLESTR data); + + HRESULT StringUnregister( + [in] LPCOLESTR data); + + HRESULT ResourceRegister( + [in] LPCOLESTR resFileName, + [in] UINT nID, + [in] LPCOLESTR szType); + + HRESULT ResourceUnregister( + [in] LPCOLESTR resFileName, + [in] UINT nID, + [in] LPCOLESTR szType); +} + +cpp_quote("DEFINE_GUID(CLSID_Registrar,0x44ec053a,0x400f,0x11d0,0x9d,0xcd,0x00,0xa0,0xc9,0x03,0x91,0xd3);") + +cpp_quote("HRESULT WINAPI AtlAxCreateControl(LPCOLESTR,HWND,IStream*,IUnknown**);") +cpp_quote("HRESULT WINAPI AtlAxCreateControlEx(LPCOLESTR,HWND,IStream*,IUnknown**,IUnknown**,REFIID,IUnknown*);") +cpp_quote("BOOL WINAPI AtlAxWinInit(void);") + +cpp_quote("HWND WINAPI AtlAxCreateDialogW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM);") +cpp_quote("HWND WINAPI AtlAxCreateDialogA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM);") +cpp_quote("#define AtlAxCreateDialog WINELIB_NAME_AW(AtlAxCreateDialog)") diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/atlwin.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/atlwin.h new file mode 100644 index 00000000..ce366406 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/atlwin.h @@ -0,0 +1,62 @@ +/* + * Active Template Library Window Functions + * + * Copyright 2006 Robert Shearman for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_ATLWIN_H__ +#define __WINE_ATLWIN_H__ + +typedef struct _ATL_WNDCLASSINFOA_TAG +{ + WNDCLASSEXA m_wc; + LPCSTR m_lpszOrigName; + WNDPROC pWndProc; + LPCSTR m_lpszCursorID; + BOOL m_bSystemCursor; + ATOM m_atom; + CHAR m_szAutoName[14]; +} _ATL_WNDCLASSINFOA; + +typedef struct _ATL_WNDCLASSINFOW_TAG +{ + WNDCLASSEXW m_wc; + LPCWSTR m_lpszOrigName; + WNDPROC pWndProc; + LPCWSTR m_lpszCursorID; + BOOL m_bSystemCursor; + ATOM m_atom; + WCHAR m_szAutoName[14]; +} _ATL_WNDCLASSINFOW; + +ATOM WINAPI AtlModuleRegisterWndClassInfoA(_ATL_MODULEA *pm, _ATL_WNDCLASSINFOA *wci, WNDPROC *pProc); +ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW *wci, WNDPROC *pProc); + +HDC WINAPI AtlCreateTargetDC(HDC hdc, DVTARGETDEVICE *ptd); +void WINAPI AtlHiMetricToPixel(const SIZEL *lpSizeInHiMetric, LPSIZEL lpSizeInPix); +void WINAPI AtlPixelToHiMetric(const SIZEL *lpSizeInPix, LPSIZEL lpSizeInHiMetric); + +#endif /* __WINE_ATLWIN_H__ */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/audevcod.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/audevcod.h new file mode 100644 index 00000000..03e9535e --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/audevcod.h @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2002 Alexandre Julliard + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __AUDEVCOD__ +#define __AUDEVCOD__ + +typedef enum _tagSND_DEVICE_ERROR +{ + SNDDEV_ERROR_Open=1, + SNDDEV_ERROR_Close=2, + SNDDEV_ERROR_GetCaps=3, + SNDDEV_ERROR_PrepareHeader=4, + SNDDEV_ERROR_UnprepareHeader=5, + SNDDEV_ERROR_Reset=6, + SNDDEV_ERROR_Restart=7, + SNDDEV_ERROR_GetPosition=8, + SNDDEV_ERROR_Write=9, + SNDDEV_ERROR_Pause=10, + SNDDEV_ERROR_Stop=11, + SNDDEV_ERROR_Start=12, + SNDDEV_ERROR_AddBuffer=13, + SNDDEV_ERROR_Query=14 +} SNDDEV_ERR; + +#define EC_SND_DEVICE_ERROR_BASE 0x0200 +#define EC_SNDDEV_IN_ERROR (EC_SND_DEVICE_ERROR_BASE+0x00) +#define EC_SNDDEV_OUT_ERROR (EC_SND_DEVICE_ERROR_BASE+0x01) + +#endif /* __AUDEVCOD__ */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/audioclient.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/audioclient.idl new file mode 100644 index 00000000..6d9a6cb7 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/audioclient.idl @@ -0,0 +1,336 @@ +/* + * Core Audio audioclient definitions + * + * Copyright 2009 Maarten Lankhorst + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + * + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +import "wtypes.idl"; +import "unknwn.idl"; +import "audiosessiontypes.h"; + +/* Forward declarations */ +interface IAudioClient; +interface IAudioRenderClient; +interface IAudioCaptureClient; +interface IAudioClock; +interface IAudioClock2; +interface IAudioClockAdjustment; +interface ISimpleAudioVolume; +interface IAudioStreamVolume; +interface IChannelAudioVolume; + +cpp_quote("#if 0") +typedef struct WAVEFORMATEX /*[hidden,restricted]*/ +{ + WORD wFormatTag; + WORD nChannels; + DWORD nSamplesPerSec; + DWORD nAvgBytesPerSec; + WORD nBlockAlign; + WORD wBitsPerSample; + WORD cbSize; +} WAVEFORMATEX; +cpp_quote("#else") +cpp_quote("#include ") +cpp_quote("#endif") + +cpp_quote("#if 0") +typedef LONGLONG /*[hidden,restricted]*/ REFERENCE_TIME; +cpp_quote("#else") +cpp_quote("#define _IKsControl_") +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("#endif") + +enum _AUDCLNT_BUFFERFLAGS +{ + AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY = 0x1, + AUDCLNT_BUFFERFLAGS_SILENT = 0x2, + AUDCLNT_BUFFERFLAGS_TIMESTAMP_ERROR = 0x4 +}; + +[ + local, + pointer_default(unique), + uuid(1cb9ad4c-dbfa-4c32-b178-c2f568a703b2), + object, +] +interface IAudioClient : IUnknown +{ + HRESULT Initialize( + [in] AUDCLNT_SHAREMODE ShareMode, + [in] DWORD StreamFlags, + [in] REFERENCE_TIME hnsBufferDuration, + [in] REFERENCE_TIME hnsPeriodicity, + [in] const WAVEFORMATEX *pFormat, + [in] LPCGUID AudioSessionGuid + ); + HRESULT GetBufferSize( + [out] UINT32 *pNumBufferFrames + ); + HRESULT GetStreamLatency( + [out] REFERENCE_TIME *phnsLatency + ); + HRESULT GetCurrentPadding( + [out] UINT32 *pNumPaddingFrames + ); + HRESULT IsFormatSupported( + [in] AUDCLNT_SHAREMODE ShareMode, + [in] const WAVEFORMATEX *pFormat, + [out,unique] WAVEFORMATEX **ppClosestMatch + ); + HRESULT GetMixFormat( + [out] WAVEFORMATEX **ppDeviceFormat + ); + HRESULT GetDevicePeriod( + [out] REFERENCE_TIME *phnsDefaultDevicePeriod, + [out] REFERENCE_TIME *phnsMinimumDevicePeriod + ); + HRESULT Start(void); + HRESULT Stop(void); + HRESULT Reset(void); + HRESULT SetEventHandle([in] HANDLE eventHandle); + HRESULT GetService( + [in] REFIID riid, + [iid_is(riid),out] void **ppv + ); +} + +[ + local, + pointer_default(unique), + uuid(f294acfc-3146-4483-a7bf-addca7c260e2), + object, +] +interface IAudioRenderClient : IUnknown +{ + HRESULT GetBuffer( + [in] UINT32 NumFramesRequested, + [out] BYTE **ppData + ); + HRESULT ReleaseBuffer( + [in] UINT32 NumFramesWritten, + [in] DWORD dwFlags + ); +} + +[ + local, + pointer_default(unique), + uuid(c8adbd64-e71e-48a0-a4de-185c395cd317), + object, +] +interface IAudioCaptureClient : IUnknown +{ + HRESULT GetBuffer( + [out] BYTE **ppData, + [out] UINT32 *pNumFramesToRead, + [out] DWORD *pdwFlags, + [unique,out] UINT64 *pu64DevicePosition, + [unique,out] UINT64 *pu64QPCPosition + ); + HRESULT ReleaseBuffer( + [in] UINT32 NumFramesRead + ); + HRESULT GetNextPacketSize( + [out] UINT32 *pNumFramesInNextPacket + ); +} + +cpp_quote("#define AUDIOCLOCK_CHARACTERISTIC_FIXED_FREQ 0x00000001") + +[ + local, + pointer_default(unique), + uuid("cd63314f-3fba-4a1b-812c-ef96358728e7"), + object, +] +interface IAudioClock : IUnknown +{ + HRESULT GetFrequency( + [out] UINT64 *pu64Frequency + ); + HRESULT GetPosition( + [out] UINT64 *pu64Position, + [out,unique] UINT64 *pu64QPCPosition + ); + HRESULT GetCharacteristics( + [out] DWORD *pdwCharacteristics + ); +} + +[ + local, + pointer_default(unique), + uuid("6f49ff73-6727-49ac-a008-d98cf5e70048"), + object, +] +interface IAudioClock2 : IUnknown +{ + HRESULT GetPosition( + [out] UINT64 *DevicePosition, + [out,unique] UINT64 *QPCPosition + ); +} + +[ + local, + pointer_default(unique), + uuid("f6e4c0a0-46d9-4fb9-be21-57a3ef2b626c"), + object, +] +interface IAudioClockAdjustment : IUnknown +{ + HRESULT SetSampleRate( + [in] float flSampleRate + ); +} + +[ + local, + pointer_default(unique), + uuid("87ce5498-68d6-44e5-9215-6da47ef883d8"), + object, +] +interface ISimpleAudioVolume : IUnknown +{ + HRESULT SetMasterVolume( + [in] float fLevel, + [unique,in] LPCGUID EventContext + ); + HRESULT GetMasterVolume( + [out] float *pfLevel + ); + HRESULT SetMute( + [in] const BOOL bMute, + [unique,in] LPCGUID EventContext + ); + HRESULT GetMute( + [out] BOOL *pbMute + ); +} + +[ + local, + pointer_default(unique), + uuid("93014887-242d-4068-8a15-cf5e93b90fe3"), + object, +] +interface IAudioStreamVolume : IUnknown +{ + HRESULT GetChannelCount( + [out] UINT32 *pdwCount + ); + HRESULT SetChannelVolume( + [in] UINT32 dwIndex, + [in] const float fLevel + ); + HRESULT GetChannelVolume( + [in] UINT32 dwIndex, + [out] float *pfLevel + ); + HRESULT SetAllVolumes( + [in] UINT32 dwCount, + [size_is(dwCount),in] const float *pfVolumes + ); + HRESULT GetAllVolumes( + [in] UINT32 dwCount, + [size_is(dwCount),out] float *pfVolumes + ); +} + +[ + local, + pointer_default(unique), + uuid("1c158861-b533-4b30-b1cf-e853e51c59b8"), + object, +] +interface IChannelAudioVolume : IUnknown +{ + HRESULT GetChannelCount( + [out] UINT32 *pdwCount + ); + HRESULT SetChannelVolume( + [in] UINT32 dwIndex, + [in] const float fLevel, + [unique,in] LPCGUID EventContext + ); + HRESULT GetChannelVolume( + [in] UINT32 dwIndex, + [out] float *pfLevel + ); + HRESULT SetAllVolumes( + [in] UINT32 dwCount, + [size_is(dwCount),in] const float *pfVolumes, + [unique,in] LPCGUID EventContext + ); + HRESULT GetAllVolumes( + [in] UINT32 dwCount, + [size_is(dwCount),out] float *pfVolumes + ); +} + +cpp_quote("#define FACILIY_AUDCLNT 0x889") +cpp_quote("#define AUDCLNT_ERR(n) MAKE_HRESULT(SEVERITY_ERROR, FACILIY_AUDCLNT, n)") +cpp_quote("#define AUDCLNT_SUCCESS(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILIY_AUDCLNT, n)") +cpp_quote("#define AUDCLNT_E_NOT_INITIALIZED AUDCLNT_ERR(1)") +cpp_quote("#define AUDCLNT_E_ALREADY_INITIALIZED AUDCLNT_ERR(2)") +cpp_quote("#define AUDCLNT_E_WRONG_ENDPOINT_TYPE AUDCLNT_ERR(3)") +cpp_quote("#define AUDCLNT_E_DEVICE_INVALIDATED AUDCLNT_ERR(4)") +cpp_quote("#define AUDCLNT_E_NOT_STOPPED AUDCLNT_ERR(5)") +cpp_quote("#define AUDCLNT_E_BUFFER_TOO_LARGE AUDCLNT_ERR(6)") +cpp_quote("#define AUDCLNT_E_OUT_OF_ORDER AUDCLNT_ERR(7)") +cpp_quote("#define AUDCLNT_E_UNSUPPORTED_FORMAT AUDCLNT_ERR(8)") +cpp_quote("#define AUDCLNT_E_INVALID_SIZE AUDCLNT_ERR(9)") +cpp_quote("#define AUDCLNT_E_DEVICE_IN_USE AUDCLNT_ERR(0x0a)") +cpp_quote("#define AUDCLNT_E_BUFFER_OPERATION_PENDING AUDCLNT_ERR(0x0b)") +cpp_quote("#define AUDCLNT_E_THREAD_NOT_REGISTERED AUDCLNT_ERR(0x0c)") +/* Not defined? cpp_quote("#define AUDCLNT_E_UNKNOWN_XXX1 AUDCLNT_ERR(0x0d)") */ +cpp_quote("#define AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED AUDCLNT_ERR(0x0e)") +cpp_quote("#define AUDCLNT_E_ENDPOINT_CREATE_FAILED AUDCLNT_ERR(0x0f)") +cpp_quote("#define AUDCLNT_E_SERVICE_NOT_RUNNING AUDCLNT_ERR(0x10)") +cpp_quote("#define AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED AUDCLNT_ERR(0x11)") +cpp_quote("#define AUDCLNT_E_EXCLUSIVE_MODE_ONLY AUDCLNT_ERR(0x12)") +cpp_quote("#define AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL AUDCLNT_ERR(0x13)") +cpp_quote("#define AUDCLNT_E_EVENTHANDLE_NOT_SET AUDCLNT_ERR(0x14)") +cpp_quote("#define AUDCLNT_E_INCORRECT_BUFFER_SIZE AUDCLNT_ERR(0x15)") +cpp_quote("#define AUDCLNT_E_BUFFER_SIZE_ERROR AUDCLNT_ERR(0x16)") +cpp_quote("#define AUDCLNT_E_CPUUSAGE_EXCEEDED AUDCLNT_ERR(0x17)") +cpp_quote("#define AUDCLNT_E_BUFFER_ERROR AUDCLNT_ERR(0x18)") +cpp_quote("#define AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED AUDCLNT_ERR(0x19)") +/* Hex fail */ +cpp_quote("#define AUDCLNT_E_INVALID_DEVICE_PERIOD AUDCLNT_ERR(0x20)") +cpp_quote("#define AUDCLNT_E_INVALID_STREAM_FLAG AUDCLNT_ERR(0x021)") +cpp_quote("#define AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE AUDCLNT_ERR(0x022)") +cpp_quote("#define AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES AUDCLNT_ERR(0x023)") +cpp_quote("#define AUDCLNT_E_OFFLOAD_MODE_ONLY AUDCLNT_ERR(0x024)") +cpp_quote("#define AUDCLNT_E_NONOFFLOAD_MODE_ONLY AUDCLNT_ERR(0x025)") +cpp_quote("#define AUDCLNT_E_RESOURCES_INVALIDATED AUDCLNT_ERR(0x026)") + +cpp_quote("#define AUDCLNT_S_BUFFER_EMPTY AUDCLNT_SUCCESS(0x1)") +cpp_quote("#define AUDCLNT_S_THREAD_ALREADY_REGISTERED AUDCLNT_SUCCESS(0x2)") +cpp_quote("#define AUDCLNT_S_POSITION_STALLED AUDCLNT_SUCCESS(0x3)") diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/audiopolicy.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/audiopolicy.idl new file mode 100644 index 00000000..00b55daa --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/audiopolicy.idl @@ -0,0 +1,249 @@ +/* + * Core Audio audio policy definitions + * + * Copyright 2009 Maarten Lankhorst + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + * + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +import "oaidl.idl"; +import "ocidl.idl"; +import "propidl.idl"; +import "audiosessiontypes.h"; +import "audioclient.idl"; + +interface IAudioSessionEvents; +interface IAudioSessionControl; +interface IAudioSessionControl2; +interface IAudioSessionManager; +interface IAudioVolumeDuckNotification; +interface IAudioSessionNotification; +interface IAudioSessionEnumerator; +interface IAudioSessionManager2; + +typedef enum AudioSessionDisconnectReason /*[local]*/ +{ + DisconnectReasonDeviceRemoval = 0, + DisconnectReasonServerShutdown, + DisconnectReasonFormatChanged, + DisconnectReasonSessionLogoff, + DisconnectReasonSessionDisconnected, + DisconnectReasonExclusiveModeOverride, +} AudioSessionDisconnectReason; + +[ + local, + uuid(24918acc-64b3-37c1-8ca9-74a66e9957a8), + pointer_default(unique), + object +] +interface IAudioSessionEvents : IUnknown +{ + HRESULT OnDisplayNameChanged( + [string,in] LPCWSTR NewDisplayName, + [in] LPCGUID EventContext + ); + HRESULT OnIconPathChanged( + [string,in] LPCWSTR NewIconPath, + [in] LPCGUID EventContext + ); + HRESULT OnSimpleVolumeChanged( + [in] float NewVolume, + [in] BOOL NewMute, + [in] LPCGUID EventContext + ); + HRESULT OnChannelVolumeChanged( + [in] DWORD ChannelCount, + [size_is(ChannelCount),in] float *NewChannelVolumeArray, + [in] DWORD ChangedChannel, + [in] LPCGUID EventContext + ); + HRESULT OnGroupingParamChanged( + [in] LPCGUID NewGroupingParam, + [in] LPCGUID EventContext + ); + HRESULT OnStateChanged( + [in] AudioSessionState NewState + ); + HRESULT OnSessionDisconnected( + [in] AudioSessionDisconnectReason DisconnectReason + ); +} + +[ + local, + uuid(f4b1a599-7266-4319-a8ca-e70acb11e8cd), + pointer_default(unique), + object +] +interface IAudioSessionControl : IUnknown +{ + HRESULT GetState( + [out] AudioSessionState *pRetVal + ); + HRESULT GetDisplayName( + [string,out] LPWSTR *pRetVal + ); + HRESULT SetDisplayName( + [string,in] LPCWSTR DisplayName, + [unique,in] LPCGUID EventContext + ); + HRESULT GetIconPath( + [string,out] LPWSTR *pRetVal + ); + HRESULT SetIconPath( + [string,in] LPCWSTR Value, + [unique,in] LPCGUID EventContext + ); + HRESULT GetGroupingParam( + [out] GUID *pRetVal + ); + HRESULT SetGroupingParam( + [in] LPCGUID Override, + [unique,in] LPCGUID EventContext + ); + HRESULT RegisterAudioSessionNotification( + [in] IAudioSessionEvents *NewNotifications + ); + HRESULT UnregisterAudioSessionNotification( + [in] IAudioSessionEvents *NewNotifications + ); +} + +[ + local, + uuid(bfb7ff88-7239-4fc9-8fa2-07c950be9c6d), + pointer_default(unique), + object +] +interface IAudioSessionControl2 : IAudioSessionControl +{ + HRESULT GetSessionIdentifier( + [string,out] LPWSTR *pRetVal + ); + HRESULT GetSessionInstanceIdentifier( + [string,out] LPWSTR *pRetVal + ); + HRESULT GetProcessId( + [out] DWORD *pRetVal + ); + HRESULT IsSystemSoundsSession(void); + HRESULT SetDuckingPreferences( + [in] BOOL optOut + ); +}; + +[ + local, + uuid(bfa971f1-4d5e-40bb-935e-967039bfbee4), + pointer_default(unique), + object +] +interface IAudioSessionManager : IUnknown +{ + HRESULT GetAudioSessionControl( + [in] LPCGUID AudioSessionGuid, + [in] DWORD StreamFlags, + [out] IAudioSessionControl **SessionControl + ); + HRESULT GetSimpleAudioVolume( + [in] LPCGUID AudioSessionGuid, + [in] DWORD StreamFlags, + [out] ISimpleAudioVolume **AudioVolume + ); +}; + +[ + local, + uuid(c3b284d4-6d39-4359-b3cf-b56ddb3bb39c), + pointer_default(unique), + object +] +interface IAudioVolumeDuckNotification : IUnknown +{ + HRESULT OnVolumeDuckNotification( + [in] LPCWSTR sessionID, + [in] UINT32 countCommunicationSessions + ); + HRESULT OnVolumeUnduckNotification( + [in] LPCWSTR sessionID + ); +}; + +[ + local, + uuid(641dd20b-4d41-49cc-aba3-174b9477bb08), + pointer_default(unique), + object +] +interface IAudioSessionNotification : IUnknown +{ + HRESULT OnSessionCreated( + [in] IAudioSessionControl *NewSession + ); +}; + +[ + local, + uuid(e2f5bb11-0570-40ca-acdd-3aa01277dee8), + pointer_default(unique), + object +] +interface IAudioSessionEnumerator : IUnknown +{ + HRESULT GetCount( + [out] INT *SessionCount + ); + HRESULT GetSession( + [in] INT SessionCount, + [out] IAudioSessionControl **Session + ); +}; + +[ + local, + uuid(77aa99a0-1bd6-484f-8bc7-2c654c9a9b6f), + pointer_default(unique), + object +] +interface IAudioSessionManager2 : IAudioSessionManager +{ + HRESULT GetSessionEnumerator( + [retval,out] IAudioSessionEnumerator **SessionEnum + ); + HRESULT RegisterSessionNotification( + [in] IAudioSessionNotification *SessionNotification + ); + HRESULT UnregisterSessionNotification( + [in] IAudioSessionNotification *SessionNotification + ); + HRESULT RegisterDuckNotification( + [string,in] LPCWSTR sessionID, + [in] IAudioVolumeDuckNotification *duckNotification + ); + HRESULT UnregisterDuckNotification( + [in] IAudioVolumeDuckNotification *duckNotification + ); +}; diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/audiosessiontypes.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/audiosessiontypes.h new file mode 100644 index 00000000..7823b6fc --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/audiosessiontypes.h @@ -0,0 +1,57 @@ + +/* + * Core Audio audio session types definitions + * + * Copyright 2009 Maarten Lankhorst + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + * + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __AUDIOSESSIONTYPES__ +#define __AUDIOSESSIONTYPES__ + +typedef enum _AUDCLNT_SHAREMODE +{ + AUDCLNT_SHAREMODE_SHARED, + AUDCLNT_SHAREMODE_EXCLUSIVE, +} AUDCLNT_SHAREMODE; + +#define AUDCLNT_STREAMFLAGS_CROSSPROCESS 0x00010000 +#define AUDCLNT_STREAMFLAGS_LOOPBACK 0x00020000 +#define AUDCLNT_STREAMFLAGS_EVENTCALLBACK 0x00040000 +#define AUDCLNT_STREAMFLAGS_NOPERSIST 0x00080000 +#define AUDCLNT_STREAMFLAGS_RATEADJUST 0x00100000 +#define AUDCLNT_SESSIONFLAGS_EXPIREWHENUNOWNED 0x10000000 +#define AUDCLNT_SESSIONFLAGS_DISPLAY_HIDE 0x20000000 +#define AUDCLNT_SESSIONFLAGS_DISPLAY_HIDEWHENEXPIRED 0x40000000 + +typedef enum _AudioSessionState +{ + AudioSessionStateInactive = 0, + AudioSessionStateActive, + AudioSessionStateExpired, +} AudioSessionState; + +#endif diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/austream.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/austream.idl new file mode 100644 index 00000000..b3a965ab --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/austream.idl @@ -0,0 +1,117 @@ +/* + * Copyright 2004 Christian Costa + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +import "unknwn.idl"; +import "mmstream.idl"; + +cpp_quote("#if 0") +typedef struct tWAVEFORMATEX WAVEFORMATEX; +cpp_quote ("#endif") + +interface IAudioMediaStream; +interface IAudioStreamSample; +interface IMemoryData; +interface IAudioData; + +[ +object, +local, +uuid(f7537560-a3be-11d0-8212-00c04fc32c45), +pointer_default(unique) +] +interface IAudioMediaStream : IMediaStream +{ + HRESULT GetFormat( + [out] /*[optional]*/ WAVEFORMATEX *pWaveFormatCurrent + ); + + HRESULT SetFormat( + [in] const WAVEFORMATEX *lpWaveFormat); + + HRESULT CreateSample( + [in] IAudioData *pAudioData, + [in] DWORD dwFlags, + [out] IAudioStreamSample **ppSample + ); +} + + +[ +object, +local, +uuid(345fee00-aba5-11d0-8212-00c04fc32c45), +pointer_default(unique) +] +interface IAudioStreamSample : IStreamSample +{ + HRESULT GetAudioData( + [out] IAudioData **ppAudio + ); +} + + +[ +object, +local, +uuid(327fc560-af60-11d0-8212-00c04fc32c45), +pointer_default(unique) +] +interface IMemoryData : IUnknown +{ + HRESULT SetBuffer( + [in] DWORD cbSize, + [in] BYTE *pbData, + [in] DWORD dwFlags + ); + + HRESULT GetInfo( + [out] DWORD *pdwLength, + [out] BYTE **ppbData, + [out] DWORD *pcbActualData + ); + HRESULT SetActual( + [in] DWORD cbDataValid + ); +} + + +[ +object, +local, +uuid(54c719c0-af60-11d0-8212-00c04fc32c45), +pointer_default(unique) +] +interface IAudioData : IMemoryData +{ + HRESULT GetFormat( + [out] /*[optional]*/ WAVEFORMATEX *pWaveFormatCurrent + ); + + HRESULT SetFormat( + [in] const WAVEFORMATEX *lpWaveFormat + ); +} diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/aviriff.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/aviriff.h new file mode 100644 index 00000000..59439efe --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/aviriff.h @@ -0,0 +1,333 @@ +/* + * Copyright (C) 2003 Robert Shearman + * Copyright (C) 2008 Maarten Lankhorst + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +/* All definitions here are packed structures of on-disk formats */ +#include + +typedef struct _riffchunk +{ + FOURCC fcc; + DWORD cb; +} RIFFCHUNK, * LPRIFFCHUNK; + +typedef struct _rifflist +{ + FOURCC fcc; + DWORD cb; + FOURCC fccListType; +} RIFFLIST, * LPRIFFLIST; + +#define FCC( ch0, ch1, ch2, ch3 ) \ + ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \ + ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) ) + +#define RIFFROUND(cb) ((cb) + ((cb)&1)) +#define RIFFNEXT(pChunk) (LPRIFFCHUNK)((LPBYTE)(pChunk)+sizeof(RIFFCHUNK)+RIFFROUND(((LPRIFFCHUNK)pChunk)->cb)) + +/* flags for dwFlags member of AVIMAINHEADER */ +#define AVIF_HASINDEX 0x00000010 +#define AVIF_MUSTUSEINDEX 0x00000020 +#define AVIF_ISINTERLEAVED 0x00000100 +#define AVIF_TRUSTCKTYPE 0x00000800 +#define AVIF_WASCAPTUREFILE 0x00010000 +#define AVIF_COPYRIGHTED 0x00020000 + +#define ckidMAINAVIHEADER FCC('a','v','i','h') +typedef struct _avimainheader +{ + FOURCC fcc; + DWORD cb; + DWORD dwMicroSecPerFrame; + DWORD dwMaxBytesPerSec; + DWORD dwPaddingGranularity; + DWORD dwFlags; + DWORD dwTotalFrames; + DWORD dwInitialFrames; + DWORD dwStreams; + DWORD dwSuggestedBufferSize; + DWORD dwWidth; + DWORD dwHeight; + DWORD dwReserved[4]; +} AVIMAINHEADER; + +#define ckidODML FCC('o','d','m','l') +#define ckidAVIEXTHEADER FCC('d','m','l','h') +typedef struct _aviextheader +{ + FOURCC fcc; + DWORD cb; + DWORD dwGrandFrames; + DWORD dwFuture[61]; +} AVIEXTHEADER; + +#define ckidSTREAMLIST FCC('s','t','r','l') + +/* flags for dwFlags member of AVISTREAMHEADER */ +#define AVISF_DISABLED 0x00000001 +#define AVISF_VIDEO_PALCHANGES 0x00010000 + +#ifndef ckidSTREAMHEADER +#define ckidSTREAMHEADER FCC('s','t','r','h') +#endif + +#ifndef streamtypeVIDEO +#define streamtypeVIDEO FCC('v','i','d','s') +#define streamtypeAUDIO FCC('a','u','d','s') +#define streamtypeMIDI FCC('m','i','d','s') +#define streamtypeTEXT FCC('t','x','t','s') +#endif + +typedef struct _avistreamheader +{ + FOURCC fcc; + DWORD cb; + FOURCC fccType; + FOURCC fccHandler; + DWORD dwFlags; + WORD wPriority; + WORD wLanguage; + DWORD dwInitialFrames; + DWORD dwScale; + DWORD dwRate; + DWORD dwStart; + DWORD dwLength; + DWORD dwSuggestedBufferSize; + DWORD dwQuality; + DWORD dwSampleSize; + struct + { + short int left; + short int top; + short int right; + short int bottom; + } rcFrame; +} AVISTREAMHEADER; + +#ifndef ckidSTREAMFORMAT +#define ckidSTREAMFORMAT FCC('s','t','r','f') +#endif +#define ckidAVIOLDINDEX FCC('i','d','x','1') + +/* flags for dwFlags member of _avioldindex_entry */ +#define AVIIF_LIST 0x00000001 +#define AVIIF_KEYFRAME 0x00000010 +#define AVIIF_NO_TIME 0x00000100 +#define AVIIF_COMPRESSOR 0x0FFF0000 + +typedef struct _avioldindex +{ + FOURCC fcc; + DWORD cb; + struct _avioldindex_entry + { + DWORD dwChunkId; + DWORD dwFlags; + DWORD dwOffset; + DWORD dwSize; + } aIndex[ANYSIZE_ARRAY]; +} AVIOLDINDEX; + +typedef union _timecode +{ + struct + { + WORD wFrameRate; + WORD wFrameFract; + LONG cFrames; + } DUMMYSTRUCTNAME; + DWORDLONG qw; +} TIMECODE; + +#define TIMECODE_RATE_30DROP 0 + +/* flags for dwSMPTEflags member of TIMECODEDATA */ +#define TIMECODE_SMPTE_BINARY_GROUP 0x07 +#define TIMECODE_SMPTE_COLOR_FRAME 0x08 + +typedef struct _timecodedata +{ + TIMECODE time; + DWORD dwSMPTEflags; + DWORD dwUser; +} TIMECODEDATA; + +#define AVI_INDEX_OF_INDEXES 0x00 +#define AVI_INDEX_OF_CHUNKS 0x01 +#define AVI_INDEX_OF_TIMED_CHUNKS 0x02 +#define AVI_INDEX_OF_SUB_2FIELD 0x03 +#define AVI_INDEX_IS_DATA 0x80 + +#define AVI_INDEX_SUB_DEFAULT 0x00 +#define AVI_INDEX_SUB_2FIELD 0x01 + +typedef struct _avimetaindex +{ + FOURCC fcc; + UINT cb; + WORD wLongsPerEntry; + BYTE bIndexSubType; + BYTE bIndexType; + DWORD nEntriesInUse; + DWORD dwChunkId; + DWORD dwReserved[3]; + DWORD adwIndex[ANYSIZE_ARRAY]; +} AVIMETAINDEX; + +#define ckidAVISUPERINDEX FCC('i','n','d','x') +typedef struct _avisuperindex { + FOURCC fcc; + UINT cb; + WORD wLongsPerEntry; + BYTE bIndexSubType; + BYTE bIndexType; + DWORD nEntriesInUse; + DWORD dwChunkId; + DWORD dwReserved[3]; + struct _avisuperindex_entry { + DWORDLONG qwOffset; + DWORD dwSize; + DWORD dwDuration; + } aIndex[ANYSIZE_ARRAY]; +} AVISUPERINDEX; + +#define AVISTDINDEX_DELTAFRAME (0x80000000) +#define AVISTDINDEX_SIZEMASK (~0x80000000) + +typedef struct _avistdindex_entry { + DWORD dwOffset; + DWORD dwSize; +} AVISTDINDEX_ENTRY; + +typedef struct _avistdindex { + FOURCC fcc; + UINT cb; + WORD wLongsPerEntry; + BYTE bIndexSubType; + BYTE bIndexType; + DWORD nEntriesInUse; + DWORD dwChunkId; + DWORDLONG qwBaseOffset; + DWORD dwReserved_3; + AVISTDINDEX_ENTRY aIndex[ANYSIZE_ARRAY]; +} AVISTDINDEX; + +typedef struct _avitimedindex_entry { + DWORD dwOffset; + DWORD dwSize; + DWORD dwDuration; +} AVITIMEDINDEX_ENTRY; + +typedef struct _avitimedindex { + FOURCC fcc; + UINT cb; + WORD wLongsPerEntry; + BYTE bIndexSubType; + BYTE bIndexType; + DWORD nEntriesInUse; + DWORD dwChunkId; + DWORDLONG qwBaseOffset; + DWORD dwReserved_3; + AVITIMEDINDEX_ENTRY aIndex[ANYSIZE_ARRAY]; + /* DWORD adwTrailingFill[ANYSIZE_ARRAY]; */ +} AVITIMEDINDEX; + +typedef struct _avitimecodeindex { + FOURCC fcc; + UINT cb; + WORD wLongsPerEntry; + BYTE bIndexSubType; + BYTE bIndexType; + DWORD nEntriesInUse; + DWORD dwChunkId; + DWORD dwReserved[3]; + TIMECODEDATA aIndex[ANYSIZE_ARRAY]; +} AVITIMECODEINDEX; + +typedef struct _avitcdlindex_entryA { + DWORD dwTick; + TIMECODE time; + DWORD dwSMPTEflags; + DWORD dwUser; + CHAR szReelId[12]; +} AVITCDLINDEX_ENTRYA; + +typedef struct _avitcdlindex_entryW { + DWORD dwTick; + TIMECODE time; + DWORD dwSMPTEflags; + DWORD dwUser; + WCHAR szReelId[12]; +} AVITCDLINDEX_ENTRYW; + +typedef struct _avitcdlindexA { + FOURCC fcc; + UINT cb; + WORD wLongsPerEntry; + BYTE bIndexSubType; + BYTE bIndexType; + DWORD nEntriesInUse; + DWORD dwChunkId; + DWORD dwReserved[3]; + AVITCDLINDEX_ENTRYA aIndex[ANYSIZE_ARRAY]; + /* DWORD adwTrailingFill[ANYSIZE_ARRAY]; */ +} AVITCDLINDEXA; + +typedef struct _avitcdlindexW { + FOURCC fcc; + UINT cb; + WORD wLongsPerEntry; + BYTE bIndexSubType; + BYTE bIndexType; + DWORD nEntriesInUse; + DWORD dwChunkId; + DWORD dwReserved[3]; + AVITCDLINDEX_ENTRYW aIndex[ANYSIZE_ARRAY]; + /* DWORD adwTrailingFill[ANYSIZE_ARRAY]; */ +} AVITCDLINDEXW; + +#define AVITCDLINDEX_ENTRY WINELIB_NAME_AW(AVITCDLINDEX_ENTRY) +#define AVITCDLINDEX WINELIB_NAME_AW(AVITCDLINDEX) + +typedef struct _avifieldindex_chunk { + FOURCC fcc; + DWORD cb; + WORD wLongsPerEntry; + BYTE bIndexSubType; + BYTE bIndexType; + DWORD nEntriesInUse; + DWORD dwChunkId; + DWORDLONG qwBaseOffset; + DWORD dwReserved3; + struct _avifieldindex_entry { + DWORD dwOffset; + DWORD dwSize; + DWORD dwOffsetField2; + } aIndex[ANYSIZE_ARRAY]; +} AVIFIELDINDEX, * PAVIFIELDINDEX; + +#include diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/avrt.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/avrt.h new file mode 100644 index 00000000..b0d99a2e --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/avrt.h @@ -0,0 +1,83 @@ +/* + * avrt definitions + * + * Copyright 2009 Maarten Lankhorst + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + * + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef _AVRT_ +#define _AVRT_ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum _AVRT_PRIORITY +{ + AVRT_PRIORITY_LOW = -1, + AVRT_PRIORITY_NORMAL, + AVRT_PRIORITY_HIGH, + AVRT_PRIORITY_CRITICAL +} AVRT_PRIORITY, *PAVRT_PRIORITY; + +/* Windows compiler is more lax */ +#define THREAD_ORDER_GROUP_INFINITE_TIMEOUT ((void*)((LONG_PTR)-1)) + +HANDLE WINAPI AvSetMmThreadCharacteristicsA(LPCSTR TaskName, LPDWORD TaskIndex); +HANDLE WINAPI AvSetMmThreadCharacteristicsW(LPCWSTR TaskName, LPDWORD TaskIndex); +#define AvSetMmThreadCharacteristics WINELIB_NAME_AW(AvSetMmThreadCharacteristics) + +HANDLE WINAPI AvSetMmMaxThreadCharacteristicsA(LPCSTR FirstTask, LPCSTR SecondTask, LPDWORD TaskIndex); +HANDLE WINAPI AvSetMmMaxThreadCharacteristicsW(LPCSTR FirstTask, LPCSTR SecondTask, LPDWORD TaskIndex); +#define AvSetMmMaxThreadCharacteristics WINELIB_NAME_AW(AvSetMmMaxThreadCharacteristics) + +BOOL WINAPI AvRevertMmThreadCharacteristics(HANDLE AvrtHandle); +BOOL WINAPI AvSetMmThreadPriority(HANDLE AvrtHandle, AVRT_PRIORITY Priority); +BOOL WINAPI AvRtCreateThreadOrderingGroup( + PHANDLE Context, PLARGE_INTEGER Period, + GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout); + +BOOL WINAPI AvRtCreateThreadOrderingGroupExA( + PHANDLE Context, PLARGE_INTEGER Period, + GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout, + LPCSTR TaskName); +BOOL WINAPI AvRtCreateThreadOrderingGroupExW( + PHANDLE Context, PLARGE_INTEGER Period, + GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout, + LPCSTR TaskName); +#define AvRtCreateThreadOrderingGroupEx WINELIB_NAME_AW(AvRtCreateThreadOrderingGroupEx) + +BOOL WINAPI AvRtJoinThreadOrderingGroup(PHANDLE Context, GUID *ThreadOrderingGuid, BOOL Before); +BOOL WINAPI AvRtWaitOnThreadOrderingGroup(HANDLE Context); +BOOL WINAPI AvRtLeaveThreadOrderingGroup(HANDLE Context); +BOOL WINAPI AvRtDeleteThreadOrderingGroup(HANDLE Context); +BOOL WINAPI AvQuerySystemResponsiveness(HANDLE AvrtHandle, PULONG SystemResponsivenessValue); + +#ifdef __cplusplus +} +#endif + +#endif /*_AVRT_*/ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/axcore.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/axcore.idl new file mode 100644 index 00000000..086aa81a --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/axcore.idl @@ -0,0 +1,666 @@ +/* + * Copyright (C) 2002 Robert Shearman + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#define CHARS_IN_GUID 39 +cpp_quote("#define CHARS_IN_GUID 39") + +/* GetTimeFormat is defined in winnls.h as + * either the W or A suffixed version */ +cpp_quote("#ifdef WINE_NO_UNICODE_MACROS") +cpp_quote("#undef GetTimeFormat") +cpp_quote("#endif") + +typedef struct _AMMediaType +{ + GUID majortype; + GUID subtype; + BOOL bFixedSizeSamples; + BOOL bTemporalCompression; + ULONG lSampleSize; + GUID formattype; + IUnknown * pUnk; + ULONG cbFormat; + [size_is(cbFormat)] BYTE * pbFormat; +} AM_MEDIA_TYPE; + +typedef enum _PinDirection +{ + PINDIR_INPUT, + PINDIR_OUTPUT +} PIN_DIRECTION; + +#define MAX_PIN_NAME 128 +#define MAX_FILTER_NAME 128 +cpp_quote("#define MAX_PIN_NAME 128") +cpp_quote("#define MAX_FILTER_NAME 128") + +cpp_quote("#ifndef REFERENCE_TIME_DEFINED") +cpp_quote("#define REFERENCE_TIME_DEFINED") +typedef LONGLONG REFERENCE_TIME; +cpp_quote("#endif") + +cpp_quote("#ifndef REFTIME_DEFINED") +cpp_quote("#define REFTIME_DEFINED") +typedef DOUBLE REFTIME; +cpp_quote("#endif") + +typedef DWORD_PTR HSEMAPHORE; +typedef DWORD_PTR HEVENT; + +typedef struct _AllocatorProperties +{ + long cBuffers; + long cbBuffer; + long cbAlign; + long cbPrefix; +} ALLOCATOR_PROPERTIES; + +interface IAMovieSetup; +interface IEnumFilters; +interface IEnumMediaTypes; +interface IEnumPins; +interface IBaseFilter; +interface IFilterGraph; +interface IMediaFilter; +interface IMediaSample; +interface IMemAllocator; +interface IMemAllocatorCallbackTemp; +interface IMemAllocatorNotifyCallbackTemp; +interface IMemInputPin; +interface IPin; +interface IReferenceClock; + +[ +object, +uuid(56a86891-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IPin : IUnknown +{ + typedef struct _PinInfo + { + IBaseFilter *pFilter; + PIN_DIRECTION dir; + WCHAR achName[MAX_PIN_NAME]; + } PIN_INFO; + + HRESULT Connect( + [in] IPin * pReceivePin, + [in] const AM_MEDIA_TYPE * pmt); + + HRESULT ReceiveConnection( + [in] IPin * pConnector, + [in] const AM_MEDIA_TYPE *pmt); + + HRESULT Disconnect(void); + + HRESULT ConnectedTo( + [out] IPin **pPin); + + HRESULT ConnectionMediaType( + [out] AM_MEDIA_TYPE *pmt); + + HRESULT QueryPinInfo( + [out] PIN_INFO * pInfo); + + HRESULT QueryDirection( + [out] PIN_DIRECTION *pPinDir); + + HRESULT QueryId( + [out] LPWSTR * Id); + + HRESULT QueryAccept( + [in] const AM_MEDIA_TYPE *pmt); + + HRESULT EnumMediaTypes( + [out] IEnumMediaTypes **ppEnum); + + HRESULT QueryInternalConnections( + [out] IPin* *apPin, + [in, out] ULONG *nPin); + + HRESULT EndOfStream(void); + + HRESULT BeginFlush(void); + + HRESULT EndFlush(void); + HRESULT NewSegment( + [in] REFERENCE_TIME tStart, + [in] REFERENCE_TIME tStop, + [in] double dRate); +} + +typedef IPin *PPIN; + +[ +object, +uuid(56a86892-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IEnumPins : IUnknown +{ + + HRESULT Next( + [in] ULONG cPins, + [out, size_is(cPins)] IPin ** ppPins, + [out] ULONG * pcFetched); + + HRESULT Skip( + [in] ULONG cPins); + + HRESULT Reset(void); + + HRESULT Clone( + [out] IEnumPins **ppEnum); +} + +typedef IEnumPins *PENUMPINS; + +[ +object, +uuid(89c31040-846b-11ce-97d3-00aa0055595a), +pointer_default(unique) +] +interface IEnumMediaTypes : IUnknown +{ + HRESULT Next( + [in] ULONG cMediaTypes, + [out, size_is(cMediaTypes)] + AM_MEDIA_TYPE ** ppMediaTypes, + [out] ULONG * pcFetched + ); + + HRESULT Skip( + [in] ULONG cMediaTypes); + + HRESULT Reset(void); + + HRESULT Clone( + [out] IEnumMediaTypes **ppEnum + ); +} + +typedef IEnumMediaTypes *PENUMMEDIATYPES; + +[ +object, +uuid(56a8689f-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IFilterGraph : IUnknown +{ + HRESULT AddFilter( + [in] IBaseFilter * pFilter, + [in, string] LPCWSTR pName); + + HRESULT RemoveFilter( + [in] IBaseFilter * pFilter); + + HRESULT EnumFilters( + [out] IEnumFilters **ppEnum); + + HRESULT FindFilterByName( + [in, string] LPCWSTR pName, + [out] IBaseFilter ** ppFilter); + + HRESULT ConnectDirect( + [in] IPin * ppinOut, + [in] IPin * ppinIn, + [in, unique] const AM_MEDIA_TYPE* pmt); + + HRESULT Reconnect( + [in] IPin * ppin); + + HRESULT Disconnect( + [in] IPin * ppin); + + HRESULT SetDefaultSyncSource(void); +} + +typedef IFilterGraph *PFILTERGRAPH; + +[ +object, +uuid(56a86893-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IEnumFilters : IUnknown +{ + HRESULT Next( + [in] ULONG cFilters, + [out] IBaseFilter ** ppFilter, + [out] ULONG * pcFetched); + + + HRESULT Skip( + [in] ULONG cFilters); + + + HRESULT Reset(void); + + + HRESULT Clone( + [out] IEnumFilters **ppEnum); +} + +typedef IEnumFilters *PENUMFILTERS; + +[ +object, +uuid(56a86899-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IMediaFilter : IPersist +{ + typedef enum _FilterState + { + State_Stopped, + State_Paused, + State_Running + } FILTER_STATE; + + HRESULT Stop(void); + HRESULT Pause(void); + + HRESULT Run(REFERENCE_TIME tStart); + + HRESULT GetState( + [in] DWORD dwMilliSecsTimeout, + [out] FILTER_STATE *State); + + HRESULT SetSyncSource( + [in] IReferenceClock * pClock); + + HRESULT GetSyncSource( + [out] IReferenceClock ** pClock); +} + +typedef IMediaFilter *PMEDIAFILTER; + +[ +object, +uuid(56a86895-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IBaseFilter : IMediaFilter +{ + typedef struct _FilterInfo + { + WCHAR achName[MAX_FILTER_NAME]; + IFilterGraph * pGraph; + } FILTER_INFO; + + HRESULT EnumPins( + [out] IEnumPins ** ppEnum); + + HRESULT FindPin( + [in, string] LPCWSTR Id, + [out] IPin ** ppPin); + + HRESULT QueryFilterInfo( + [out] FILTER_INFO * pInfo); + + HRESULT JoinFilterGraph( + [in] IFilterGraph * pGraph, + [in, string] LPCWSTR pName); + + HRESULT QueryVendorInfo( + [out, string] LPWSTR* pVendorInfo); +} + +typedef IBaseFilter *PFILTER; + +[ +object, +uuid(56a86897-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IReferenceClock : IUnknown +{ + HRESULT GetTime( + [out] REFERENCE_TIME *pTime); + + HRESULT AdviseTime( + [in] REFERENCE_TIME baseTime, + [in] REFERENCE_TIME streamTime, + [in] HEVENT hEvent, + [out] DWORD_PTR * pdwAdviseCookie); + + HRESULT AdvisePeriodic( + [in] REFERENCE_TIME startTime, + [in] REFERENCE_TIME periodTime, + [in] HSEMAPHORE hSemaphore, + [out] DWORD_PTR * pdwAdviseCookie); + + HRESULT Unadvise( + [in] DWORD_PTR dwAdviseCookie); +} + +typedef IReferenceClock *PREFERENCECLOCK; + +/* +[ +object, +uuid(36b73885-c2c8-11cf-8b46-00805f6cef60), +pointer_default(unique) +] +interface IReferenceClock2 : IReferenceClock +{ +} + +typedef IReferenceClock2 *PREFERENCECLOCK2; + +*/ + +[ +local, +object, +uuid(56a8689a-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IMediaSample : IUnknown +{ + HRESULT GetPointer([out] BYTE ** ppBuffer); + + long GetSize(void); + + HRESULT GetTime( + [out] REFERENCE_TIME * pTimeStart, + [out] REFERENCE_TIME * pTimeEnd); + + HRESULT SetTime( + [in] REFERENCE_TIME * pTimeStart, + [in] REFERENCE_TIME * pTimeEnd); + + HRESULT IsSyncPoint(void); + + HRESULT SetSyncPoint(BOOL bIsSyncPoint); + + HRESULT IsPreroll(void); + + HRESULT SetPreroll(BOOL bIsPreroll); + + LONG GetActualDataLength(void); + + HRESULT SetActualDataLength(LONG length); + + HRESULT GetMediaType(AM_MEDIA_TYPE **ppMediaType); + + HRESULT SetMediaType(AM_MEDIA_TYPE *pMediaType); + + HRESULT IsDiscontinuity(void); + + HRESULT SetDiscontinuity(BOOL bDiscontinuity); + + HRESULT GetMediaTime( + [out] LONGLONG * pTimeStart, + [out] LONGLONG * pTimeEnd); + + HRESULT SetMediaTime( + [in] LONGLONG * pTimeStart, + [in] LONGLONG * pTimeEnd); +} + +typedef IMediaSample *PMEDIASAMPLE; + +enum tagAM_SAMPLE_PROPERTY_FLAGS +{ + AM_SAMPLE_SPLICEPOINT = 0x01, + AM_SAMPLE_PREROLL = 0x02, + AM_SAMPLE_DATADISCONTINUITY = 0x04, + AM_SAMPLE_TYPECHANGED = 0x08, + AM_SAMPLE_TIMEVALID = 0x10, + AM_SAMPLE_TIMEDISCONTINUITY = 0x40, + AM_SAMPLE_FLUSH_ON_PAUSE = 0x80, + AM_SAMPLE_STOPVALID = 0x100, + AM_SAMPLE_ENDOFSTREAM = 0x200, + AM_STREAM_MEDIA = 0, + AM_STREAM_CONTROL = 1 +}; + +typedef struct tagAM_SAMPLE2_PROPERTIES +{ + DWORD cbData; + DWORD dwTypeSpecificFlags; + DWORD dwSampleFlags; + LONG lActual; + REFERENCE_TIME tStart; + REFERENCE_TIME tStop; + DWORD dwStreamId; + AM_MEDIA_TYPE *pMediaType; + BYTE *pbBuffer; + LONG cbBuffer; +} AM_SAMPLE2_PROPERTIES; + +[ + local, + object, + uuid(36b73884-c2c8-11cf-8b46-00805f6cef60), + pointer_default(unique) +] +interface IMediaSample2 : IMediaSample +{ + HRESULT GetProperties( + [in] DWORD cbProperties, + [out, size_is(cbProperties)] BYTE * pbProperties + ); + + HRESULT SetProperties( + [in] DWORD cbProperties, + [in, size_is(cbProperties)] const BYTE * pbProperties + ); +} + +typedef IMediaSample2 *PMEDIASAMPLE2; + +#define AM_GBF_PREVFRAMESKIPPED 1 +#define AM_GBF_NOTASYNCPOINT 2 +cpp_quote("#define AM_GBF_PREVFRAMESKIPPED 1") +cpp_quote("#define AM_GBF_NOTASYNCPOINT 2") + +cpp_quote("#define AM_GBF_NOWAIT 4") +cpp_quote("#define AM_GBF_NODDSURFACELOCK 8") + +[ +object, +uuid(56a8689c-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IMemAllocator : IUnknown +{ + HRESULT SetProperties( + [in] ALLOCATOR_PROPERTIES* pRequest, + [out] ALLOCATOR_PROPERTIES* pActual); + + HRESULT GetProperties( + [out] ALLOCATOR_PROPERTIES* pProps); + + HRESULT Commit(void); + + HRESULT Decommit(void); + + HRESULT GetBuffer( + [out] IMediaSample **ppBuffer, + [in] REFERENCE_TIME * pStartTime, + [in] REFERENCE_TIME * pEndTime, + [in] DWORD dwFlags); + + HRESULT ReleaseBuffer( + [in] IMediaSample *pBuffer); +} + +typedef IMemAllocator *PMEMALLOCATOR; + +[ +object, +uuid(379a0cf0-c1de-11d2-abf5-00a0c905f375), +pointer_default(unique) +] +interface IMemAllocatorCallbackTemp : IMemAllocator +{ + HRESULT SetNotify( + [in] IMemAllocatorNotifyCallbackTemp *pNotify); + + HRESULT GetFreeCount( + [out] LONG *plBuffersFree); +} + +[ +object, +uuid(92980b30-c1de-11d2-abf5-00a0c905f375), +pointer_default(unique) +] +interface IMemAllocatorNotifyCallbackTemp : IUnknown +{ + HRESULT NotifyRelease(); +} + +[ +object, +uuid(56a8689d-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IMemInputPin : IUnknown +{ + HRESULT GetAllocator( + [out] IMemAllocator ** ppAllocator); + + HRESULT NotifyAllocator( + [in] IMemAllocator * pAllocator, + [in] BOOL bReadOnly); + + HRESULT GetAllocatorRequirements( [out] ALLOCATOR_PROPERTIES*pProps ); + + HRESULT Receive( + [in] IMediaSample * pSample); + + HRESULT ReceiveMultiple( + [in, size_is(nSamples)] IMediaSample **pSamples, + [in] long nSamples, + [out] long *nSamplesProcessed); + + HRESULT ReceiveCanBlock(); +} + +typedef IMemInputPin *PMEMINPUTPIN; + +[ +object, +uuid(a3d8cec0-7e5a-11cf-bbc5-00805f6cef20), +pointer_default(unique) +] +interface IAMovieSetup : IUnknown +{ + HRESULT Register( ); + HRESULT Unregister( ); +} + +typedef IAMovieSetup *PAMOVIESETUP; + +typedef enum AM_SEEKING_SeekingFlags +{ + AM_SEEKING_NoPositioning = 0x00, + AM_SEEKING_AbsolutePositioning = 0x01, + AM_SEEKING_RelativePositioning = 0x02, + AM_SEEKING_IncrementalPositioning = 0x03, + AM_SEEKING_PositioningBitsMask = 0x03, + AM_SEEKING_SeekToKeyFrame = 0x04, + AM_SEEKING_ReturnTime = 0x08, + AM_SEEKING_Segment = 0x10, + AM_SEEKING_NoFlush = 0x20 +} AM_SEEKING_SEEKING_FLAGS; + +typedef enum AM_SEEKING_SeekingCapabilities +{ + AM_SEEKING_CanSeekAbsolute = 0x001, + AM_SEEKING_CanSeekForwards = 0x002, + AM_SEEKING_CanSeekBackwards = 0x004, + AM_SEEKING_CanGetCurrentPos = 0x008, + AM_SEEKING_CanGetStopPos = 0x010, + AM_SEEKING_CanGetDuration = 0x020, + AM_SEEKING_CanPlayBackwards = 0x040, + AM_SEEKING_CanDoSegments = 0x080, + AM_SEEKING_Source = 0x100 +} AM_SEEKING_SEEKING_CAPABILITIES; + +[ +object, +uuid(36b73880-c2c8-11cf-8b46-00805f6cef60), +pointer_default(unique) +] +interface IMediaSeeking : IUnknown +{ + HRESULT GetCapabilities( [out] DWORD * pCapabilities ); + + HRESULT CheckCapabilities( [in,out] DWORD * pCapabilities ); + + HRESULT IsFormatSupported([in] const GUID * pFormat); + + HRESULT QueryPreferredFormat([out] GUID * pFormat); + + HRESULT GetTimeFormat([out] GUID *pFormat); + + HRESULT IsUsingTimeFormat([in] const GUID * pFormat); + + HRESULT SetTimeFormat([in] const GUID * pFormat); + + HRESULT GetDuration([out] LONGLONG *pDuration); + + HRESULT GetStopPosition([out] LONGLONG *pStop); + + HRESULT GetCurrentPosition([out] LONGLONG *pCurrent); + + HRESULT ConvertTimeFormat([out] LONGLONG * pTarget, [in] const GUID * pTargetFormat, + [in] LONGLONG Source, [in] const GUID * pSourceFormat ); + + HRESULT SetPositions( + [in,out] LONGLONG * pCurrent, + [in] DWORD dwCurrentFlags, + [in,out] LONGLONG * pStop, + [in] DWORD dwStopFlags); + + HRESULT GetPositions( + [out] LONGLONG * pCurrent, + [out] LONGLONG * pStop); + + HRESULT GetAvailable( + [out] LONGLONG * pEarliest, + [out] LONGLONG * pLatest); + + HRESULT SetRate([in] double dRate); + + HRESULT GetRate([out] double * pdRate); + + HRESULT GetPreroll([out] LONGLONG * pllPreroll); +} + +typedef IMediaSeeking *PMEDIASEEKING; + +enum tagAM_MEDIAEVENT_FLAGS +{ + AM_MEDIAEVENT_NONOTIFY = 0x01 +}; diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/axextend.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/axextend.idl new file mode 100644 index 00000000..e3ada4fb --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/axextend.idl @@ -0,0 +1,1074 @@ +/* + * Copyright (C) 2002 Robert Shearman + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +interface IAMAnalogVideoDecoder; +interface IAMAnalogVideoEncoder; +interface IAMAudioInputMixer; +interface IAMAudioRendererStats; +interface IAMBufferNegotiation; +interface IAMCameraControl; +interface IAMCopyCaptureFileProgress; +interface IAMCrossbar; +interface IAMDevMemoryAllocator; +interface IAMDevMemoryControl; +interface IAMDroppedFrames; +interface IAMExtDevice; +interface IAMExtTransport; +interface IAMGraphStreams; +interface IAMLatency; +interface IAMOpenProgress; +interface IAMOverlayFX; +interface IAMPhysicalPinInfo; +interface IAMPushSource; +interface IAMStreamConfig; +interface IAMTimecodeDisplay; +interface IAMTimecodeGenerator; +interface IAMTimecodeReader; +interface IAMTVTuner; +interface IAMVfwCaptureDialogs; +interface IAMVfwCompressDialogs; +interface IAMVideoCompression; +interface IAMVideoDecimationProperties; +interface IAMVideoProcAmp; +interface IAMGraphBuilderCallback; +interface ICaptureGraphBuilder; +interface ICaptureGraphBuilder2; +interface IConfigAviMux; +interface IConfigInterleaving; +interface IDecimateVideoImage; +interface IDrawVideoImage; +interface IEnumRegFilters; +interface IEnumStreamIdMap; +interface IFileSourceFilter; +interface IFileSinkFilter; +interface IFileSinkFilter2; +interface IFilterMapper; +interface IFilterMapper2; +interface IGraphBuilder; +interface IKsPropertySet; +interface IMediaEventSink; +interface IMpeg2Demultiplexer; +interface IMPEG2StreamIdMap; +interface IOverlay; +interface IOverlayNotify; +interface IOverlayNotify2; +interface IQualityControl; +interface ISeekingPassThru; + +typedef struct +{ + CLSID Clsid; + LPWSTR Name; +} REGFILTER; + +[ +object, +uuid(56a868a4-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IEnumRegFilters : IUnknown +{ + HRESULT Next + ( [in] ULONG cFilters, + [out] REGFILTER ** apRegFilter, + [out] ULONG * pcFetched + ); + + HRESULT Skip( + [in] ULONG cFilters + ); + + HRESULT Reset(void); + + HRESULT Clone( + [out] IEnumRegFilters **ppEnum + ); +} + + +typedef IEnumRegFilters *PENUMREGFILTERS; + +[ +object, +uuid(56a868a3-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IFilterMapper : IUnknown +{ + enum { MERIT_PREFERRED = 0x800000, + MERIT_NORMAL = 0x600000, + MERIT_UNLIKELY = 0x400000, + MERIT_DO_NOT_USE = 0x200000, + MERIT_SW_COMPRESSOR = 0x100000, + MERIT_HW_COMPRESSOR = 0x100050 + }; + + HRESULT RegisterFilter + ( [in] CLSID clsid, + [in] LPCWSTR Name, + [in] DWORD dwMerit + ); + + HRESULT RegisterFilterInstance + ( [in] CLSID clsid, + [in] LPCWSTR Name, + [out] CLSID *MRId + ); + + + HRESULT RegisterPin + ( [in] CLSID Filter, + [in] LPCWSTR Name, + [in] BOOL bRendered, + [in] BOOL bOutput, + [in] BOOL bZero, + [in] BOOL bMany, + [in] CLSID ConnectsToFilter, + [in] LPCWSTR ConnectsToPin + ); + + HRESULT RegisterPinType + ( [in] CLSID clsFilter, + [in] LPCWSTR strName, + [in] CLSID clsMajorType, + [in] CLSID clsSubType + ); + + + HRESULT UnregisterFilter + ( [in] CLSID Filter + ); + + + HRESULT UnregisterFilterInstance + ( [in] CLSID MRId + ); + + + HRESULT UnregisterPin + ( [in] CLSID Filter, + [in] LPCWSTR Name + ); + + HRESULT EnumMatchingFilters + ( [out] IEnumRegFilters **ppEnum, + [in] DWORD dwMerit, + [in] BOOL bInputNeeded, + [in] CLSID clsInMaj, + [in] CLSID clsInSub, + [in] BOOL bRender, + [in] BOOL bOututNeeded, + [in] CLSID clsOutMaj, + [in] CLSID clsOutSub + ); + +} + +typedef struct +{ + const CLSID * clsMajorType; + const CLSID * clsMinorType; +} REGPINTYPES; + +typedef struct +{ + LPWSTR strName; + BOOL bRendered; + BOOL bOutput; + BOOL bZero; + BOOL bMany; + const CLSID * clsConnectsToFilter; + const WCHAR * strConnectsToPin; + UINT nMediaTypes; + const REGPINTYPES * lpMediaType; +} REGFILTERPINS; + +typedef struct +{ + CLSID clsMedium; + DWORD dw1; + DWORD dw2; +} REGPINMEDIUM; + +enum +{ + REG_PINFLAG_B_ZERO = 0x1, + REG_PINFLAG_B_RENDERER = 0x2, + REG_PINFLAG_B_MANY = 0x4, + REG_PINFLAG_B_OUTPUT = 0x8 +}; + + +typedef struct +{ + DWORD dwFlags; + UINT cInstances; + UINT nMediaTypes; + [size_is(nMediaTypes)] const REGPINTYPES * lpMediaType; + UINT nMediums; + [size_is(nMediums)] const REGPINMEDIUM *lpMedium; + const CLSID *clsPinCategory; +} REGFILTERPINS2; + +typedef struct +{ + DWORD dwVersion; + DWORD dwMerit; + [switch_is(dwVersion)] [switch_type(DWORD)] union + { + [case(1)] + struct + { + ULONG cPins; + [size_is(cPins)] const REGFILTERPINS *rgPins; + }; + + [case(2)] + struct + { + ULONG cPins2; + [size_is(cPins2)] const REGFILTERPINS2 *rgPins2; + }; + + [default] + ; + }; + +} REGFILTER2; + + +[ +object, +uuid(b79bb0b0-33c1-11d1-abe1-00a0c905f375), +pointer_default(unique) +] +interface IFilterMapper2 : IUnknown +{ + HRESULT CreateCategory + ( [in] REFCLSID clsidCategory, + [in] DWORD dwCategoryMerit, + [in] LPCWSTR Description + ); + + HRESULT UnregisterFilter + ( [in] const CLSID *pclsidCategory, + [in] LPCOLESTR szInstance, + [in] REFCLSID Filter + ); + + HRESULT RegisterFilter + ( [in] REFCLSID clsidFilter, + [in] LPCWSTR Name, + [in, out] IMoniker **ppMoniker, + [in] const CLSID *pclsidCategory, + [in] LPCOLESTR szInstance, + [in] const REGFILTER2 *prf2 + ); + + HRESULT EnumMatchingFilters + ( [out] IEnumMoniker **ppEnum, + [in] DWORD dwFlags, + [in] BOOL bExactMatch, + [in] DWORD dwMerit, + [in] BOOL bInputNeeded, + [in] DWORD cInputTypes, + [size_is(cInputTypes*2)] const GUID *pInputTypes, + [in] const REGPINMEDIUM *pMedIn, + [in] const CLSID *pPinCategoryIn, + [in] BOOL bRender, + [in] BOOL bOutputNeeded, + [in] DWORD cOutputTypes, + [size_is(cOutputTypes*2)] const GUID *pOutputTypes, + [in] const REGPINMEDIUM *pMedOut, + [in] const CLSID *pPinCategoryOut + ); +} + +[ +object, +uuid(b79bb0b1-33c1-11d1-abe1-00a0c905f375), +pointer_default(unique) +] +interface IFilterMapper3 : IFilterMapper2 +{ + HRESULT GetICreateDevEnum( [out] ICreateDevEnum **ppEnum ); +} + +typedef enum tagQualityMessageType +{ + Famine, + Flood +} QualityMessageType; + +typedef struct tagQuality +{ + QualityMessageType Type; + LONG Proportion; + REFERENCE_TIME Late; + REFERENCE_TIME TimeStamp; +} Quality; + +typedef IQualityControl *PQUALITYCONTROL; + +[ +object, +uuid(56a868a5-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IQualityControl : IUnknown +{ + HRESULT Notify + ( [in] IBaseFilter * pSelf, + [in] Quality q + ); + + HRESULT SetSink + ( [in] IQualityControl * piqc + ); +} + +enum +{ + CK_NOCOLORKEY = 0x0, + CK_INDEX = 0x1, + CK_RGB = 0x2 +}; + +typedef struct tagCOLORKEY +{ + DWORD KeyType; + DWORD PaletteIndex; + COLORREF LowColorValue; + COLORREF HighColorValue; +} COLORKEY; + +enum +{ + ADVISE_NONE = 0x0, + ADVISE_CLIPPING = 0x1, + ADVISE_PALETTE = 0x2, + ADVISE_COLORKEY = 0x4, + ADVISE_POSITION = 0x8, + ADVISE_DISPLAY_CHANGE = 0x10 +}; + +const DWORD ADVISE_ALL = ADVISE_CLIPPING | + ADVISE_PALETTE | + ADVISE_COLORKEY | + ADVISE_POSITION; + +const DWORD ADVISE_ALL2 = ADVISE_ALL | + ADVISE_DISPLAY_CHANGE; + +cpp_quote("#ifndef _WINGDI_") + +/* already defined in wingdi.h, but needed for WIDL */ + +typedef struct _RGNDATAHEADER +{ + DWORD dwSize; + DWORD iType; + DWORD nCount; + DWORD nRgnSize; + RECT rcBound; +} RGNDATAHEADER; + +typedef struct _RGNDATA +{ + RGNDATAHEADER rdh; + char Buffer[1]; +} RGNDATA; + +cpp_quote("#endif /* _WINGDI_ */") + +[ +object, +local, +uuid(56a868a0-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IOverlayNotify : IUnknown +{ + HRESULT OnPaletteChange( + [in] DWORD dwColors, + [in] const PALETTEENTRY *pPalette); + + HRESULT OnClipChange( + [in] const RECT *pSourceRect, + [in] const RECT *pDestinationRect, + [in] const RGNDATA *pRgnData); + + HRESULT OnColorKeyChange([in] const COLORKEY *pColorKey); + + HRESULT OnPositionChange([in] const RECT *pSourceRect, + [in] const RECT *pDestinationRect); +} + +typedef IOverlayNotify *POVERLAYNOTIFY; + +cpp_quote("#if 0") +typedef HANDLE HMONITOR; +cpp_quote("#endif /* 0 */") + +[ +object, +local, +uuid(680EFA10-D535-11D1-87C8-00A0C9223196), +pointer_default(unique) +] +interface IOverlayNotify2 : IOverlayNotify +{ + HRESULT OnDisplayChange( + HMONITOR hMonitor); +} + +typedef IOverlayNotify2 *POVERLAYNOTIFY2; + +[ +object, +local, +uuid(56a868a1-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IOverlay : IUnknown +{ + HRESULT GetPalette( + [out] DWORD *pdwColors, + [out] PALETTEENTRY **ppPalette); + + HRESULT SetPalette( + [in] DWORD dwColors, + [in] PALETTEENTRY *pPalette); + + HRESULT GetDefaultColorKey([out] COLORKEY *pColorKey); + + HRESULT GetColorKey([out] COLORKEY *pColorKey); + + HRESULT SetColorKey([in,out] COLORKEY *pColorKey); + + HRESULT GetWindowHandle([out] HWND *pHwnd); + + HRESULT GetClipList([out] RECT *pSourceRect, + [out] RECT *pDestinationRect, + [out] RGNDATA **ppRgnData); + + HRESULT GetVideoPosition([out] RECT *pSourceRect, + [out] RECT *pDestinationRect); + + HRESULT Advise( + [in] IOverlayNotify *pOverlayNotify, + [in] DWORD dwInterests); + + HRESULT Unadvise(); +} + +typedef IOverlay *POVERLAY; + +[ +object, +uuid(56a868a2-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IMediaEventSink : IUnknown +{ + HRESULT Notify( + [in] LONG EventCode, + [in] LONG_PTR EventParam1, + [in] LONG_PTR EventParam2 + ); +} + +typedef IMediaEventSink *PMEDIAEVENTSINK; + +[ +object, +uuid(56a868a6-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IFileSourceFilter : IUnknown +{ + HRESULT Load( + [in] LPCOLESTR pszFileName, + [in, unique] const AM_MEDIA_TYPE *pmt + ); + + HRESULT GetCurFile( + [out] LPOLESTR *ppszFileName, + [out] AM_MEDIA_TYPE *pmt + ); +} + +typedef IFileSourceFilter *PFILTERFILESOURCE; + +[ +object, +uuid(a2104830-7c70-11cf-8bce-00aa00a3f1a6), +pointer_default(unique) +] +interface IFileSinkFilter : IUnknown +{ + HRESULT SetFileName( + [in] LPCOLESTR pszFileName, + [in, unique] const AM_MEDIA_TYPE *pmt + ); + + HRESULT GetCurFile( + [out] LPOLESTR *ppszFileName, + [out] AM_MEDIA_TYPE *pmt + ); +} + +typedef IFileSinkFilter *PFILTERFILESINK; + +[ + object, + uuid(00855B90-CE1B-11d0-BD4F-00A0C911CE86), + pointer_default(unique) +] +interface IFileSinkFilter2 : IFileSinkFilter +{ + HRESULT SetMode( + [in] DWORD dwFlags + ); + + HRESULT GetMode( + [out] DWORD *pdwFlags + ); +} + +typedef IFileSinkFilter2 *PFILESINKFILTER2; + +typedef enum +{ + AM_FILE_OVERWRITE = 0x00000001, +} AM_FILESINK_FLAGS; + +[ +object, +uuid(56a868a9-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IGraphBuilder : IFilterGraph +{ + HRESULT Connect + ( [in] IPin * ppinOut, + [in] IPin * ppinIn + ); + + HRESULT Render + ( [in] IPin * ppinOut + ); + + HRESULT RenderFile + ( [in] LPCWSTR lpcwstrFile, + [in, unique] LPCWSTR lpcwstrPlayList + ); + + HRESULT AddSourceFilter + ( [in] LPCWSTR lpcwstrFileName, + [in, unique] LPCWSTR lpcwstrFilterName, + [out] IBaseFilter* *ppFilter + ); + + HRESULT SetLogFile + ( [in] DWORD_PTR hFile + ); + + HRESULT Abort(); + + HRESULT ShouldOperationContinue(); +} + + +[ + object, + uuid(bf87b6e0-8c27-11d0-b3f0-00aa003761c5), + pointer_default(unique) +] +interface ICaptureGraphBuilder : IUnknown { + + HRESULT SetFiltergraph( + [in] IGraphBuilder *pfg); + + HRESULT GetFiltergraph( + [out] IGraphBuilder **ppfg); + + HRESULT SetOutputFileName( + [in] const GUID *pType, + [in] LPCOLESTR lpstrFile, + [out] IBaseFilter **ppf, + [out] IFileSinkFilter **ppSink); + + [local] HRESULT FindInterface( + [in, unique] const GUID *pCategory, + [in] IBaseFilter *pf, + [in] REFIID riid, + [out] void **ppint); + + [call_as(FindInterface)] HRESULT RemoteFindInterface( + [in, unique] const GUID *pCategory, + [in] IBaseFilter *pf, + [in] REFIID riid, + [out] IUnknown **ppint); + + HRESULT RenderStream( + [in] const GUID *pCategory, + [in] IUnknown *pSource, + [in] IBaseFilter *pfCompressor, + [in] IBaseFilter *pfRenderer); + + HRESULT ControlStream( + [in] const GUID *pCategory, + [in] IBaseFilter *pFilter, + [in] REFERENCE_TIME *pstart, + [in] REFERENCE_TIME *pstop, + [in] WORD wStartCookie, + [in] WORD wStopCookie); + + HRESULT AllocCapFile( + [in] LPCOLESTR lpstr, + [in] DWORDLONG dwlSize); + + HRESULT CopyCaptureFile( + [in] LPOLESTR lpwstrOld, + [in] LPOLESTR lpwstrNew, + [in] int fAllowEscAbort, + [in] IAMCopyCaptureFileProgress *pCallback); +} + +[ +object, +uuid(670d1d20-a068-11d0-b3f0-00aa003761c5), +pointer_default(unique) +] +interface IAMCopyCaptureFileProgress : IUnknown +{ + HRESULT Progress( + [in] int iProgress); +} + +[ + object, + uuid(93E5A4E0-2D50-11d2-ABFA-00A0C9C6E38D), + pointer_default(unique) +] +interface ICaptureGraphBuilder2 : IUnknown +{ + HRESULT SetFiltergraph( + [in] IGraphBuilder *pfg); + + HRESULT GetFiltergraph( + [out] IGraphBuilder **ppfg); + + HRESULT SetOutputFileName( + [in] const GUID *pType, + [in] LPCOLESTR lpstrFile, + [out] IBaseFilter **ppf, + [out] IFileSinkFilter **ppSink); + + [local] HRESULT FindInterface( + [in] const GUID *pCategory, + [in] const GUID *pType, + [in] IBaseFilter *pf, + [in] REFIID riid, + [out] void **ppint); + + [call_as(FindInterface)] HRESULT RemoteFindInterface( + [in] const GUID *pCategory, + [in] const GUID *pType, + [in] IBaseFilter *pf, + [in] REFIID riid, + [out] IUnknown **ppint); + + HRESULT RenderStream( + [in] const GUID *pCategory, + [in] const GUID *pType, + [in] IUnknown *pSource, + [in] IBaseFilter *pfCompressor, + [in] IBaseFilter *pfRenderer); + + HRESULT ControlStream( + [in] const GUID *pCategory, + [in] const GUID *pType, + [in] IBaseFilter *pFilter, + [in] REFERENCE_TIME *pstart, + [in] REFERENCE_TIME *pstop, + [in] WORD wStartCookie, + [in] WORD wStopCookie); + + HRESULT AllocCapFile( + [in] LPCOLESTR lpstr, + [in] DWORDLONG dwlSize); + + HRESULT CopyCaptureFile( + [in] LPOLESTR lpwstrOld, + [in] LPOLESTR lpwstrNew, + [in] int fAllowEscAbort, + [in] IAMCopyCaptureFileProgress *pCallback); + + HRESULT FindPin( + [in] IUnknown *pSource, + [in] PIN_DIRECTION pindir, + [in] const GUID *pCategory, + [in] const GUID *pType, + [in] BOOL fUnconnected, + [in] int num, + [out] IPin **ppPin); +} + +enum _AM_RENSDEREXFLAGS +{ + AM_RENDEREX_RENDERTOEXISTINGRENDERERS = 0x01 +}; + +[ + object, + uuid(36b73882-c2c8-11cf-8b46-00805f6cef60), + pointer_default(unique) +] +interface IFilterGraph2: IGraphBuilder +{ + HRESULT AddSourceFilterForMoniker( + [in] IMoniker *pMoniker, + [in] IBindCtx *pCtx, + [in, unique] LPCWSTR lpcwstrFilterName, + [out] IBaseFilter **ppFilter + ); + + HRESULT ReconnectEx + ( [in] IPin * ppin, + [in, unique] const AM_MEDIA_TYPE *pmt + ); + + HRESULT RenderEx( [in] IPin *pPinOut, + [in] DWORD dwFlags, + [in, out] DWORD *pvContext + ); +} + +[ + object, + local, + uuid(56a868bf-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IStreamBuilder : IUnknown +{ + HRESULT Render + ( [in] IPin * ppinOut, + [in] IGraphBuilder * pGraph + ); + + HRESULT Backout + ( [in] IPin * ppinOut, + [in] IGraphBuilder * pGraph + ); +} + + +/***************************************************************************** + * IAMStreamConfig interface + */ +[ + object, + uuid(c6e13340-30ac-11d0-a18c-00a0c9118956), + pointer_default(unique) +] +interface IAMStreamConfig : IUnknown +{ + typedef struct _VIDEO_STREAM_CONFIG_CAPS { + GUID guid; + ULONG VideoStandard; + SIZE InputSize; + SIZE MinCroppingSize; + SIZE MaxCroppingSize; + int CropGranularityX; + int CropGranularityY; + int CropAlignX; + int CropAlignY; + SIZE MinOutputSize; + SIZE MaxOutputSize; + int OutputGranularityX; + int OutputGranularityY; + int StretchTapsX; + int StretchTapsY; + int ShrinkTapsX; + int ShrinkTapsY; + LONGLONG MinFrameInterval; + LONGLONG MaxFrameInterval; + LONG MinBitsPerSecond; + LONG MaxBitsPerSecond; + } VIDEO_STREAM_CONFIG_CAPS; + + typedef struct _AUDIO_STREAM_CONFIG_CAPS { + GUID guid; + ULONG MinimumChannels; + ULONG MaximumChannels; + ULONG ChannelsGranularity; + ULONG MinimumBitsPerSample; + ULONG MaximumBitsPerSample; + ULONG BitsPerSampleGranularity; + ULONG MinimumSampleFrequency; + ULONG MaximumSampleFrequency; + ULONG SampleFrequencyGranularity; + } AUDIO_STREAM_CONFIG_CAPS; + + HRESULT SetFormat( [in] AM_MEDIA_TYPE *pmt); + HRESULT GetFormat( [in] AM_MEDIA_TYPE **pmt); + HRESULT GetNumberOfCapabilities( [out] int *piCount, [out] int *piSize); + HRESULT GetStreamCaps( [in] int iIndex, [out] AM_MEDIA_TYPE **pmt, + [out] BYTE *pSCC); +} + + +typedef enum tagVideoProcAmpProperty +{ + VideoProcAmp_Brightness, + VideoProcAmp_Contrast, + VideoProcAmp_Hue, + VideoProcAmp_Saturation, + VideoProcAmp_Sharpness, + VideoProcAmp_Gamma, + VideoProcAmp_ColorEnable, + VideoProcAmp_WhiteBalance, + VideoProcAmp_BacklightCompensation, + VideoProcAmp_Gain +} VideoProcAmpProperty; + +typedef enum tagVideoProcAmpFlags +{ + VideoProcAmp_Flags_Auto = 0x0001, + VideoProcAmp_Flags_Manual = 0x0002, +} VideoProcAmpFlags; + +/***************************************************************************** + * IAMVideoProcAmp interface + */ +[ + object, + uuid(c6e13360-30ac-11d0-a18c-00a0c9118956), + pointer_default(unique) +] +interface IAMVideoProcAmp : IUnknown +{ + HRESULT GetRange( [in] LONG Property, [out] LONG *pMin, [out] LONG *pMax, + [out] LONG *pSteppingDelta, [out] LONG *pDefault, + [out] LONG *pCapsFlags); + HRESULT Set( [in] LONG Property, [in] LONG lValue, [in] LONG Flags); + HRESULT Get( [in] LONG Property, [out] LONG *lValue, [out] LONG *Flags); +} + + +[ + object, + uuid(56a868aa-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IAsyncReader : IUnknown +{ + HRESULT RequestAllocator( + [in] IMemAllocator* pPreferred, + [in] ALLOCATOR_PROPERTIES* pProps, + [out] IMemAllocator ** ppActual); + + HRESULT Request( + [in] IMediaSample* pSample, + [in] DWORD_PTR dwUser); + + HRESULT WaitForNext( + [in] DWORD dwTimeout, + [out] IMediaSample** ppSample, + [out] DWORD_PTR * pdwUser); + + HRESULT SyncReadAligned( + [in] IMediaSample* pSample); + + HRESULT SyncRead( + [in] LONGLONG llPosition, + [in] LONG lLength, + [out, size_is(lLength)] + BYTE* pBuffer); + + HRESULT Length( + [out] LONGLONG* pTotal, + [out] LONGLONG* pAvailable); + + HRESULT BeginFlush(void); + + HRESULT EndFlush(void); +} + + +[ + object, + uuid(56a868ab-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IGraphVersion : IUnknown +{ + HRESULT QueryVersion(LONG* pVersion); +} + +[ + object, + uuid(56a868ad-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IResourceConsumer : IUnknown +{ + HRESULT AcquireResource( + [in] LONG idResource); + + HRESULT ReleaseResource( + [in] LONG idResource); +} + + +[ + object, + uuid(56a868ac-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IResourceManager : IUnknown +{ + HRESULT Register( + [in] LPCWSTR pName, + [in] LONG cResource, + [out] LONG* plToken + ); + + HRESULT RegisterGroup( + [in] LPCWSTR pName, + [in] LONG cResource, + [in, size_is(cResource)] + LONG* palTokens, + [out] LONG* plToken + ); + + HRESULT RequestResource( + [in] LONG idResource, + [in] IUnknown* pFocusObject, + [in] IResourceConsumer* pConsumer + ); + + HRESULT NotifyAcquire( + [in] LONG idResource, + [in] IResourceConsumer* pConsumer, + [in] HRESULT hr); + + HRESULT NotifyRelease( + [in] LONG idResource, + [in] IResourceConsumer* pConsumer, + [in] BOOL bStillWant); + + HRESULT CancelRequest( + [in] LONG idResource, + [in] IResourceConsumer* pConsumer); + + HRESULT SetFocus( + [in] IUnknown* pFocusObject); + + HRESULT ReleaseFocus( + [in] IUnknown* pFocusObject); + +} + +cpp_quote("#ifndef _IKsPropertySet_") +cpp_quote("#define _IKsPropertySet_") +cpp_quote("#define KSPROPERTY_SUPPORT_GET 1") +cpp_quote("#define KSPROPERTY_SUPPORT_SET 2") + +[ + object, + uuid(31efac30-515c-11d0-a9aa-00aa0061be93), + pointer_default(unique), + local +] +interface IKsPropertySet : IUnknown +{ + HRESULT Set( [in] REFGUID guidPropSet, + [in] DWORD dwPropID, + [in, size_is(cbInstanceData)] LPVOID pInstanceData, + [in] DWORD cbInstanceData, + [in, size_is(cbPropData)] LPVOID pPropData, + [in] DWORD cbPropData ); + + HRESULT Get( [in] REFGUID guidPropSet, + [in] DWORD dwPropID, + [in, size_is(cbInstanceData)] LPVOID pInstanceData, + [in] DWORD cbInstanceData, + [out, size_is(cbPropData)] LPVOID pPropData, + [in] DWORD cbPropData, + [out] DWORD *pcbReturned ); + + HRESULT QuerySupported( [in] REFGUID guidPropSet, + [in] DWORD dwPropID, + [out] DWORD *pTypeSupport); +} +cpp_quote("#endif /* _IKsPropertySet_ */") + +[ + object, + uuid(36b73883-c2c8-11cf-8b46-00805f6cef60), + pointer_default(unique) +] +interface ISeekingPassThru : IUnknown +{ + HRESULT Init( [in] BOOL bSupportRendering, [in] IPin *pPin); +} + +enum _AM_FILTER_MISC_FLAGS +{ + AM_FILTER_MISC_FLAGS_IS_RENDERER = 0x1, + AM_FILTER_MISC_FLAGS_IS_SOURCE = 0x2 +}; + +[ + local, + object, + uuid(2dd74950-a890-11d1-abe8-00a0c905f375), + pointer_default(unique) +] +interface IAMFilterMiscFlags : IUnknown +{ + ULONG GetMiscFlags(); +}; + +[ + local, + object, + uuid(4995f511-9ddb-4f12-bd3b-f04611807b79), + pointer_default(unique) +] +interface IAMGraphBuilderCallback : IUnknown +{ + HRESULT SelectedFilter( + [in] IMoniker *pMon); + + HRESULT CreatedFilter( + [in] IBaseFilter *pFil); +}; diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/basetsd.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/basetsd.h new file mode 100644 index 00000000..065c4dd8 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/basetsd.h @@ -0,0 +1,333 @@ +/* + * Compilers that uses ILP32, LP64 or P64 type models + * for both Win32 and Win64 are supported by this file. + * + * Copyright (C) 1999 Patrik Stridvall + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_BASETSD_H +#define __WINE_BASETSD_H + +#ifdef __cplusplus +extern "C" { +#endif /* defined(__cplusplus) */ + +/* + * Win32 was easy to implement under Unix since most 32-bit Unices use the same + * type model (ILP32) as Win32, where int, long and pointer are 32-bit. + * + * Win64, however, can cause some problems. Most 64-bit Unices use the LP64 type + * model where int is 32-bit and long and pointer are 64-bit. Win64 on the other + * hand uses the LLP64 type model where int and long are 32 bit and pointer is + * 64-bit. + */ + +#if (defined(__x86_64__) || defined(__powerpc64__) || defined(__sparc64__) || defined(__aarch64__)) && !defined(_WIN64) +#define _WIN64 +#endif + +/* Type model independent typedefs */ +/* The __intXX types are native types defined by the MS C compiler. + * Apps that make use of them before they get defined here, can + * simply add to the command line: + * -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" + */ +#if !defined(_MSC_VER) && !defined(__WIDL__) +# ifndef __int8 +# define __int8 char +# endif +# ifndef __int16 +# define __int16 short +# endif +# ifndef __int32 +# define __int32 int +# endif +# ifndef __int64 +# if defined(_WIN64) && !defined(__MINGW64__) +# define __int64 long +# else +# define __int64 long long +# endif +# endif +#endif /* !defined(_MSC_VER) */ + +/* FIXME: DECLSPEC_ALIGN should be declared only in winnt.h, but we need it here too */ +#ifndef DECLSPEC_ALIGN +# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS) +# define DECLSPEC_ALIGN(x) __declspec(align(x)) +# elif defined(__GNUC__) +# define DECLSPEC_ALIGN(x) __attribute__((aligned(x))) +# else +# define DECLSPEC_ALIGN(x) +# endif +#endif + +typedef signed char INT8, *PINT8; +typedef signed short INT16, *PINT16; +typedef signed int INT32, *PINT32; +typedef unsigned char UINT8, *PUINT8; +typedef unsigned short UINT16, *PUINT16; +typedef unsigned int UINT32, *PUINT32; +typedef signed int LONG32, *PLONG32; +typedef unsigned int ULONG32, *PULONG32; +typedef unsigned int DWORD32, *PDWORD32; + +#ifdef _MSC_VER +typedef signed __int64 INT64, *PINT64; +typedef unsigned __int64 UINT64, *PUINT64; +typedef signed __int64 LONG64, *PLONG64; +typedef unsigned __int64 ULONG64, *PULONG64; +typedef unsigned __int64 DWORD64, *PDWORD64; +#else +typedef signed __int64 DECLSPEC_ALIGN(8) INT64, *PINT64; +typedef unsigned __int64 DECLSPEC_ALIGN(8) UINT64, *PUINT64; +typedef signed __int64 DECLSPEC_ALIGN(8) LONG64, *PLONG64; +typedef unsigned __int64 DECLSPEC_ALIGN(8) ULONG64, *PULONG64; +typedef unsigned __int64 DECLSPEC_ALIGN(8) DWORD64, *PDWORD64; +#endif + +/* Basic pointer-sized integer types */ + +#if defined(__midl) || defined(__WIDL__) + +typedef /* [public] */ signed __int3264 INT_PTR, *PINT_PTR; +typedef /* [public] */ signed __int3264 LONG_PTR, *PLONG_PTR; +typedef /* [public] */ unsigned __int3264 UINT_PTR, *PUINT_PTR; +typedef /* [public] */ unsigned __int3264 ULONG_PTR, *PULONG_PTR; +typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR; + +#elif defined(_WIN64) + +#define __int3264 __int64 + +typedef signed __int64 INT_PTR, *PINT_PTR; +typedef signed __int64 LONG_PTR, *PLONG_PTR; +typedef unsigned __int64 UINT_PTR, *PUINT_PTR; +typedef unsigned __int64 ULONG_PTR, *PULONG_PTR; +typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR; + +#else + +#define __int3264 __int32 + +typedef long INT_PTR, *PINT_PTR; +typedef unsigned long UINT_PTR, *PUINT_PTR; +typedef long LONG_PTR, *PLONG_PTR; +typedef unsigned long ULONG_PTR, *PULONG_PTR; +typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR; + +#endif + +/* Win32 or Win64 dependent typedef/defines. */ + +#ifdef _WIN64 + +#define MAXINT_PTR 0x7fffffffffffffff +#define MININT_PTR 0x8000000000000000 +#define MAXUINT_PTR 0xffffffffffffffff + +typedef __int64 SHANDLE_PTR; +typedef unsigned __int64 HANDLE_PTR; +typedef int HALF_PTR, *PHALF_PTR; +typedef unsigned int UHALF_PTR, *PUHALF_PTR; + +#define MAXHALF_PTR 0x7fffffff +#define MINHALF_PTR 0x80000000 +#define MAXUHALF_PTR 0xffffffff + +#if !defined(__midl) && !defined(__WIDL__) + +static inline ULONG32 HandleToULong(const void *h) +{ + return (ULONG32)(ULONG_PTR)h; +} + +static inline LONG32 HandleToLong(const void *h) +{ + return (LONG32)(LONG_PTR)h; +} + +static inline void *ULongToHandle(ULONG32 ul) +{ + return (void *)(ULONG_PTR)ul; +} + +static inline void *LongToHandle(LONG32 l) +{ + return (void *)(LONG_PTR)l; +} + +static inline ULONG32 PtrToUlong(const void *p) +{ + return (ULONG32)(ULONG_PTR)p; +} + +static inline LONG32 PtrToLong(const void *p) +{ + return (LONG32)(LONG_PTR)p; +} + +static inline UINT32 PtrToUint(const void *p) +{ + return (UINT32)(UINT_PTR)p; +} + +static inline INT32 PtrToInt(const void *p) +{ + return (INT32)(INT_PTR)p; +} + +static inline UINT16 PtrToUshort(const void *p) +{ + return (UINT16)(ULONG_PTR)p; +} + +static inline INT16 PtrToShort(const void *p) +{ + return (INT16)(LONG_PTR)p; +} + +static inline void *IntToPtr(INT32 i) +{ + return (void *)(INT_PTR)i; +} + +static inline void *UIntToPtr(UINT32 ui) +{ + return (void *)(UINT_PTR)ui; +} + +static inline void *LongToPtr(LONG32 l) +{ + return (void *)(LONG_PTR)l; +} + +static inline void *ULongToPtr(ULONG32 ul) +{ + return (void *)(ULONG_PTR)ul; +} + +#endif /* !__midl && !__WIDL__ */ + +#else /* FIXME: defined(_WIN32) */ + +#define MAXINT_PTR 0x7fffffff +#define MININT_PTR 0x80000000 +#define MAXUINT_PTR 0xffffffff + +typedef long SHANDLE_PTR; +typedef unsigned long HANDLE_PTR; +typedef signed short HALF_PTR, *PHALF_PTR; +typedef unsigned short UHALF_PTR, *PUHALF_PTR; + +#define MAXUHALF_PTR 0xffff +#define MAXHALF_PTR 0x7fff +#define MINHALF_PTR 0x8000 + +#define HandleToULong(h) ((ULONG)(ULONG_PTR)(h)) +#define HandleToLong(h) ((LONG)(LONG_PTR)(h)) +#define ULongToHandle(ul) ((HANDLE)(ULONG_PTR)(ul)) +#define LongToHandle(l) ((HANDLE)(LONG_PTR)(l)) +#define PtrToUlong(p) ((ULONG)(ULONG_PTR)(p)) +#define PtrToLong(p) ((LONG)(LONG_PTR)(p)) +#define PtrToUint(p) ((UINT)(UINT_PTR)(p)) +#define PtrToInt(p) ((INT)(INT_PTR)(p)) +#define PtrToUshort(p) ((USHORT)(ULONG_PTR)(p)) +#define PtrToShort(p) ((SHORT)(LONG_PTR)(p)) +#define IntToPtr(i) ((void *)(INT_PTR)((INT)i)) +#define UIntToPtr(ui) ((void *)(UINT_PTR)((UINT)ui)) +#define LongToPtr(l) ((void *)(LONG_PTR)((LONG)l)) +#define ULongToPtr(ul) ((void *)(ULONG_PTR)((ULONG)ul)) + +#endif /* defined(_WIN64) || defined(_WIN32) */ + +#define HandleToUlong(h) HandleToULong(h) +#define UlongToHandle(ul) ULongToHandle(ul) +#define UintToPtr(ui) UIntToPtr(ui) +#define UlongToPtr(ul) ULongToPtr(ul) + +typedef LONG_PTR SSIZE_T, *PSSIZE_T; +typedef ULONG_PTR SIZE_T, *PSIZE_T; + +typedef ULONG_PTR KAFFINITY, *PKAFFINITY; + +/* Some Wine-specific definitions */ + +/* Architecture dependent settings. */ +/* These are hardcoded to avoid dependencies on config.h in Winelib apps. */ +#if defined(__i386__) +# undef WORDS_BIGENDIAN +# undef BITFIELDS_BIGENDIAN +# define ALLOW_UNALIGNED_ACCESS +#elif defined(__x86_64__) +# undef WORDS_BIGENDIAN +# undef BITFIELDS_BIGENDIAN +# define ALLOW_UNALIGNED_ACCESS +#elif defined(__sparc__) +# define WORDS_BIGENDIAN +# define BITFIELDS_BIGENDIAN +# undef ALLOW_UNALIGNED_ACCESS +#elif defined(__powerpc__) +# define WORDS_BIGENDIAN +# define BITFIELDS_BIGENDIAN +# undef ALLOW_UNALIGNED_ACCESS +#elif defined(__ALPHA__) +# undef WORDS_BIGENDIAN +# undef BITFIELDS_BIGENDIAN +# undef ALLOW_UNALIGNED_ACCESS +#elif defined(__ARMEB__) +# define WORDS_BIGENDIAN +# define BITFIELDS_BIGENDIAN +# undef ALLOW_UNALIGNED_ACCESS +#elif defined(__ARMEL__) || defined(__arm__) +# undef WORDS_BIGENDIAN +# undef BITFIELDS_BIGENDIAN +# undef ALLOW_UNALIGNED_ACCESS +#elif defined(__AARCH64EB__) +# define WORDS_BIGENDIAN +# define BITFIELDS_BIGENDIAN +# undef ALLOW_UNALIGNED_ACCESS +#elif defined(__AARCH64EL__) || defined(__aarch64__) +# undef WORDS_BIGENDIAN +# undef BITFIELDS_BIGENDIAN +# undef ALLOW_UNALIGNED_ACCESS +#elif defined(__MIPSEB__) +# define WORDS_BIGENDIAN +# define BITFIELDS_BIGENDIAN +# undef ALLOW_UNALIGNED_ACCESS +#elif defined(__MIPSEL__) +# undef WORDS_BIGENDIAN +# undef BITFIELDS_BIGENDIAN +# undef ALLOW_UNALIGNED_ACCESS +#elif !defined(RC_INVOKED) && !defined(__WIDL__) && !defined(__midl) +# error Unknown CPU architecture! +#endif + +#ifdef __cplusplus +} /* extern "C" */ +#endif /* defined(__cplusplus) */ + +#endif /* !defined(__WINE_BASETSD_H) */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/basetyps.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/basetyps.h new file mode 100644 index 00000000..2f9b58ed --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/basetyps.h @@ -0,0 +1,92 @@ +/* + * Copyright (C) 1998 Anders Norlander + * Copyright (C) 2005 Steven Edwards + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef _BASETYPS_H_ +#define _BASETYPS_H_ + +#ifdef __cplusplus +# define EXTERN_C extern "C" +#else +# define EXTERN_C extern +#endif + +#define STDMETHODCALLTYPE __stdcall +#define STDMETHODVCALLTYPE __cdecl +#define STDAPICALLTYPE __stdcall +#define STDAPIVCALLTYPE __cdecl +#define STDAPI EXTERN_C HRESULT STDAPICALLTYPE +#define STDAPI_(t) EXTERN_C t STDAPICALLTYPE +#define STDMETHODIMP HRESULT STDMETHODCALLTYPE +#define STDMETHODIMP_(t) t STDMETHODCALLTYPE +#define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE +#define STDAPIV_(t) EXTERN_C t STDAPIVCALLTYPE +#define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE +#define STDMETHODIMPV_(t) t STDMETHODVCALLTYPE + +#if defined(__cplusplus) && !defined(CINTERFACE) +# define interface struct +# define STDMETHOD(m) virtual HRESULT STDMETHODCALLTYPE m +# define STDMETHOD_(t,m) virtual t STDMETHODCALLTYPE m +# define PURE =0 +# define THIS_ +# define THIS void +# define DECLARE_INTERFACE(i) interface i +# define DECLARE_INTERFACE_(i,b) interface i : public b +#else +# define STDMETHOD(m) HRESULT (STDMETHODCALLTYPE *m) +# define STDMETHOD_(t,m) t (STDMETHODCALLTYPE *m) +# define PURE +# define THIS_ INTERFACE *, +# define THIS INTERFACE * +# ifdef CONST_VTABLE +# define DECLARE_INTERFACE(i) \ + typedef interface i { const struct i##Vtbl *lpVtbl; } i; \ + typedef struct i##Vtbl i##Vtbl; \ + struct i##Vtbl +# else +# define DECLARE_INTERFACE(i) \ + typedef interface i { struct i##Vtbl *lpVtbl; } i; \ + typedef struct i##Vtbl i##Vtbl; \ + struct i##Vtbl +# endif +# define DECLARE_INTERFACE_(i,b) DECLARE_INTERFACE(i) +#endif + +#include + +#ifndef _ERROR_STATUS_T_DEFINED +typedef unsigned long error_status_t; +#define _ERROR_STATUS_T_DEFINED +#endif + +#ifndef _WCHAR_T_DEFINED +typedef unsigned short wchar_t; +#define _WCHAR_T_DEFINED +#endif + +#endif /* _BASETYPS_H_ */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/bcrypt.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/bcrypt.h new file mode 100644 index 00000000..fa7f08ac --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/bcrypt.h @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2007 Francois Gouget + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_BCRYPT_H +#define __WINE_BCRYPT_H + +#ifndef WINAPI +#define WINAPI __stdcall +#endif + +#ifndef IN +#define IN +#endif + +#ifndef OUT +#define OUT +#endif + +#ifndef OPTIONAL +#define OPTIONAL +#endif + +#ifndef WINE_NTSTATUS_DECLARED +#define WINE_NTSTATUS_DECLARED +typedef LONG NTSTATUS; +#endif + +typedef struct _BCRYPT_ALGORITHM_IDENTIFIER +{ + LPWSTR pszName; + ULONG dwClass; + ULONG dwFlags; +} BCRYPT_ALGORITHM_IDENTIFIER; + +#endif /* __WINE_BCRYPT_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/binres.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/binres.idl new file mode 100644 index 00000000..6bced343 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/binres.idl @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2009 Huw Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +[ + object, + uuid(0c733ab1-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface IBindResource : IUnknown +{ + [local] + HRESULT Bind([in] IUnknown *pUnkOuter, + [in] LPCOLESTR pwszURL, + [in] DBBINDURLFLAG dwBindURLFlags, + [in] REFGUID rguid, + [in] REFIID riid, + [in] IAuthenticate *pAuthenticate, + [in, out, unique] DBIMPLICITSESSION *pImplSession, + [in, out, unique] DBBINDURLSTATUS *pdwBindStatus, + [out, iid_is(riid)] IUnknown **ppUnk); + + [call_as(Bind)] + HRESULT RemoteBind([in] IUnknown *pUnkOuter, + [in] LPCOLESTR pwszURL, + [in] DBBINDURLFLAG dwBindURLFlags, + [in] REFGUID rguid, + [in] REFIID riid, + [in] IAuthenticate *pAuthenticate, + [in] IUnknown *pSessionUnkOuter, + [in, unique] IID *piid, + [in, out, unique, iid_is(piid)] IUnknown **ppSession, + [in, out, unique] DBBINDURLSTATUS *pdwBindStatus, + [out, iid_is(riid)] IUnknown **ppUnk); +} diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/bits.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/bits.idl new file mode 100644 index 00000000..b35b0b93 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/bits.idl @@ -0,0 +1,426 @@ +/* + * Background Intelligent Transfer Service (BITS) interface + * + * Copyright 2007 Google (Roy Shea) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + * + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef DO_NO_IMPORTS +import "unknwn.idl"; +#endif + +cpp_quote("#include \"bitsmsg.h\"") +cpp_quote("#define BG_SIZE_UNKNOWN (UINT64)(-1)") +cpp_quote("#define BG_NOTIFY_JOB_TRANSFERRED 0x0001") +cpp_quote("#define BG_NOTIFY_JOB_ERROR 0x0002") +cpp_quote("#define BG_NOTIFY_DISABLE 0x0004") +cpp_quote("#define BG_NOTIFY_JOB_MODIFICATION 0x0008") + +cpp_quote("#ifdef WINE_NO_UNICODE_MACROS") +cpp_quote("#undef EnumJobs") +cpp_quote("#undef GetJob") +cpp_quote("#endif") + +#define BG_ENUM_SIZEIS(maxcount) maxcount +#define BG_ENUM_LENGTHIS(maxcount,lengthptr) lengthptr ? *lengthptr : maxcount + +[ + uuid(01b7bd23-fb88-4a77-8490-5891d3e4653a), + odl +] +interface IBackgroundCopyFile : IUnknown +{ + typedef struct _BG_FILE_PROGRESS { + UINT64 BytesTotal; + UINT64 BytesTransferred; + BOOL Completed; + } BG_FILE_PROGRESS; + + HRESULT GetRemoteName( + [out] LPWSTR *pVal + ); + + HRESULT GetLocalName( + [out] LPWSTR *pVal + ); + + HRESULT GetProgress( + [out] BG_FILE_PROGRESS *pVal + ); +} + + +[ + uuid(ca51e165-c365-424c-8d41-24aaa4ff3c40), + odl +] +interface IEnumBackgroundCopyFiles: IUnknown +{ + HRESULT Next( + [in] ULONG celt, + [out,size_is(BG_ENUM_SIZEIS(celt)),length_is(BG_ENUM_LENGTHIS(celt,pceltFetched))] IBackgroundCopyFile **rgelt, + [in,out,unique] ULONG *pceltFetched + ); + + HRESULT Skip( + [in] ULONG celt + ); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumBackgroundCopyFiles **ppenum + ); + + HRESULT GetCount( + [out] ULONG *puCount + ); +} + + +[ + uuid(19c613a0-fcb8-4f28-81ae-897c3d078f81), + odl +] +interface IBackgroundCopyError : IUnknown +{ + typedef enum { + BG_ERROR_CONTEXT_NONE = 0, + BG_ERROR_CONTEXT_UNKNOWN = 1, + BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER = 2, + BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION =3, + BG_ERROR_CONTEXT_LOCAL_FILE = 4, + BG_ERROR_CONTEXT_REMOTE_FILE = 5, + BG_ERROR_CONTEXT_GENERAL_TRANSPORT = 6, + BG_ERROR_CONTEXT_REMOTE_APPLICATION =7, + } BG_ERROR_CONTEXT; + + HRESULT GetError( + [out,ref] BG_ERROR_CONTEXT *pContext, + [out,ref] HRESULT *pCode + ); + + HRESULT GetFile( + [out] IBackgroundCopyFile **pVal + ); + + HRESULT GetErrorDescription( + [in] DWORD LanguageId, + [out,ref] LPWSTR *pErrorDescription + ); + + HRESULT GetErrorContextDescription( + [in] DWORD LanguageId, + [out,ref] LPWSTR *pContextDescription + ); + + HRESULT GetProtocol( + [out,ref] LPWSTR *pProtocol + ); +} + + + +[ + uuid(37668d37-507e-4160-9316-26306d150b12), + odl +] +interface IBackgroundCopyJob : IUnknown +{ + typedef struct _BG_FILE_INFO { + LPWSTR RemoteName; + LPWSTR LocalName; + } BG_FILE_INFO; + + typedef struct _BG_JOB_PROGRESS { + UINT64 BytesTotal; + UINT64 BytesTransferred; + ULONG FilesTotal; + ULONG FilesTransferred; + } BG_JOB_PROGRESS; + + typedef struct _BG_JOB_TIMES { + FILETIME CreationTime; + FILETIME ModificationTime; + FILETIME TransferCompletionTime; + } BG_JOB_TIMES; + + typedef enum { + BG_JOB_PRIORITY_FOREGROUND = 0, + BG_JOB_PRIORITY_HIGH = 1, + BG_JOB_PRIORITY_NORMAL = 2, + BG_JOB_PRIORITY_LOW = 3 + } BG_JOB_PRIORITY; + + typedef enum { + BG_JOB_STATE_QUEUED = 0, + BG_JOB_STATE_CONNECTING = 1, + BG_JOB_STATE_TRANSFERRING = 2, + BG_JOB_STATE_SUSPENDED = 3, + BG_JOB_STATE_ERROR = 4, + BG_JOB_STATE_TRANSIENT_ERROR = 5, + BG_JOB_STATE_TRANSFERRED = 6, + BG_JOB_STATE_ACKNOWLEDGED = 7, + BG_JOB_STATE_CANCELLED = 8 + } BG_JOB_STATE; + + typedef enum { + BG_JOB_TYPE_DOWNLOAD = 0, + BG_JOB_TYPE_UPLOAD = 1, + BG_JOB_TYPE_UPLOAD_REPLY = 2 + } BG_JOB_TYPE; + + typedef enum { + BG_JOB_PROXY_USAGE_PRECONFIG, + BG_JOB_PROXY_USAGE_NO_PROXY, + BG_JOB_PROXY_USAGE_OVERRIDE, + BG_JOB_PROXY_USAGE_AUTODETECT + } BG_JOB_PROXY_USAGE; + + + HRESULT AddFileSet( + [in] ULONG cFileCount, + [in,size_is(cFileCount)] BG_FILE_INFO *pFileSet + ); + + HRESULT AddFile( + [in] LPCWSTR RemoteUrl, + [in] LPCWSTR LocalName + ); + + HRESULT EnumFiles( + [out] IEnumBackgroundCopyFiles **pEnum + ); + + HRESULT Suspend(); + + HRESULT Resume(); + + HRESULT Cancel(); + + HRESULT Complete(); + + HRESULT GetId( + [out] GUID *pVal + ); + + HRESULT GetType( + [out] BG_JOB_TYPE *pVal + ); + + HRESULT GetProgress( + [out] BG_JOB_PROGRESS *pVal + ); + + HRESULT GetTimes( + [out] BG_JOB_TIMES *pVal + ); + + HRESULT GetState( + [out] BG_JOB_STATE *pVal + ); + + HRESULT GetError( + [out] IBackgroundCopyError **ppError + ); + + HRESULT GetOwner( + [out] LPWSTR *pVal + ); + + HRESULT SetDisplayName( + [in] LPCWSTR Val + ); + + HRESULT GetDisplayName( + [out] LPWSTR *pVal + ); + + HRESULT SetDescription( + [in] LPCWSTR Val + ); + + HRESULT GetDescription( + [out] LPWSTR *pVal + ); + + HRESULT SetPriority( + [in] BG_JOB_PRIORITY Val + ); + + HRESULT GetPriority( + [out] BG_JOB_PRIORITY *pVal + ); + + HRESULT SetNotifyFlags( + [in] ULONG Val + ); + + HRESULT GetNotifyFlags( + [out] ULONG *pVal + ); + + HRESULT SetNotifyInterface( + [in] IUnknown *Val + ); + + HRESULT GetNotifyInterface( + [out] IUnknown ** pVal + ); + + HRESULT SetMinimumRetryDelay( + [in] ULONG Seconds + ); + + HRESULT GetMinimumRetryDelay( + [out] ULONG *Seconds + ); + + HRESULT SetNoProgressTimeout( + [in] ULONG Seconds + ); + + HRESULT GetNoProgressTimeout( + [out] ULONG *Seconds + ); + + HRESULT GetErrorCount( + [out] ULONG *Errors + ); + + HRESULT SetProxySettings( + [in] BG_JOB_PROXY_USAGE ProxyUsage, + [in,string,unique] const WCHAR *ProxyList, + [in,string,unique] const WCHAR *ProxyBypassList + ); + + HRESULT GetProxySettings( + [out] BG_JOB_PROXY_USAGE *pProxyUsage, + [out] LPWSTR *pProxyList, + [out] LPWSTR *pProxyBypassList + ); + + HRESULT TakeOwnership(); +} + +[ + uuid(1af4f612-3b71-466f-8f58-7b6f73ac57ad), + odl +] +interface IEnumBackgroundCopyJobs : IUnknown +{ + HRESULT Next( + [in] ULONG celt, + [out,size_is(BG_ENUM_SIZEIS(celt)),length_is(BG_ENUM_LENGTHIS(celt,pceltFetched))] IBackgroundCopyJob **rgelt, + [in,out,unique] ULONG *pceltFetched + ); + + HRESULT Skip( + [in] ULONG celt + ); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumBackgroundCopyJobs **ppenum + ); + + HRESULT GetCount( + [out] ULONG *puCount + ); +} + + +[ + uuid(97ea99c7-0186-4ad4-8df9-c5b4e0ed6b22), + odl +] +interface IBackgroundCopyCallback : IUnknown +{ + HRESULT JobTransferred( + [in] IBackgroundCopyJob *pJob + ); + + HRESULT JobError( + [in] IBackgroundCopyJob *pJob, + [in] IBackgroundCopyError *pError + ); + + HRESULT JobModification( + [in] IBackgroundCopyJob *pJob, + [in] DWORD dwReserved + ); +} + +[ + uuid(5ce34c0d-0dc9-4c1f-897c-daa1b78cee7c), + odl +] +interface IBackgroundCopyManager : IUnknown +{ + cpp_quote("#define BG_JOB_ENUM_ALL_USERS 0x0001") + + HRESULT CreateJob( + [in] LPCWSTR DisplayName, + [in] BG_JOB_TYPE Type, + [out] GUID *pJobId, + [out] IBackgroundCopyJob **ppJob + ); + + HRESULT GetJob( + [in] REFGUID jobID, + [out] IBackgroundCopyJob **ppJob + ); + + HRESULT EnumJobs( + [in] DWORD dwFlags, + [out] IEnumBackgroundCopyJobs **ppEnum + ); + HRESULT GetErrorDescription( + [in] HRESULT hResult, + [in] DWORD LanguageId, + [out] LPWSTR *pErrorDescription); +} + + +[ + uuid(1deeb74f-7915-4560-b558-918c83f176a6), + version(1.0) +] +library BackgroundCopyManager +{ + [ + uuid(4991d34b-80a1-4291-83b6-3328366b9097), + ] + coclass BackgroundCopyManager + { + [default] interface IBackgroundCopyManager; + }; + + interface IBackgroundCopyCallback; +} + +cpp_quote("#include \"bits1_5.h\"") diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/bits1_5.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/bits1_5.idl new file mode 100644 index 00000000..fc25670f --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/bits1_5.idl @@ -0,0 +1,97 @@ +/* + * Background Intelligent Transfer Service (BITS) 1.5 interface + * + * Copyright 2008 Google (Dan Hipschman) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + * + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef DO_NO_IMPORTS +import "bits.idl"; +#endif + +[ + uuid(54b50739-686f-45eb-9dff-d6a9a0faa9af), + odl +] +interface IBackgroundCopyJob2 : IBackgroundCopyJob +{ + HRESULT SetNotifyCmdLine([unique] LPCWSTR prog, [unique] LPCWSTR params); + HRESULT GetNotifyCmdLine([out] LPWSTR *prog, [out] LPWSTR *params); + + typedef struct _BG_JOB_REPLY_PROGRESS + { + UINT64 BytesTotal; + UINT64 BytesTransferred; + } BG_JOB_REPLY_PROGRESS; + + HRESULT GetReplyProgress([in, out] BG_JOB_REPLY_PROGRESS *progress); + HRESULT GetReplyData([out, size_is( , (unsigned long) *pLength)] byte **pBuffer, + [in, out, unique] UINT64 *pLength); + HRESULT SetReplyFileName([unique] LPCWSTR filename); + HRESULT GetReplyFileName([out] LPWSTR *pFilename); + + typedef enum + { + BG_AUTH_TARGET_SERVER = 1, + BG_AUTH_TARGET_PROXY + } BG_AUTH_TARGET; + + typedef enum + { + BG_AUTH_SCHEME_BASIC = 1, + BG_AUTH_SCHEME_DIGEST, + BG_AUTH_SCHEME_NTLM, + BG_AUTH_SCHEME_NEGOTIATE, + BG_AUTH_SCHEME_PASSPORT + } BG_AUTH_SCHEME; + + typedef struct + { + LPWSTR UserName; + LPWSTR Password; + } BG_BASIC_CREDENTIALS; + typedef BG_BASIC_CREDENTIALS *PBG_BASIC_CREDENTIALS; + + typedef [switch_type(BG_AUTH_SCHEME)] union + { + [case(BG_AUTH_SCHEME_BASIC, BG_AUTH_SCHEME_DIGEST, BG_AUTH_SCHEME_NTLM, + BG_AUTH_SCHEME_NEGOTIATE, BG_AUTH_SCHEME_PASSPORT)] + BG_BASIC_CREDENTIALS Basic; + [default] + ; + } BG_AUTH_CREDENTIALS_UNION; + + typedef struct + { + BG_AUTH_TARGET Target; + BG_AUTH_SCHEME Scheme; + [switch_is(Scheme)] BG_AUTH_CREDENTIALS_UNION Credentials; + } BG_AUTH_CREDENTIALS; + typedef BG_AUTH_CREDENTIALS *PBG_AUTH_CREDENTIALS; + + HRESULT SetCredentials(BG_AUTH_CREDENTIALS *cred); + HRESULT RemoveCredentials(BG_AUTH_TARGET target, BG_AUTH_SCHEME scheme); +} diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/bitsmsg.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/bitsmsg.h new file mode 100644 index 00000000..e7229ae8 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/bitsmsg.h @@ -0,0 +1,90 @@ +/* + * Standard return values that may be generated by BITS + * + * Copyright 2007 Google (Roy Shea) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_BITMSG_H__ +#define __WINE_BITMSG_H__ + +#define BG_S_PARTIAL_COMPLETE 0x00200017 +#define BG_S_UNABLE_TO_DELETE_FILES 0x0020001A +#define BG_S_OVERRIDDEN_BY_POLICY 0x00200055 + +#define BG_E_HTTP_ERROR_400 0x80190190 +#define BG_E_HTTP_ERROR_401 0x80190191 +#define BG_E_HTTP_ERROR_404 0x80190194 +#define BG_E_HTTP_ERROR_407 0x80190197 +#define BG_E_HTTP_ERROR_414 0x8019019E +#define BG_E_HTTP_ERROR_501 0x801901F5 +#define BG_E_HTTP_ERROR_503 0x801901F7 +#define BG_E_HTTP_ERROR_504 0x801901F8 +#define BG_E_HTTP_ERROR_505 0x801901F9 + +#define BG_E_NOT_FOUND 0x80200001 +#define BG_E_INVALID_STATE 0x80200002 +#define BG_E_EMPTY 0x80200003 +#define BG_E_FILE_NOT_AVAILABLE 0x80200004 +#define BG_E_PROTOCOL_NOT_AVAILABLE 0x80200005 +#define BG_E_DESTINATION_LOCKED 0x8020000D +#define BG_E_VOLUME_CHANGED 0x8020000E +#define BG_E_ERROR_INFORMATION_UNAVAILABLE 0x8020000F +#define BG_E_NETWORK_DISCONNECTED 0x80200010 +#define BG_E_MISSING_FILE_SIZE 0x80200011 +#define BG_E_INSUFFICIENT_HTTP_SUPPORT 0x80200012 +#define BG_E_INSUFFICIENT_RANGE_SUPPORT 0x80200013 +#define BG_E_REMOTE_NOT_SUPPORTED 0x80200014 +#define BG_E_NEW_OWNER_DIFF_MAPPING 0x80200015 +#define BG_E_NEW_OWNER_NO_FILE_ACCESS 0x80200016 +#define BG_E_PROXY_LIST_TOO_LARGE 0x80200018 +#define BG_E_PROXY_BYPASS_LIST_TOO_LARGE 0x80200019 +#define BG_E_TOO_MANY_FILES 0x8020001C +#define BG_E_LOCAL_FILE_CHANGED 0x8020001D +#define BG_E_TOO_LARGE 0x80200020 +#define BG_E_STRING_TOO_LONG 0x80200021 +#define BG_E_CLIENT_SERVER_PROTOCOL_MISMATCH 0x80200022 +#define BG_E_SERVER_EXECUTE_ENABLED 0x80200023 +#define BG_E_USERNAME_TOO_LARGE 0x80200025 +#define BG_E_PASSWORD_TOO_LARGE 0x80200026 +#define BG_E_INVALID_AUTH_TARGET 0x80200027 +#define BG_E_INVALID_AUTH_SCHEME 0x80200028 +#define BG_E_INVALID_RANGE 0x8020002B +#define BG_E_OVERLAPPING_RANGES 0x8020002C +#define BG_E_BLOCKED_BY_POLICY 0x8020003E +#define BG_E_INVALID_PROXY_INFO 0x8020003F +#define BG_E_INVALID_CREDENTIALS 0x80200040 +#define BG_E_RECORD_DELETED 0x80200042 +#define BG_E_UPNP_ERROR 0x80200045 +#define BG_E_PEERCACHING_DISABLED 0x80200047 +#define BG_E_BUSYCACHERECORD 0x80200048 +#define BG_E_TOO_MANY_JOBS_PER_USER 0x80200049 +#define BG_E_TOO_MANY_JOBS_PER_MACHINE 0x80200050 +#define BG_E_TOO_MANY_FILES_IN_JOB 0x80200051 +#define BG_E_TOO_MANY_RANGES_IN_FILE 0x80200052 +#define BG_E_VALIDATION_FAILED 0x80200053 +#define BG_E_MAXDOWNLOAD_TIMEOUT 0x80200054 + +#endif /* #ifndef __WINE_BITMSG_H__ */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/cderr.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/cderr.h new file mode 100644 index 00000000..de1e71e6 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/cderr.h @@ -0,0 +1,80 @@ +/* + * Copyright (C) 1999 Bertho Stultiens + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_CDERR_H +#define __WINE_CDERR_H + +/* General error codes */ +#define CDERR_DIALOGFAILURE 0xFFFF +#define CDERR_GENERALCODES 0x0000 +#define CDERR_STRUCTSIZE 0x0001 +#define CDERR_INITIALIZATION 0x0002 +#define CDERR_NOTEMPLATE 0x0003 +#define CDERR_NOHINSTANCE 0x0004 +#define CDERR_LOADSTRFAILURE 0x0005 +#define CDERR_FINDRESFAILURE 0x0006 +#define CDERR_LOADRESFAILURE 0x0007 +#define CDERR_LOCKRESFAILURE 0x0008 +#define CDERR_MEMALLOCFAILURE 0x0009 +#define CDERR_MEMLOCKFAILURE 0x000A +#define CDERR_NOHOOK 0x000B +#define CDERR_REGISTERMSGFAIL 0x000C + +/* Printer dialog error codes */ +#define PDERR_PRINTERCODES 0x1000 +#define PDERR_SETUPFAILURE 0x1001 +#define PDERR_PARSEFAILURE 0x1002 +#define PDERR_RETDEFFAILURE 0x1003 +#define PDERR_LOADDRVFAILURE 0x1004 +#define PDERR_GETDEVMODEFAIL 0x1005 +#define PDERR_INITFAILURE 0x1006 +#define PDERR_NODEVICES 0x1007 +#define PDERR_NODEFAULTPRN 0x1008 +#define PDERR_DNDMMISMATCH 0x1009 +#define PDERR_CREATEICFAILURE 0x100A +#define PDERR_PRINTERNOTFOUND 0x100B +#define PDERR_DEFAULTDIFFERENT 0x100C + +/* Chose font error codes */ +#define CFERR_CHOOSEFONTCODES 0x2000 +#define CFERR_NOFONTS 0x2001 +#define CFERR_MAXLESSTHANMIN 0x2002 + +/* File{Open,Save} error codes */ +#define FNERR_FILENAMECODES 0x3000 +#define FNERR_SUBCLASSFAILURE 0x3001 +#define FNERR_INVALIDFILENAME 0x3002 +#define FNERR_BUFFERTOOSMALL 0x3003 + +/* Find/Replace error codes */ +#define FRERR_FINDREPLACECODES 0x4000 +#define FRERR_BUFFERLENGTHZERO 0x4001 + +/* Choose color error codes */ +#define CCERR_CHOOSECOLORCODES 0x5000 + +#endif diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/cfgmgr32.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/cfgmgr32.h new file mode 100644 index 00000000..a5ecc529 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/cfgmgr32.h @@ -0,0 +1,214 @@ +/* + * Copyright (C) 2005 Mike McCormack + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef _CFGMGR32_H_ +#define _CFGMGR32_H_ + +/* FIXME: #include */ + +#ifndef GUID_DEFINED +# include +#endif + +/* cfgmgr32 doesn't use the normal convention, it adds an underscore before A/W */ +#ifdef WINE_NO_UNICODE_MACROS +# define DECL_WINELIB_CFGMGR32_TYPE_AW(type) /* nothing */ +#else +# define DECL_WINELIB_CFGMGR32_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type; +#endif + +#define CMAPI +typedef DWORD CONFIGRET; + +#define CR_SUCCESS 0x00 +#define CR_DEFAULT 0x01 +#define CR_OUT_OF_MEMORY 0x02 +#define CR_INVALID_POINTER 0x03 +#define CR_INVALID_FLAG 0x04 +#define CR_INVALID_DEVNODE 0x05 +#define CR_INVALID_DEVINST CR_INVALID_DEVNODE +#define CR_INVALID_RES_DES 0x06 +#define CR_INVALID_LOG_CONF 0x07 +#define CR_INVALID_ARBITRATOR 0x08 +#define CR_INVALID_NODELIST 0x09 +#define CR_DEVNODE_HAS_REQS 0x0a +#define CR_DEVINST_HAS_REQS CR_DEVNODE_HAS_REQS +#define CR_INVALID_RESOURCEID 0x0b +#define CR_DLVXD_NOT_FOUND 0x0c +#define CR_NO_SUCH_DEVNODE 0x0d +#define CR_NO_SUCH_DEVINST CR_NO_SUCH_DEVNODE +#define CR_NO_MORE_LOG_CONF 0x0e +#define CR_NO_MORE_RES_DES 0x0f +#define CR_ALREADY_SUCH_DEVNODE 0x10 +#define CR_ALREADY_SUCH_DEVINST CR_ALREADY_SUCH_DEVNODE +#define CR_INVALID_RANGE_LIST 0x11 +#define CR_INVALID_RANGE 0x12 +#define CR_FAILURE 0x13 +#define CR_NO_SUCH_LOGICAL_DEV 0x14 +#define CR_CREATE_BLOCKED 0x15 +#define CR_NOT_SYSTEM_VM 0x16 +#define CR_REMOVE_VETOED 0x17 +#define CR_APM_VETOED 0x18 +#define CR_INVALID_LOAD_TYPE 0x19 +#define CR_BUFFER_SMALL 0x1a +#define CR_NO_ARBITRATOR 0x1b +#define CR_NO_REGISTRY_HANDLE 0x1c +#define CR_REGISTRY_ERROR 0x1d +#define CR_INVALID_DEVICE_ID 0x1e +#define CR_INVALID_DATA 0x1f +#define CR_INVALID_API 0x20 +#define CR_DEVLOADER_NOT_READY 0x21 +#define CR_NEED_RESTART 0x22 +#define CR_NO_MORE_HW_PROFILES 0x23 +#define CR_DEVICE_NOT_THERE 0x24 +#define CR_NO_SUCH_VALUE 0x25 +#define CR_WRONG_TYPE 0x26 +#define CR_INVALID_PRIORITY 0x27 +#define CR_NOT_DISABLEABLE 0x28 +#define CR_FREE_RESOURCES 0x29 +#define CR_QUERY_VETOED 0x2a +#define CR_CANT_SHARE_IRQ 0x2b +#define CR_NO_DEPENDENT 0x2c +#define CR_SAME_RESOURCES 0x2d +#define CR_NO_SUCH_REGISTRY_KEY 0x2e +#define CR_INVALID_MACHINENAME 0x2f +#define CR_REMOTE_COMM_FAILURE 0x30 +#define CR_MACHINE_UNAVAILABLE 0x31 +#define CR_NO_CM_SERVICES 0x32 +#define CR_ACCESS_DENIED 0x33 +#define CR_CALL_NOT_IMPLEMENTED 0x34 +#define CR_INVALID_PROPERTY 0x35 +#define CR_DEVICE_INTERFACE_ACTIVE 0x36 +#define CR_NO_SUCH_DEVICE_INTERFACE 0x37 +#define CR_INVALID_REFERENCE_STRING 0x38 +#define CR_INVALID_CONFLICT_LIST 0x39 +#define CR_INVALID_INDEX 0x3a +#define CR_INVALID_STRUCTURE_SIZE 0x3b +#define NUM_CR_RESULTS 0x3c + +#define MAX_DEVICE_ID_LEN 200 +#define MAX_DEVNODE_ID_LEN MAX_DEVICE_ID_LEN + +#define MAX_CLASS_NAME_LEN 32 +#define MAX_GUID_STRING_LEN 39 +#define MAX_PROFILE_LEN 80 + +#define CM_DRP_DEVICEDESC 0x01 +#define CM_DRP_HARDWAREID 0x02 +#define CM_DRP_COMPATIBLEIDS 0x03 +#define CM_DRP_UNUSED0 0x04 +#define CM_DRP_SERVICE 0x05 +#define CM_DRP_UNUSED1 0x06 +#define CM_DRP_UNUSED2 0x07 +#define CM_DRP_CLASS 0x08 +#define CM_DRP_CLASSGUID 0x09 +#define CM_DRP_DRIVER 0x0A +#define CM_DRP_CONFIGFLAGS 0x0B +#define CM_DRP_MFG 0x0C +#define CM_DRP_FRIENDLYNAME 0x0D +#define CM_DRP_LOCATION_INFORMATION 0x0E +#define CM_DRP_PHYSICAL_DEVICE_OBJECT_NAME 0x0F +#define CM_DRP_CAPABILITIES 0x10 +#define CM_DRP_UI_NUMBER 0x11 +#define CM_DRP_UPPERFILTERS 0x12 +#define CM_DRP_LOWERFILTERS 0x13 +#define CM_DRP_BUSTYPEGUID 0x14 +#define CM_DRP_LEGACYBUSTYPE 0x15 +#define CM_DRP_BUSNUMBER 0x16 +#define CM_DRP_ENUMERATOR_NAME 0x17 +#define CM_DRP_SECURITY 0x18 +#define CM_DRP_SECURITY_SDS 0x19 +#define CM_DRP_DEVTYPE 0x1A +#define CM_DRP_EXCLUSIVE 0x1B +#define CM_DRP_CHARACTERISTICS 0x1C +#define CM_DRP_ADDRESS 0x1D +#define CM_DRP_UI_NUMBER_DESC_FORMAT 0x1E +#define CM_DRP_DEVICE_POWER_DATA 0x1F +#define CM_DRP_REMOVAL_POLICY 0x20 +#define CM_DRP_REMOVAL_POLICY_HW_DEFAULT 0x21 +#define CM_DRP_REMOVAL_POLICY_OVERRIDE 0x22 +#define CM_DRP_INSTALL_STATE 0x23 +#define CM_DRP_LOCATION_PATHS 0x24 +#define CM_DRP_BASE_CONTAINERID 0x25 +#define CM_DRP_MIN 0x01 +#define CM_DRP_MAX 0x25 + +#define CM_CRP_UPPERFILTERS CM_DRP_UPPERFILTERS +#define CM_CRP_LOWERFILTERS CM_DRP_LOWERFILTERS +#define CM_CRP_SECURITY CM_DRP_SECURITY +#define CM_CRP_SECURITY_SDS CM_DRP_SECURITY_SDS +#define CM_CRP_DEVTYPE CM_DRP_DEVTYPE +#define CM_CRP_EXCLUSIVE CM_DRP_EXCLUSIVE +#define CM_CRP_CHARACTERISTICS CM_DRP_CHARACTERISTICS +#define CM_CRP_MIN CM_DRP_MIN +#define CM_CRP_MAX CM_DRP_MAX + +typedef DWORD DEVINST, *PDEVINST; +typedef DWORD DEVNODE, *PDEVNODE; +typedef HANDLE HMACHINE, *PHMACHINE; +typedef CHAR *DEVNODEID_A, *DEVINSTID_A; +typedef WCHAR *DEVNODEID_W, *DEVINSTID_W; + +DECL_WINELIB_CFGMGR32_TYPE_AW(DEVNODEID) +DECL_WINELIB_CFGMGR32_TYPE_AW(DEVINSTID) + +#ifdef __cplusplus +extern "C" { +#endif + +CMAPI CONFIGRET WINAPI CM_Connect_MachineA(PCSTR,PHMACHINE); +CMAPI CONFIGRET WINAPI CM_Connect_MachineW(PCWSTR,PHMACHINE); +#define CM_Connect_Machine WINELIB_NAME_AW(CM_Connect_Machine) +CMAPI CONFIGRET WINAPI CM_Create_DevNodeA(PDEVINST,DEVINSTID_A,DEVINST,ULONG); +CMAPI CONFIGRET WINAPI CM_Create_DevNodeW(PDEVINST,DEVINSTID_W,DEVINST,ULONG); +#define CM_Create_DevNode WINELIB_NAME_AW(CM_Create_DevNode) +CMAPI CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE); +CMAPI CONFIGRET WINAPI CM_Get_Device_IDA(DEVINST,PSTR,ULONG,ULONG); +CMAPI CONFIGRET WINAPI CM_Get_Device_IDW(DEVINST,PWSTR,ULONG,ULONG); +#define CM_Get_Device_ID WINELIB_NAME_AW(CM_Get_Device_ID) +CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExA(DEVINST,PSTR,ULONG,ULONG,HMACHINE); +CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExW(DEVINST,PWSTR,ULONG,ULONG,HMACHINE); +#define CM_Get_Device_ID_Ex WINELIB_NAME_AW(CM_Get_Device_ID_Ex) +CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListA(PCSTR,PCHAR,ULONG,ULONG); +CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListW(PCWSTR,PWCHAR,ULONG,ULONG); +#define CM_Get_Device_ID_List WINELIB_NAME_AW(CM_Get_Device_ID_List) +CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExA(PCSTR,PCHAR,ULONG,ULONG,HMACHINE); +CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExW(PCWSTR,PWCHAR,ULONG,ULONG,HMACHINE); +#define CM_Get_Device_ID_List_Ex WINELIB_NAME_AW(CM_Get_Device_ID_List_Ex) +CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size(PULONG,DEVINST,ULONG); +CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex(PULONG,DEVINST,ULONG,HMACHINE); +CMAPI CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST,DEVINSTID_A,ULONG); +CMAPI CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST,DEVINSTID_W,ULONG); +#define CM_Locate_DevNode WINELIB_NAME_AW(CM_Locate_DevNode) + +#ifdef __cplusplus +} +#endif + +#undef DECL_WINELIB_CFGMGR32_TYPE_AW + +#endif /* _CFGMGR32_H_ */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/cguid.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/cguid.h new file mode 100644 index 00000000..30902bf3 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/cguid.h @@ -0,0 +1,118 @@ +/* + * Copyright (C) 2000 Peter Hunnisett + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __CGUID_H__ +#define __CGUID_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +extern const IID GUID_NULL; +extern const IID IID_IRpcChannel; +extern const IID IID_IRpcStub; +extern const IID IID_IStubManager; +extern const IID IID_IRpcProxy; +extern const IID IID_IProxyManager; +extern const IID IID_IPSFactory; +extern const IID IID_IInternalMoniker; +extern const IID IID_IDfReserved1; +extern const IID IID_IDfReserved2; +extern const IID IID_IDfReserved3; +extern const CLSID CLSID_StdMarshal; +extern const CLSID CLSID_AggStdMarshal; +extern const CLSID CLSID_StdAsyncActManager; +extern const IID IID_IStub; +extern const IID IID_IProxy; +extern const IID IID_IEnumGeneric; +extern const IID IID_IEnumHolder; +extern const IID IID_IEnumCallback; +extern const IID IID_IOleManager; +extern const IID IID_IOlePresObj; +extern const IID IID_IDebug; +extern const IID IID_IDebugStream; +extern const CLSID CLSID_PSGenObject; +extern const CLSID CLSID_PSClientSite; +extern const CLSID CLSID_PSClassObject; +extern const CLSID CLSID_PSInPlaceActive; +extern const CLSID CLSID_PSInPlaceFrame; +extern const CLSID CLSID_PSDragDrop; +extern const CLSID CLSID_PSBindCtx; +extern const CLSID CLSID_PSEnumerators; +extern const CLSID CLSID_StaticMetafile; +extern const CLSID CLSID_StaticDib; +extern const CLSID CID_CDfsVolume; +extern const CLSID CLSID_DCOMAccessControl; +extern const CLSID CLSID_StdGlobalInterfaceTable; +extern const CLSID CLSID_ComBinding; +extern const CLSID CLSID_StdEvent; +extern const CLSID CLSID_ManualResetEvent; +extern const CLSID CLSID_SynchronizeContainer; +extern const CLSID CLSID_CCDFormKrnl; +extern const CLSID CLSID_CCDPropertyPage; +extern const CLSID CLSID_CCDFormDialog; +extern const CLSID CLSID_CCDCommandButton; +extern const CLSID CLSID_CCDComboBox; +extern const CLSID CLSID_CCDTextBox; +extern const CLSID CLSID_CCDCheckBox; +extern const CLSID CLSID_CCDLabel; +extern const CLSID CLSID_CCDOptionButton; +extern const CLSID CLSID_CCDListBox; +extern const CLSID CLSID_CCDScrollBar; +extern const CLSID CLSID_CCDGroupBox; +extern const CLSID CLSID_CCDGeneralPropertyPage; +extern const CLSID CLSID_CCDGenericPropertyPage; +extern const CLSID CLSID_CCDFontPropertyPage; +extern const CLSID CLSID_CCDColorPropertyPage; +extern const CLSID CLSID_CCDLabelPropertyPage; +extern const CLSID CLSID_CCDCheckBoxPropertyPage; +extern const CLSID CLSID_CCDTextBoxPropertyPage; +extern const CLSID CLSID_CCDOptionButtonPropertyPage; +extern const CLSID CLSID_CCDListBoxPropertyPage; +extern const CLSID CLSID_CCDCommandButtonPropertyPage; +extern const CLSID CLSID_CCDComboBoxPropertyPage; +extern const CLSID CLSID_CCDScrollBarPropertyPage; +extern const CLSID CLSID_CCDGroupBoxPropertyPage; +extern const CLSID CLSID_CCDXObjectPropertyPage; +extern const CLSID CLSID_CStdPropertyFrame; +extern const CLSID CLSID_CFormPropertyPage; +extern const CLSID CLSID_CGridPropertyPage; +extern const CLSID CLSID_CWSJArticlePage; +extern const CLSID CLSID_CSystemPage; +extern const CLSID CLSID_IdentityUnmarshal; +extern const CLSID CLSID_InProcFreeMarshaler; +extern const CLSID CLSID_Picture_Metafile; +extern const CLSID CLSID_Picture_EnhMetafile; +extern const CLSID CLSID_Picture_Dib; +extern const GUID GUID_TRISTATE; + + +#ifdef __cplusplus +} +#endif + +#endif /* __CGUID_H__ */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/chprst.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/chprst.idl new file mode 100644 index 00000000..b0654646 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/chprst.idl @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2013 Huw Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +[ + object, + uuid(0c733a93-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface IChapteredRowset : IUnknown +{ + [local] + HRESULT AddRefChapter([in] HCHAPTER chapter, + [out] DBREFCOUNT *refcount); + + [call_as(AddRefChapter)] + HRESULT RemoteAddRefChapter([in] HCHAPTER chapter, + [out] DBREFCOUNT *refcount, + [out] IErrorInfo **errorinfo); + + [local] + HRESULT ReleaseChapter([in] HCHAPTER chapter, + [out] DBREFCOUNT *refcount); + + [call_as(ReleaseChapter)] + HRESULT RemoteReleaseChapter([in] HCHAPTER chapter, + [out] DBREFCOUNT *refcount, + [out] IErrorInfo **errorinfo); +} diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/cierror.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/cierror.h new file mode 100644 index 00000000..b0121f27 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/cierror.h @@ -0,0 +1,53 @@ +/* + * Copyright 2006 Mike McCormack + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_CIERROR_H__ +#define __WINE_CIERROR_H__ + +#define CI_E_ALREADY_INITIALIZED 0x8004180a +#define CI_E_NOT_INITIALIZED 0x8004180b +#define CI_E_BUFFERTOOSMALL 0x8004180c +#define CI_E_PROPERTY_NOT_CACHED 0x8004180d +#define CI_E_INVALID_STATE 0x8004180f +#define CI_E_FILTERING_DISABLED 0x80041810 +#define CI_E_DISK_FULL 0x80041811 +#define CI_E_SHUTDOWN 0x80041812 +#define CI_E_WORKID_NOTVALID 0x80041813 +#define CI_E_NOT_FOUND 0x80041815 +#define CI_E_USE_DEFAULT_PID 0x80041816 +#define CI_E_DUPLICATE_NOTIFICATION 0x80041817 +#define CI_E_UPDATES_DISABLED 0x80041818 +#define CI_E_INVALID_FLAGS_COMBINATION 0x80041819 +#define CI_E_OUTOFSEQ_INCREMENT_DATA 0x8004181a +#define CI_E_SHARING_VIOLATION 0x8004181b +#define CI_E_LOGON_FAILURE 0x8004181c +#define CI_E_NO_CATALOG 0x8004181d +#define CI_E_STRANGE_PAGEORSECTOR_SIZE 0x8004181e +#define CI_E_TIMEOUT 0x8004181f +#define CI_E_NOT_RUNNING 0x80041820 + +#endif diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/clusapi.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/clusapi.h new file mode 100644 index 00000000..1c8390e8 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/clusapi.h @@ -0,0 +1,66 @@ +/* + * Copyright 2006 James Hawkins + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_CLUSAPI_H +#define __WINE_CLUSAPI_H + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct _HCLUSTER *HCLUSTER; +typedef struct _HCLUSENUM *HCLUSENUM; + + +typedef struct _CLUSTERVERSIONINFO +{ + DWORD dwVersionInfoSize; + WORD MajorVersion; + WORD MinorVersion; + WORD BuildNumber; + WCHAR szVendorId[64]; + WCHAR szCSDVersion[64]; + DWORD dwClusterHighestVersion; + DWORD dwClusterLowestVersion; + DWORD dwFlags; + DWORD dwReserved; +} CLUSTERVERSIONINFO, *LPCLUSTERVERSIONINFO; + +BOOL WINAPI CloseCluster(HCLUSTER hCluster); +DWORD WINAPI GetClusterInformation(HCLUSTER hCluster, LPWSTR lpszClusterName, + LPDWORD lpcchClusterName, LPCLUSTERVERSIONINFO lpClusterInfo); +DWORD WINAPI GetNodeClusterState(LPCWSTR lpszNodeName, LPDWORD pdwClusterState); +HCLUSTER WINAPI OpenCluster(LPCWSTR lpszClusterName); +HCLUSENUM WINAPI ClusterOpenEnum(HCLUSTER hCluster, DWORD dwType); +DWORD WINAPI ClusterEnum(HCLUSENUM hEnum, DWORD dwIndex, LPDWORD lpdwType, LPWSTR lpszName, LPDWORD lpcchName); +DWORD WINAPI ClusterCloseEnum(HCLUSENUM hEnum); + +#ifdef __cplusplus +} +#endif + +#endif /* __WINE_CLUSAPI_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/cmdbas.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/cmdbas.idl new file mode 100644 index 00000000..aba98bc1 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/cmdbas.idl @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2009 Huw Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +[ + object, + uuid(0c733a63-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface ICommand : IUnknown +{ + [local] + HRESULT Cancel(); + + [call_as(Cancel)] + HRESULT RemoteCancel([out] IErrorInfo **ppErrorInfoRem); + + [local] + HRESULT Execute([in, annotation("__in_opt")] IUnknown *pUnkOuter, + [in] REFIID riid, + [in, out, annotation("__inout_opt")] DBPARAMS *pParams, + [out, annotation("__out_opt")] DBROWCOUNT *pcRowsAffected, + [out, iid_is(riid), annotation("__deref_opt_out")] IUnknown **ppRowset); + + [call_as(Execute)] + HRESULT RemoteExecute([in] IUnknown *pUnkOuter, + [in] REFIID riid, + [in] HACCESSOR hAccessor, + [in] DB_UPARAMS cParamSets, + [in, unique] GUID *pGuid, + [in] ULONG ulGuidOffset, + [in, unique] RMTPACK *pInputParams, + [in, out, unique] RMTPACK *pOutputParams, + [in] DBCOUNTITEM cBindings, + [in, unique, size_is((ULONG)cBindings)] DBBINDING *rgBindings, + [in, out, unique, size_is((ULONG)cBindings)] DBSTATUS *rgStatus, + [in, out, unique] DBROWCOUNT *pcRowsAffected, + [in, out, unique, iid_is(riid)] IUnknown **ppRowset); + + [local] + HRESULT GetDBSession([in] REFIID riid, + [out, iid_is(riid), annotation("__deref_out_opt")] IUnknown **ppSession); + + [call_as(GetDBSession)] + HRESULT RemoteGetDBSession([in] REFIID riid, + [out, iid_is(riid)] IUnknown **ppSession, + [out] IErrorInfo **ppErrorInfoRem); +}; diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/cmdtxt.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/cmdtxt.idl new file mode 100644 index 00000000..37e3e994 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/cmdtxt.idl @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2009 Huw Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +[ + object, + uuid(0c733a27-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface ICommandText : ICommand +{ + [local] + HRESULT GetCommandText([in, out /*, annotation("__inout_opt")*/] GUID *pguidDialect, + [out /*, annotation("__deref_out")*/] LPOLESTR *ppwszCommand); + + [call_as(GetCommandText)] + HRESULT RemoteGetCommandText([in, out, unique] GUID *pguidDialect, + [out] LPOLESTR *ppwszCommand, + [out] IErrorInfo **ppErrorInfoRem); + + [local] + HRESULT SetCommandText([in] REFGUID rguidDialect, + [in, unique /*, annotation("__in_z_opt")*/] LPCOLESTR pwszCommand); + + [call_as(SetCommandText)] + HRESULT RemoteSetCommandText([in] REFGUID rguidDialect, + [in, unique] LPCOLESTR pwszCommand, + [out] IErrorInfo **ppErrorInfoRem); + +}; diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/comcat.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/comcat.idl new file mode 100644 index 00000000..23f20c35 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/comcat.idl @@ -0,0 +1,241 @@ +/* + * Copyright 2002 John K. Hohm + * Copyright 2003 Alexandre Julliard + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef DO_NO_IMPORTS +import "unknwn.idl"; +#endif + +/***************************************************************************** + * Types + */ +typedef GUID CATID; +typedef REFGUID REFCATID; +cpp_quote("#define CATID_NULL GUID_NULL") +cpp_quote("#define IsEqualCATID(rcatid1, rcatid2) IsEqualGUID(rcatid1, rcatid2)") + +/***************************************************************************** + * Aliases for EnumGUID + */ +#define IEnumCATID IEnumGUID +cpp_quote("#define IEnumCATID IEnumGUID") +cpp_quote("#define IID_IEnumCATID IID_IEnumGUID") +cpp_quote("#define LPENUMCATID LPENUMGUID") +#define IEnumCLSID IEnumGUID +cpp_quote("#define IEnumCLSID IEnumGUID") +cpp_quote("#define IID_IEnumCLSID IID_IEnumGUID") +cpp_quote("#define LPENUMCLSID LPENUMGUID") + + +/***************************************************************************** + * IEnumGUID + */ +[ + object, + uuid(0002e000-0000-0000-c000-000000000046), + pointer_default(unique) +] +interface IEnumGUID : IUnknown +{ + typedef [unique] IEnumGUID *LPENUMGUID; + + HRESULT Next( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched)] GUID *rgelt, + [out] ULONG *pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumGUID **ppenum); +} + + +/***************************************************************************** + * IEnumCATEGORYINFO + */ +[ + object, + uuid(0002e011-0000-0000-c000-000000000046), + pointer_default(unique) +] +interface IEnumCATEGORYINFO : IUnknown +{ + typedef [unique] IEnumCATEGORYINFO *LPENUMCATEGORYINFO; + + typedef struct tagCATEGORYINFO + { + CATID catid; /* category identifier for component */ + LCID lcid; /* locale identifier */ + OLECHAR szDescription[128]; /* description of the category */ + } CATEGORYINFO, *LPCATEGORYINFO; + + HRESULT Next( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched)] CATEGORYINFO* rgelt, + [out] ULONG* pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumCATEGORYINFO** ppenum); +} + + +/***************************************************************************** + * ICatInformation + */ +[ + object, + uuid(0002e013-0000-0000-c000-000000000046), + pointer_default(unique) +] +interface ICatInformation : IUnknown +{ + typedef [unique] ICatInformation* LPCATINFORMATION; + + HRESULT EnumCategories( + [in] LCID lcid, + [out] IEnumCATEGORYINFO** ppenumCategoryInfo); + + HRESULT GetCategoryDesc( + [in] REFCATID rcatid, + [in] LCID lcid, + [out] LPWSTR* pszDesc); + + [local] + HRESULT EnumClassesOfCategories( + [in] ULONG cImplemented, + [in,size_is(cImplemented)] CATID rgcatidImpl[], + [in] ULONG cRequired, + [in,size_is(cRequired)] CATID rgcatidReq[], + [out] IEnumCLSID** ppenumClsid); + + [call_as(EnumClassesOfCategories)] + HRESULT RemoteEnumClassesOfCategories( + [in] ULONG cImplemented, + [in,unique,size_is(cImplemented)] CATID rgcatidImpl[], + [in] ULONG cRequired, + [in,unique,size_is(cRequired)] CATID rgcatidReq[], + [out] IEnumCLSID** ppenumClsid); + + [local] + HRESULT IsClassOfCategories( + [in] REFCLSID rclsid, + [in] ULONG cImplemented, + [in,size_is(cImplemented)] CATID rgcatidImpl[], + [in] ULONG cRequired, + [in,size_is(cRequired)] CATID rgcatidReq[]); + + [call_as(IsClassOfCategories)] + HRESULT RemoteIsClassOfCategories( + [in] REFCLSID rclsid, + [in] ULONG cImplemented, + [in,unique,size_is(cImplemented)] CATID rgcatidImpl[], + [in] ULONG cRequired, + [in,unique,size_is(cRequired)] CATID rgcatidReq[] ); + + HRESULT EnumImplCategoriesOfClass( + [in] REFCLSID rclsid, + [out] IEnumCATID** ppenumCatid); + + HRESULT EnumReqCategoriesOfClass( + [in] REFCLSID rclsid, + [out] IEnumCATID** ppenumCatid); +} + + +/***************************************************************************** + * ICatRegister + */ +[ + object, + uuid(0002e012-0000-0000-c000-000000000046), + pointer_default(unique) +] +interface ICatRegister : IUnknown +{ + typedef [unique] ICatRegister* LPCATREGISTER; + + HRESULT RegisterCategories( + [in] ULONG cCategories, + [in, size_is(cCategories)] CATEGORYINFO rgCategoryInfo[]); + + HRESULT UnRegisterCategories( + [in] ULONG cCategories, + [in, size_is(cCategories)] CATID rgcatid[]); + + HRESULT RegisterClassImplCategories( + [in] REFCLSID rclsid, + [in] ULONG cCategories, + [in, size_is(cCategories)] CATID rgcatid[]); + + HRESULT UnRegisterClassImplCategories( + [in] REFCLSID rclsid, + [in] ULONG cCategories, + [in, size_is(cCategories)] CATID rgcatid[]); + + HRESULT RegisterClassReqCategories( + [in] REFCLSID rclsid, + [in] ULONG cCategories, + [in, size_is(cCategories)] CATID rgcatid[]); + + HRESULT UnRegisterClassReqCategories( + [in] REFCLSID rclsid, + [in] ULONG cCategories, + [in, size_is(cCategories)] CATID rgcatid[]); +} + + +/***************************************************************************** + * Category IDs + */ +cpp_quote("DEFINE_GUID( CATID_Insertable, 0x40fc6ed3, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);") +cpp_quote("DEFINE_GUID( CATID_Control, 0x40fc6ed4, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);") +cpp_quote("DEFINE_GUID( CATID_Programmable, 0x40fc6ed5, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);") +cpp_quote("DEFINE_GUID( CATID_IsShortcut, 0x40fc6ed6, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);") +cpp_quote("DEFINE_GUID( CATID_NeverShowExt, 0x40fc6ed7, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);") +cpp_quote("DEFINE_GUID( CATID_DocObject, 0x40fc6ed8, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);") +cpp_quote("DEFINE_GUID( CATID_Printable, 0x40fc6ed9, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02);") +cpp_quote("DEFINE_GUID( CATID_RequiresDataPathHost, 0x0de86a50, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);") +cpp_quote("DEFINE_GUID( CATID_PersistsToMoniker, 0x0de86a51, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);") +cpp_quote("DEFINE_GUID( CATID_PersistsToStorage, 0x0de86a52, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);") +cpp_quote("DEFINE_GUID( CATID_PersistsToStreamInit, 0x0de86a53, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);") +cpp_quote("DEFINE_GUID( CATID_PersistsToStream, 0x0de86a54, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);") +cpp_quote("DEFINE_GUID( CATID_PersistsToMemory, 0x0de86a55, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);") +cpp_quote("DEFINE_GUID( CATID_PersistsToFile, 0x0de86a56, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);") +cpp_quote("DEFINE_GUID( CATID_PersistsToPropertyBag, 0x0de86a57, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);") +cpp_quote("DEFINE_GUID( CATID_InternetAware, 0x0de86a58, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52);") +cpp_quote("DEFINE_GUID( CATID_DesignTimeUIActivatableControl, 0xf2bb56d1, 0xdb07, 0x11d1, 0xaa, 0x6b, 0x00, 0x60, 0x97, 0xdb, 0x95, 0x39);") +/* The Component Category Manager */ +cpp_quote("DEFINE_GUID(CLSID_StdComponentCategoriesMgr, 0x0002e005, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);") diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/commctrl.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/commctrl.h new file mode 100644 index 00000000..790889f3 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/commctrl.h @@ -0,0 +1,5183 @@ +/* + * Common controls definitions + * + * Copyright (C) the Wine project + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_COMMCTRL_H +#define __WINE_COMMCTRL_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +BOOL WINAPI ShowHideMenuCtl (HWND, UINT_PTR, LPINT); +VOID WINAPI GetEffectiveClientRect (HWND, LPRECT, const INT*); +VOID WINAPI InitCommonControls (VOID); + +typedef struct tagINITCOMMONCONTROLSEX { + DWORD dwSize; + DWORD dwICC; +} INITCOMMONCONTROLSEX, *LPINITCOMMONCONTROLSEX; + +BOOL WINAPI InitCommonControlsEx (const INITCOMMONCONTROLSEX*); + +LANGID WINAPI GetMUILanguage (VOID); +VOID WINAPI InitMUILanguage (LANGID uiLang); + + +#define COMCTL32_VERSION 5 /* dll version */ + +#ifndef _WIN32_IE +#define _WIN32_IE 0x0400 +#endif + +#define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */ +#define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */ +#define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */ +#define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */ +#define ICC_UPDOWN_CLASS 0x00000010 /* updown */ +#define ICC_PROGRESS_CLASS 0x00000020 /* progress */ +#define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */ +#define ICC_ANIMATE_CLASS 0x00000080 /* animate */ +#define ICC_WIN95_CLASSES 0x000000FF +#define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */ +#define ICC_USEREX_CLASSES 0x00000200 /* comboex */ +#define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */ +#define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */ +#define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */ +#define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/ +#define ICC_STANDARD_CLASSES 0x00004000 +#define ICC_LINK_CLASS 0x00008000 + + +/* common control shared messages */ +#define CCM_FIRST 0x2000 + +#define CCM_SETBKCOLOR (CCM_FIRST+0x1) /* lParam = bkColor */ +#define CCM_SETCOLORSCHEME (CCM_FIRST+0x2) /* lParam = COLORSCHEME struct ptr */ +#define CCM_GETCOLORSCHEME (CCM_FIRST+0x3) /* lParam = COLORSCHEME struct ptr */ +#define CCM_GETDROPTARGET (CCM_FIRST+0x4) +#define CCM_SETUNICODEFORMAT (CCM_FIRST+0x5) +#define CCM_GETUNICODEFORMAT (CCM_FIRST+0x6) +#define CCM_SETVERSION (CCM_FIRST+0x7) +#define CCM_GETVERSION (CCM_FIRST+0x8) +#define CCM_SETNOTIFYWINDOW (CCM_FIRST+0x9) /* wParam = hwndParent */ +#define CCM_SETWINDOWTHEME (CCM_FIRST+0xb) +#define CCM_DPISCALE (CCM_FIRST+0xc) + + +/* common notification codes (WM_NOTIFY)*/ +#define NM_FIRST (0U- 0U) +#define NM_LAST (0U- 99U) +#define NM_OUTOFMEMORY (NM_FIRST-1) +#define NM_CLICK (NM_FIRST-2) +#define NM_DBLCLK (NM_FIRST-3) +#define NM_RETURN (NM_FIRST-4) +#define NM_RCLICK (NM_FIRST-5) +#define NM_RDBLCLK (NM_FIRST-6) +#define NM_SETFOCUS (NM_FIRST-7) +#define NM_KILLFOCUS (NM_FIRST-8) +#define NM_CUSTOMDRAW (NM_FIRST-12) +#define NM_HOVER (NM_FIRST-13) +#define NM_NCHITTEST (NM_FIRST-14) +#define NM_KEYDOWN (NM_FIRST-15) +#define NM_RELEASEDCAPTURE (NM_FIRST-16) +#define NM_SETCURSOR (NM_FIRST-17) +#define NM_CHAR (NM_FIRST-18) +#define NM_TOOLTIPSCREATED (NM_FIRST-19) +#define NM_LDOWN (NM_FIRST-20) +#define NM_RDOWN (NM_FIRST-21) +#define NM_THEMECHANGED (NM_FIRST-22) +#define NM_FONTCHANGED (NM_FIRST-23) +#define NM_CUSTOMTEXT (NM_FIRST-24) +#define NM_TVSTATEIMAGECHANGING (NM_FIRST-24) + +#define HANDLE_WM_NOTIFY(hwnd, wParam, lParam, fn) \ + (fn)((hwnd), (int)(wParam), (NMHDR*)(lParam)) +#define FORWARD_WM_NOTIFY(hwnd, idFrom, pnmhdr, fn) \ + (LRESULT)(fn)((hwnd), WM_NOTIFY, (WPARAM)(int)(idFrom), (LPARAM)(NMHDR*)(pnmhdr)) + + +/* callback constants */ +#define LPSTR_TEXTCALLBACKA ((LPSTR)-1) +#define LPSTR_TEXTCALLBACKW ((LPWSTR)-1) +#define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK) + +#define I_IMAGECALLBACK (-1) +#define I_IMAGENONE (-2) +#define I_INDENTCALLBACK (-1) +#define I_CHILDRENCALLBACK (-1) +#define I_GROUPIDCALLBACK (-1) +#define I_GROUPIDNONE (-2) +#define I_COLUMNSCALLBACK ((UINT)-1) + +/* owner drawn types */ +#define ODT_HEADER 100 +#define ODT_TAB 101 +#define ODT_LISTVIEW 102 + +/* common notification structures */ +typedef struct tagNMTOOLTIPSCREATED +{ + NMHDR hdr; + HWND hwndToolTips; +} NMTOOLTIPSCREATED, *LPNMTOOLTIPSCREATED; + +typedef struct tagNMMOUSE +{ + NMHDR hdr; + DWORD_PTR dwItemSpec; + DWORD_PTR dwItemData; + POINT pt; + DWORD dwHitInfo; /* info where on item or control the mouse is */ +} NMMOUSE, *LPNMMOUSE; + +typedef struct tagNMOBJECTNOTIFY +{ + NMHDR hdr; + int iItem; +#ifdef __IID_DEFINED__ + const IID *piid; +#else + const void *piid; +#endif + void *pObject; + HRESULT hResult; + DWORD dwFlags; +} NMOBJECTNOTIFY, *LPNMOBJECTNOTIFY; + +typedef struct tagNMKEY +{ + NMHDR hdr; + UINT nVKey; + UINT uFlags; +} NMKEY, *LPNMKEY; + +typedef struct tagNMCHAR +{ + NMHDR hdr; + UINT ch; + DWORD dwItemPrev; /* Item previously selected */ + DWORD dwItemNext; /* Item to be selected */ +} NMCHAR, *LPNMCHAR; + +#ifndef CCSIZEOF_STRUCT +#define CCSIZEOF_STRUCT(name, member) \ + (((INT)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \ + sizeof(((name*)0)->member)) +#endif + + +#ifndef SNDMSG +#ifdef __cplusplus +#define SNDMSG ::SendMessage +#else /* __cplusplus */ +#define SNDMSG SendMessage +#endif /* __cplusplus */ +#endif /* SNDMSG */ + + +#ifdef __cplusplus +#define SNDMSGA ::SendMessageA +#define SNDMSGW ::SendMessageW +#else +#define SNDMSGA SendMessageA +#define SNDMSGW SendMessageW +#endif + +/* Custom Draw messages */ + +#define CDRF_DODEFAULT 0x0 +#define CDRF_NEWFONT 0x00000002 +#define CDRF_SKIPDEFAULT 0x00000004 +#define CDRF_NOTIFYPOSTPAINT 0x00000010 +#define CDRF_NOTIFYITEMDRAW 0x00000020 +#define CDRF_NOTIFYSUBITEMDRAW 0x00000020 +#define CDRF_NOTIFYPOSTERASE 0x00000040 +#define CDRF_NOTIFYITEMERASE 0x00000080 /* obsolete ??? */ + + +/* drawstage flags */ + +#define CDDS_PREPAINT 1 +#define CDDS_POSTPAINT 2 +#define CDDS_PREERASE 3 +#define CDDS_POSTERASE 4 + +#define CDDS_ITEM 0x00010000 +#define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT) +#define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT) +#define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE) +#define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE) +#define CDDS_SUBITEM 0x00020000 + +/* itemState flags */ + +#define CDIS_SELECTED 0x0001 +#define CDIS_GRAYED 0x0002 +#define CDIS_DISABLED 0x0004 +#define CDIS_CHECKED 0x0008 +#define CDIS_FOCUS 0x0010 +#define CDIS_DEFAULT 0x0020 +#define CDIS_HOT 0x0040 +#define CDIS_MARKED 0x0080 +#define CDIS_INDETERMINATE 0x0100 +#define CDIS_SHOWKEYBOARDCUES 0x0200 +#define CDIS_NEARHOT 0x0400 +#define CDIS_OTHERSIDEHOT 0x0800 +#define CDIS_DROPHILITED 0x1000 + + +typedef struct tagNMCUSTOMDRAWINFO +{ + NMHDR hdr; + DWORD dwDrawStage; + HDC hdc; + RECT rc; + DWORD_PTR dwItemSpec; + UINT uItemState; + LPARAM lItemlParam; +} NMCUSTOMDRAW, *LPNMCUSTOMDRAW; + +typedef struct tagNMTTCUSTOMDRAW +{ + NMCUSTOMDRAW nmcd; + UINT uDrawFlags; +} NMTTCUSTOMDRAW, *LPNMTTCUSTOMDRAW; + + + + +/* StatusWindow */ + +#define STATUSCLASSNAMEA "msctls_statusbar32" +#if defined(__GNUC__) +# define STATUSCLASSNAMEW (const WCHAR []){ 'm','s','c','t','l','s','_', \ + 's','t','a','t','u','s','b','a','r','3','2',0 } +#elif defined(_MSC_VER) +# define STATUSCLASSNAMEW L"msctls_statusbar32" +#else +static const WCHAR STATUSCLASSNAMEW[] = { 'm','s','c','t','l','s','_', + 's','t','a','t','u','s','b','a','r','3','2',0 }; +#endif +#define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME) + +#define SBT_NOBORDERS 0x0100 +#define SBT_POPOUT 0x0200 +#define SBT_RTLREADING 0x0400 /* not supported */ +#define SBT_OWNERDRAW 0x1000 + +#define SB_SIMPLEID 0x00ff + +#define SB_SETTEXTA (WM_USER+1) +#define SB_SETTEXTW (WM_USER+11) +#define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT) +#define SB_GETTEXTA (WM_USER+2) +#define SB_GETTEXTW (WM_USER+13) +#define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT) +#define SB_GETTEXTLENGTHA (WM_USER+3) +#define SB_GETTEXTLENGTHW (WM_USER+12) +#define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH) +#define SB_SETPARTS (WM_USER+4) +#define SB_SETBORDERS (WM_USER+5) +#define SB_GETPARTS (WM_USER+6) +#define SB_GETBORDERS (WM_USER+7) +#define SB_SETMINHEIGHT (WM_USER+8) +#define SB_SIMPLE (WM_USER+9) +#define SB_GETRECT (WM_USER+10) +#define SB_ISSIMPLE (WM_USER+14) +#define SB_SETICON (WM_USER+15) +#define SB_SETTIPTEXTA (WM_USER+16) +#define SB_SETTIPTEXTW (WM_USER+17) +#define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT) +#define SB_GETTIPTEXTA (WM_USER+18) +#define SB_GETTIPTEXTW (WM_USER+19) +#define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT) +#define SB_GETICON (WM_USER+20) +#define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */ +#define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT + +#define SBN_FIRST (0U-880U) +#define SBN_LAST (0U-899U) +#define SBN_SIMPLEMODECHANGE (SBN_FIRST-0) + +HWND WINAPI CreateStatusWindowA (LONG, LPCSTR, HWND, UINT); +HWND WINAPI CreateStatusWindowW (LONG, LPCWSTR, HWND, UINT); +#define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow) +VOID WINAPI DrawStatusTextA (HDC, LPCRECT, LPCSTR, UINT); +VOID WINAPI DrawStatusTextW (HDC, LPCRECT, LPCWSTR, UINT); +#define DrawStatusText WINELIB_NAME_AW(DrawStatusText) +VOID WINAPI MenuHelp (UINT, WPARAM, LPARAM, HMENU, + HINSTANCE, HWND, UINT*); + +typedef struct tagCOLORSCHEME +{ + DWORD dwSize; + COLORREF clrBtnHighlight; /* highlight color */ + COLORREF clrBtnShadow; /* shadow color */ +} COLORSCHEME, *LPCOLORSCHEME; + +/************************************************************************** + * Drag List control + */ + +typedef struct tagDRAGLISTINFO +{ + UINT uNotification; + HWND hWnd; + POINT ptCursor; +} DRAGLISTINFO, *LPDRAGLISTINFO; + +#define DL_BEGINDRAG (WM_USER+133) +#define DL_DRAGGING (WM_USER+134) +#define DL_DROPPED (WM_USER+135) +#define DL_CANCELDRAG (WM_USER+136) + +#define DL_CURSORSET 0 +#define DL_STOPCURSOR 1 +#define DL_COPYCURSOR 2 +#define DL_MOVECURSOR 3 + +#define DRAGLISTMSGSTRINGA "commctrl_DragListMsg" +#if defined(__GNUC__) +# define DRAGLISTMSGSTRINGW (const WCHAR []){ 'c','o','m','m','c','t','r','l', \ + '_','D','r','a','g','L','i','s','t','M','s','g',0 } +#elif defined(_MSC_VER) +# define DRAGLISTMSGSTRINGW L"commctrl_DragListMsg" +#else +static const WCHAR DRAGLISTMSGSTRINGW[] = { 'c','o','m','m','c','t','r','l', + '_','D','r','a','g','L','i','s','t','M','s','g',0 }; +#endif +#define DRAGLISTMSGSTRING WINELIB_NAME_AW(DRAGLISTMSGSTRING) + +BOOL WINAPI MakeDragList (HWND); +VOID WINAPI DrawInsert (HWND, HWND, INT); +INT WINAPI LBItemFromPt (HWND, POINT, BOOL); + + +/* UpDown */ + +#define UPDOWN_CLASSA "msctls_updown32" +#if defined(__GNUC__) +# define UPDOWN_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \ + 'u','p','d','o','w','n','3','2',0 } +#elif defined(_MSC_VER) +# define UPDOWN_CLASSW L"msctls_updown32" +#else +static const WCHAR UPDOWN_CLASSW[] = { 'm','s','c','t','l','s','_', + 'u','p','d','o','w','n','3','2',0 }; +#endif +#define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS) + +typedef struct _UDACCEL +{ + UINT nSec; + UINT nInc; +} UDACCEL, *LPUDACCEL; + +#define UD_MAXVAL 0x7fff +#define UD_MINVAL 0x8001 + + +#define UDN_FIRST (0U-721) +#define UDN_LAST (0U-740) +#define UDN_DELTAPOS (UDN_FIRST-1) + +#define UDM_SETRANGE (WM_USER+101) +#define UDM_GETRANGE (WM_USER+102) +#define UDM_SETPOS (WM_USER+103) +#define UDM_GETPOS (WM_USER+104) +#define UDM_SETBUDDY (WM_USER+105) +#define UDM_GETBUDDY (WM_USER+106) +#define UDM_SETACCEL (WM_USER+107) +#define UDM_GETACCEL (WM_USER+108) +#define UDM_SETBASE (WM_USER+109) +#define UDM_GETBASE (WM_USER+110) +#define UDM_SETRANGE32 (WM_USER+111) +#define UDM_GETRANGE32 (WM_USER+112) +#define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define UDM_SETPOS32 (WM_USER+113) +#define UDM_GETPOS32 (WM_USER+114) + + +#define NMUPDOWN NM_UPDOWN +#define LPNMUPDOWN LPNM_UPDOWN + +typedef struct tagNM_UPDOWN +{ + NMHDR hdr; + int iPos; + int iDelta; +} NM_UPDOWN, *LPNM_UPDOWN; + +HWND WINAPI CreateUpDownControl (DWORD, INT, INT, INT, INT, + HWND, INT, HINSTANCE, HWND, + INT, INT, INT); + +/* Progress Bar */ + +#define PROGRESS_CLASSA "msctls_progress32" +#if defined(__GNUC__) +# define PROGRESS_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \ + 'p','r','o','g','r','e','s','s','3','2',0 } +#elif defined(_MSC_VER) +# define PROGRESS_CLASSW L"msctls_progress32" +#else +static const WCHAR PROGRESS_CLASSW[] = { 'm','s','c','t','l','s','_', + 'p','r','o','g','r','e','s','s','3','2',0 }; +#endif +#define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS) + +#define PBM_SETRANGE (WM_USER+1) +#define PBM_SETPOS (WM_USER+2) +#define PBM_DELTAPOS (WM_USER+3) +#define PBM_SETSTEP (WM_USER+4) +#define PBM_STEPIT (WM_USER+5) +#define PBM_SETRANGE32 (WM_USER+6) +#define PBM_GETRANGE (WM_USER+7) +#define PBM_GETPOS (WM_USER+8) +#define PBM_SETBARCOLOR (WM_USER+9) +#define PBM_SETMARQUEE (WM_USER+10) +#define PBM_GETSTEP (WM_USER+13) +#define PBM_GETBKCOLOR (WM_USER+14) +#define PBM_GETBARCOLOR (WM_USER+15) +#define PBM_SETSTATE (WM_USER+16) +#define PBM_GETSTATE (WM_USER+17) +#define PBM_SETBKCOLOR CCM_SETBKCOLOR + + +#define PBST_NORMAL 1 +#define PBST_ERROR 2 +#define PBST_PAUSED 3 + +typedef struct +{ + INT iLow; + INT iHigh; +} PBRANGE, *PPBRANGE; + + +/* ImageList */ + +struct _IMAGELIST; +typedef struct _IMAGELIST *HIMAGELIST; + +#define CLR_NONE 0xFFFFFFFF +#define CLR_DEFAULT 0xFF000000 +#define CLR_HILIGHT CLR_DEFAULT + +#define ILC_MASK 0x0001 +#define ILC_COLOR 0x0000 +#define ILC_COLORDDB 0x00FE +#define ILC_COLOR4 0x0004 +#define ILC_COLOR8 0x0008 +#define ILC_COLOR16 0x0010 +#define ILC_COLOR24 0x0018 +#define ILC_COLOR32 0x0020 +#define ILC_PALETTE 0x0800 /* no longer supported by M$ */ +#define ILC_MIRROR 0x2000 +#define ILC_PERITEMMIRROR 0x8000 + +#define ILD_NORMAL 0x0000 +#define ILD_TRANSPARENT 0x0001 +#define ILD_BLEND25 0x0002 +#define ILD_BLEND50 0x0004 +#define ILD_MASK 0x0010 +#define ILD_IMAGE 0x0020 +#define ILD_ROP 0x0040 +#define ILD_OVERLAYMASK 0x0F00 +#define ILD_PRESERVEALPHA 0x1000 +#define ILD_SCALE 0x2000 +#define ILD_DPISCALE 0x4000 +#define ILD_ASYNC 0x8000 + +#define ILD_SELECTED ILD_BLEND50 +#define ILD_FOCUS ILD_BLEND25 +#define ILD_BLEND ILD_BLEND50 + +#define INDEXTOOVERLAYMASK(i) ((i)<<8) +#define INDEXTOSTATEIMAGEMASK(i) ((i)<<12) + +#define ILCF_MOVE (0x00000000) +#define ILCF_SWAP (0x00000001) + +#define ILGT_NORMAL 0x0000 +#define ILGT_ASYNC 0x0001 + +#define ILS_NORMAL 0x0000 +#define ILS_GLOW 0x0001 +#define ILS_SHADOW 0x0002 +#define ILS_SATURATE 0x0004 +#define ILS_ALPHA 0x0008 + +typedef struct _IMAGEINFO +{ + HBITMAP hbmImage; + HBITMAP hbmMask; + INT Unused1; + INT Unused2; + RECT rcImage; +} IMAGEINFO, *LPIMAGEINFO; + + +typedef struct _IMAGELISTDRAWPARAMS +{ + DWORD cbSize; + HIMAGELIST himl; + INT i; + HDC hdcDst; + INT x; + INT y; + INT cx; + INT cy; + INT xBitmap; /* x offset from the upperleft of bitmap */ + INT yBitmap; /* y offset from the upperleft of bitmap */ + COLORREF rgbBk; + COLORREF rgbFg; + UINT fStyle; + DWORD dwRop; + DWORD fState; + DWORD Frame; + COLORREF crEffect; +} IMAGELISTDRAWPARAMS, *LPIMAGELISTDRAWPARAMS; + +#define IMAGELISTDRAWPARAMS_V3_SIZE CCSIZEOF_STRUCT(IMAGELISTDRAWPARAMS, dwRop) + +HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST,REFIID,void **); +INT WINAPI ImageList_Add(HIMAGELIST,HBITMAP,HBITMAP); +INT WINAPI ImageList_AddMasked(HIMAGELIST,HBITMAP,COLORREF); +BOOL WINAPI ImageList_BeginDrag(HIMAGELIST,INT,INT,INT); +BOOL WINAPI ImageList_Copy(HIMAGELIST,INT,HIMAGELIST,INT,UINT); +HIMAGELIST WINAPI ImageList_Create(INT,INT,UINT,INT,INT); +BOOL WINAPI ImageList_Destroy(HIMAGELIST); +BOOL WINAPI ImageList_DragEnter(HWND,INT,INT); +BOOL WINAPI ImageList_DragLeave(HWND); +BOOL WINAPI ImageList_DragMove(INT,INT); +BOOL WINAPI ImageList_DragShowNolock (BOOL); +BOOL WINAPI ImageList_Draw(HIMAGELIST,INT,HDC,INT,INT,UINT); +BOOL WINAPI ImageList_DrawEx(HIMAGELIST,INT,HDC,INT,INT,INT, + INT,COLORREF,COLORREF,UINT); +BOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*); +HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST); +VOID WINAPI ImageList_EndDrag(VOID); +COLORREF WINAPI ImageList_GetBkColor(HIMAGELIST); +HIMAGELIST WINAPI ImageList_GetDragImage(POINT*,POINT*); +HICON WINAPI ImageList_GetIcon(HIMAGELIST,INT,UINT); +BOOL WINAPI ImageList_GetIconSize(HIMAGELIST,INT*,INT*); +INT WINAPI ImageList_GetImageCount(HIMAGELIST); +BOOL WINAPI ImageList_GetImageInfo(HIMAGELIST,INT,IMAGEINFO*); +BOOL WINAPI ImageList_GetImageRect(HIMAGELIST,INT,LPRECT); +HIMAGELIST WINAPI ImageList_LoadImageA(HINSTANCE,LPCSTR,INT,INT, + COLORREF,UINT,UINT); +HIMAGELIST WINAPI ImageList_LoadImageW(HINSTANCE,LPCWSTR,INT,INT, + COLORREF,UINT,UINT); +#define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage) +HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST,INT,HIMAGELIST,INT,INT,INT); +BOOL WINAPI ImageList_Remove(HIMAGELIST,INT); +BOOL WINAPI ImageList_Replace(HIMAGELIST,INT,HBITMAP,HBITMAP); +INT WINAPI ImageList_ReplaceIcon(HIMAGELIST,INT,HICON); +COLORREF WINAPI ImageList_SetBkColor(HIMAGELIST,COLORREF); +BOOL WINAPI ImageList_SetDragCursorImage(HIMAGELIST,INT,INT,INT); + +BOOL WINAPI ImageList_SetIconSize(HIMAGELIST,INT,INT); +BOOL WINAPI ImageList_SetImageCount(HIMAGELIST,UINT); +BOOL WINAPI ImageList_SetOverlayImage(HIMAGELIST,INT,INT); + +#ifdef __IStream_INTERFACE_DEFINED__ +HIMAGELIST WINAPI ImageList_Read(LPSTREAM); +BOOL WINAPI ImageList_Write(HIMAGELIST, LPSTREAM); +#endif + +#define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon) +#define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0) +#define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \ + ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0) +#define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1) + + +#ifndef WM_MOUSEHOVER +#define WM_MOUSEHOVER 0x02A1 +#define WM_MOUSELEAVE 0x02A3 +#endif + +#ifndef TME_HOVER + +#define TME_HOVER 0x00000001 +#define TME_LEAVE 0x00000002 +#define TME_NONCLIENT 0x00000010 +#define TME_QUERY 0x40000000 +#define TME_CANCEL 0x80000000 + + +#define HOVER_DEFAULT 0xFFFFFFFF + +typedef struct tagTRACKMOUSEEVENT { + DWORD cbSize; + DWORD dwFlags; + HWND hwndTrack; + DWORD dwHoverTime; +} TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT; + +#endif + +BOOL WINAPI _TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack); + +/* Flat Scrollbar control */ + +#define FLATSB_CLASSA "flatsb_class32" +#if defined(__GNUC__) +# define FLATSB_CLASSW (const WCHAR []){ 'f','l','a','t','s','b','_', \ + 'c','l','a','s','s','3','2',0 } +#elif defined(_MSC_VER) +# define FLATSB_CLASSW L"flatsb_class32" +#else +static const WCHAR FLATSB_CLASSW[] = { 'f','l','a','t','s','b','_', + 'c','l','a','s','s','3','2',0 }; +#endif +#define FLATSB_CLASS WINELIB_NAME_AW(FLATSB_CLASS) + +#define WSB_PROP_CYVSCROLL __MSABI_LONG(0x00000001) +#define WSB_PROP_CXHSCROLL __MSABI_LONG(0x00000002) +#define WSB_PROP_CYHSCROLL __MSABI_LONG(0x00000004) +#define WSB_PROP_CXVSCROLL __MSABI_LONG(0x00000008) +#define WSB_PROP_CXHTHUMB __MSABI_LONG(0x00000010) +#define WSB_PROP_CYVTHUMB __MSABI_LONG(0x00000020) +#define WSB_PROP_VBKGCOLOR __MSABI_LONG(0x00000040) +#define WSB_PROP_HBKGCOLOR __MSABI_LONG(0x00000080) +#define WSB_PROP_VSTYLE __MSABI_LONG(0x00000100) +#define WSB_PROP_HSTYLE __MSABI_LONG(0x00000200) +#define WSB_PROP_WINSTYLE __MSABI_LONG(0x00000400) +#define WSB_PROP_PALETTE __MSABI_LONG(0x00000800) +#define WSB_PROP_MASK __MSABI_LONG(0x00000FFF) + +#define FSB_REGULAR_MODE 0 +#define FSB_ENCARTA_MODE 1 +#define FSB_FLAT_MODE 2 + + +BOOL WINAPI FlatSB_EnableScrollBar(HWND, INT, UINT); +BOOL WINAPI FlatSB_ShowScrollBar(HWND, INT, BOOL); +BOOL WINAPI FlatSB_GetScrollRange(HWND, INT, LPINT, LPINT); +BOOL WINAPI FlatSB_GetScrollInfo(HWND, INT, LPSCROLLINFO); +INT WINAPI FlatSB_GetScrollPos(HWND, INT); +BOOL WINAPI FlatSB_GetScrollProp(HWND, INT, LPINT); +INT WINAPI FlatSB_SetScrollPos(HWND, INT, INT, BOOL); +INT WINAPI FlatSB_SetScrollInfo(HWND, INT, LPSCROLLINFO, BOOL); +INT WINAPI FlatSB_SetScrollRange(HWND, INT, INT, INT, BOOL); +BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT, INT, BOOL); +BOOL WINAPI InitializeFlatSB(HWND); +HRESULT WINAPI UninitializeFlatSB(HWND); + +/* Subclassing stuff */ +typedef LRESULT (CALLBACK *SUBCLASSPROC)(HWND, UINT, WPARAM, LPARAM, UINT_PTR, DWORD_PTR); +BOOL WINAPI SetWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR); +BOOL WINAPI GetWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR*); +BOOL WINAPI RemoveWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR); +LRESULT WINAPI DefSubclassProc(HWND, UINT, WPARAM, LPARAM); + +int WINAPI DrawShadowText(HDC, LPCWSTR, UINT, RECT*, DWORD, COLORREF, COLORREF, int, int); + +/* Header control */ + +#define WC_HEADERA "SysHeader32" +#if defined(__GNUC__) +# define WC_HEADERW (const WCHAR []){ 'S','y','s','H','e','a','d','e','r','3','2',0 } +#elif defined(_MSC_VER) +# define WC_HEADERW L"SysHeader32" +#else +static const WCHAR WC_HEADERW[] = { 'S','y','s','H','e','a','d','e','r','3','2',0 }; +#endif +#define WC_HEADER WINELIB_NAME_AW(WC_HEADER) + + +#define HDI_WIDTH 0x0001 +#define HDI_HEIGHT HDI_WIDTH +#define HDI_TEXT 0x0002 +#define HDI_FORMAT 0x0004 +#define HDI_LPARAM 0x0008 +#define HDI_BITMAP 0x0010 +#define HDI_IMAGE 0x0020 +#define HDI_DI_SETITEM 0x0040 +#define HDI_ORDER 0x0080 +#define HDI_FILTER 0x0100 +#define HDI_STATE 0x0200 + +#define HDIS_FOCUSED 0x00000001 + +#define HDF_LEFT 0x0000 +#define HDF_RIGHT 0x0001 +#define HDF_CENTER 0x0002 +#define HDF_JUSTIFYMASK 0x0003 +#define HDF_RTLREADING 0x0004 +#define HDF_CHECKBOX 0x0040 +#define HDF_CHECKED 0x0080 +#define HDF_FIXEDWIDTH 0x0100 +#define HDF_SORTDOWN 0x0200 +#define HDF_SORTUP 0x0400 +#define HDF_IMAGE 0x0800 +#define HDF_BITMAP_ON_RIGHT 0x1000 +#define HDF_BITMAP 0x2000 +#define HDF_STRING 0x4000 +#define HDF_OWNERDRAW 0x8000 +#define HDF_SPLITBUTTON 0x1000000 + +#define HHT_NOWHERE 0x0001 +#define HHT_ONHEADER 0x0002 +#define HHT_ONDIVIDER 0x0004 +#define HHT_ONDIVOPEN 0x0008 +#define HHT_ONFILTER 0x0010 +#define HHT_ONFILTERBUTTON 0x0020 +#define HHT_ABOVE 0x0100 +#define HHT_BELOW 0x0200 +#define HHT_TORIGHT 0x0400 +#define HHT_TOLEFT 0x0800 +#define HHT_ONITEMSTATEICON 0x1000 +#define HHT_ONDROPDOWN 0x2000 +#define HHT_ONOVERFLOW 0x4000 + +#define HDM_FIRST 0x1200 +#define HDM_GETITEMCOUNT (HDM_FIRST+0) +#define HDM_INSERTITEMA (HDM_FIRST+1) +#define HDM_INSERTITEMW (HDM_FIRST+10) +#define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM) +#define HDM_DELETEITEM (HDM_FIRST+2) +#define HDM_GETITEMA (HDM_FIRST+3) +#define HDM_GETITEMW (HDM_FIRST+11) +#define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM) +#define HDM_SETITEMA (HDM_FIRST+4) +#define HDM_SETITEMW (HDM_FIRST+12) +#define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM) +#define HDM_LAYOUT (HDM_FIRST+5) +#define HDM_HITTEST (HDM_FIRST+6) +#define HDM_GETITEMRECT (HDM_FIRST+7) +#define HDM_SETIMAGELIST (HDM_FIRST+8) +#define HDM_GETIMAGELIST (HDM_FIRST+9) + +#define HDM_ORDERTOINDEX (HDM_FIRST+15) +#define HDM_CREATEDRAGIMAGE (HDM_FIRST+16) +#define HDM_GETORDERARRAY (HDM_FIRST+17) +#define HDM_SETORDERARRAY (HDM_FIRST+18) +#define HDM_SETHOTDIVIDER (HDM_FIRST+19) +#define HDM_SETBITMAPMARGIN (HDM_FIRST+20) +#define HDM_GETBITMAPMARGIN (HDM_FIRST+21) +#define HDM_SETFILTERCHANGETIMEOUT (HDM_FIRST+22) +#define HDM_EDITFILTER (HDM_FIRST+23) +#define HDM_CLEARFILTER (HDM_FIRST+24) +#define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT + +#define HDN_FIRST (0U-300U) +#define HDN_LAST (0U-399U) +#define HDN_ITEMCHANGINGA (HDN_FIRST-0) +#define HDN_ITEMCHANGINGW (HDN_FIRST-20) +#define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING) +#define HDN_ITEMCHANGEDA (HDN_FIRST-1) +#define HDN_ITEMCHANGEDW (HDN_FIRST-21) +#define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED) +#define HDN_ITEMCLICKA (HDN_FIRST-2) +#define HDN_ITEMCLICKW (HDN_FIRST-22) +#define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK) +#define HDN_ITEMDBLCLICKA (HDN_FIRST-3) +#define HDN_ITEMDBLCLICKW (HDN_FIRST-23) +#define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK) +#define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5) +#define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25) +#define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK) +#define HDN_BEGINTRACKA (HDN_FIRST-6) +#define HDN_BEGINTRACKW (HDN_FIRST-26) +#define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK) +#define HDN_ENDTRACKA (HDN_FIRST-7) +#define HDN_ENDTRACKW (HDN_FIRST-27) +#define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK) +#define HDN_TRACKA (HDN_FIRST-8) +#define HDN_TRACKW (HDN_FIRST-28) +#define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK) +#define HDN_GETDISPINFOA (HDN_FIRST-9) +#define HDN_GETDISPINFOW (HDN_FIRST-29) +#define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO) +#define HDN_BEGINDRAG (HDN_FIRST-10) +#define HDN_ENDDRAG (HDN_FIRST-11) +#define HDN_FILTERCHANGE (HDN_FIRST-12) +#define HDN_FILTERBTNCLICK (HDN_FIRST-13) +#define HDN_BEGINFILTEREDIT (HDN_FIRST-14) +#define HDN_ENDFILTEREDIT (HDN_FIRST-15) +#define HDN_ITEMSTATEICONCLICK (HDN_FIRST-16) +#define HDN_ITEMKEYDOWN (HDN_FIRST-17) + +typedef struct _HD_LAYOUT +{ + RECT *prc; + WINDOWPOS *pwpos; +} HDLAYOUT, *LPHDLAYOUT; + +#define HD_LAYOUT HDLAYOUT + +typedef struct _HD_ITEMA +{ + UINT mask; + INT cxy; + LPSTR pszText; + HBITMAP hbm; + INT cchTextMax; + INT fmt; + LPARAM lParam; + /* (_WIN32_IE >= 0x0300) */ + INT iImage; + INT iOrder; + /* (_WIN32_IE >= 0x0500) */ + UINT type; + LPVOID pvFilter; + /* (_WIN32_WINNT >= 0x0600) */ + UINT state; +} HDITEMA, *LPHDITEMA; + +typedef struct _HD_ITEMW +{ + UINT mask; + INT cxy; + LPWSTR pszText; + HBITMAP hbm; + INT cchTextMax; + INT fmt; + LPARAM lParam; + /* (_WIN32_IE >= 0x0300) */ + INT iImage; + INT iOrder; + /* (_WIN32_IE >= 0x0500) */ + UINT type; + LPVOID pvFilter; + /* (_WIN32_WINNT >= 0x0600) */ + UINT state; +} HDITEMW, *LPHDITEMW; + +#define HDITEM WINELIB_NAME_AW(HDITEM) +#define LPHDITEM WINELIB_NAME_AW(LPHDITEM) +#define HD_ITEM HDITEM + +#define HDITEM_V1_SIZEA CCSIZEOF_STRUCT(HDITEMA, lParam) +#define HDITEM_V1_SIZEW CCSIZEOF_STRUCT(HDITEMW, lParam) +#define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE) + +#define HDFT_ISSTRING 0x0000 +#define HDFT_ISNUMBER 0x0001 +#define HDFT_HASNOVALUE 0x8000 + +typedef struct _HD_TEXTFILTERA +{ + LPSTR pszText; + INT cchTextMax; +} HD_TEXTFILTERA, *LPHD_TEXTFILTERA; + +typedef struct _HD_TEXTFILTERW +{ + LPWSTR pszText; + INT cchTextMax; +} HD_TEXTFILTERW, *LPHD_TEXTFILTERW; + +#define HD_TEXTFILTER WINELIB_NAME_AW(HD_TEXTFILTER) +#define HDTEXTFILTER WINELIB_NAME_AW(HD_TEXTFILTER) +#define LPHD_TEXTFILTER WINELIB_NAME_AW(LPHD_TEXTFILTER) +#define LPHDTEXTFILTER WINELIB_NAME_AW(LPHD_TEXTFILTER) + +typedef struct _HD_HITTESTINFO +{ + POINT pt; + UINT flags; + INT iItem; +} HDHITTESTINFO, *LPHDHITTESTINFO; + +#define HD_HITTESTINFO HDHITTESTINFO + +typedef struct tagNMHEADERA +{ + NMHDR hdr; + INT iItem; + INT iButton; + HDITEMA *pitem; +} NMHEADERA, *LPNMHEADERA; + +typedef struct tagNMHEADERW +{ + NMHDR hdr; + INT iItem; + INT iButton; + HDITEMW *pitem; +} NMHEADERW, *LPNMHEADERW; + +#define NMHEADER WINELIB_NAME_AW(NMHEADER) +#define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER) +#define HD_NOTIFY NMHEADER + +typedef struct tagNMHDDISPINFOA +{ + NMHDR hdr; + INT iItem; + UINT mask; + LPSTR pszText; + INT cchTextMax; + INT iImage; + LPARAM lParam; +} NMHDDISPINFOA, *LPNMHDDISPINFOA; + +typedef struct tagNMHDDISPINFOW +{ + NMHDR hdr; + INT iItem; + UINT mask; + LPWSTR pszText; + INT cchTextMax; + INT iImage; + LPARAM lParam; +} NMHDDISPINFOW, *LPNMHDDISPINFOW; + +#define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO) +#define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO) + +typedef struct tagNMHDFILTERBTNCLICK +{ + NMHDR hdr; + INT iItem; + RECT rc; +} NMHDFILTERBTNCLICK, *LPNMHDFILTERBTNCLICK; + +#define Header_GetItemCount(hwndHD) \ + (INT)SNDMSG((hwndHD), HDM_GETITEMCOUNT, 0, 0) +#define Header_InsertItemA(hwndHD,i,phdi) \ + (INT)SNDMSGA((hwndHD),HDM_INSERTITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi)) +#define Header_InsertItemW(hwndHD,i,phdi) \ + (INT)SNDMSGW((hwndHD),HDM_INSERTITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi)) +#define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem) +#define Header_DeleteItem(hwndHD,i) \ + (BOOL)SNDMSG((hwndHD), HDM_DELETEITEM, (WPARAM)(INT)(i), 0) +#define Header_GetItemA(hwndHD,i,phdi) \ + (BOOL)SNDMSGA((hwndHD),HDM_GETITEMA,(WPARAM)(INT)(i),(LPARAM)(HDITEMA*)(phdi)) +#define Header_GetItemW(hwndHD,i,phdi) \ + (BOOL)SNDMSGW((hwndHD),HDM_GETITEMW,(WPARAM)(INT)(i),(LPARAM)(HDITEMW*)(phdi)) +#define Header_GetItem WINELIB_NAME_AW(Header_GetItem) +#define Header_SetItemA(hwndHD,i,phdi) \ + (BOOL)SNDMSGA((hwndHD),HDM_SETITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi)) +#define Header_SetItemW(hwndHD,i,phdi) \ + (BOOL)SNDMSGW((hwndHD),HDM_SETITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi)) +#define Header_SetItem WINELIB_NAME_AW(Header_SetItem) +#define Header_Layout(hwndHD,playout) \ + (BOOL)SNDMSG((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout)) +#define Header_GetItemRect(hwnd,iItem,lprc) \ + (BOOL)SNDMSG((hwnd),HDM_GETITEMRECT,(WPARAM)iItem,(LPARAM)lprc) +#define Header_SetImageList(hwnd,himl) \ + (HIMAGELIST)SNDMSG((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl) +#define Header_GetImageList(hwnd) \ + (HIMAGELIST)SNDMSG((hwnd),HDM_GETIMAGELIST,0,0) +#define Header_OrderToIndex(hwnd,i) \ + (INT)SNDMSG((hwnd),HDM_ORDERTOINDEX,(WPARAM)i,0) +#define Header_CreateDragImage(hwnd,i) \ + (HIMAGELIST)SNDMSG((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM)i,0) +#define Header_GetOrderArray(hwnd,iCount,lpi) \ + (BOOL)SNDMSG((hwnd),HDM_GETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi) +#define Header_SetOrderArray(hwnd,iCount,lpi) \ + (BOOL)SNDMSG((hwnd),HDM_SETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi) +#define Header_SetHotDivider(hwnd,fPos,dw) \ + (INT)SNDMSG((hwnd),HDM_SETHOTDIVIDER,(WPARAM)fPos,(LPARAM)dw) +#define Header_SetUnicodeFormat(hwnd,fUnicode) \ + (BOOL)SNDMSG((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0) +#define Header_GetUnicodeFormat(hwnd) \ + (BOOL)SNDMSG((hwnd),HDM_GETUNICODEFORMAT,0,0) + +/* Win32 5.1 Button Theme */ +#define WC_BUTTONA "Button" +#if defined(__GNUC__) +# define WC_BUTTONW (const WCHAR []){ 'B','u','t','t','o','n',0 } +#elif defined(_MSC_VER) +# define WC_BUTTONW L"Button" +#else +static const WCHAR WC_BUTTONW[] = { 'B','u','t','t','o','n',0 }; +#endif +#define WC_BUTTON WINELIB_NAME_AW(WC_BUTTON) + +#define BCN_FIRST (0U-1250U) +#define BCN_LAST (0U-1350U) + +#define BCN_HOTITEMCHANGE (BCN_FIRST + 0x0001) + +typedef struct tagNMBCHOTITEM +{ + NMHDR hdr; + DWORD dwFlags; +} NMBCHOTITEM, *LPNMBCHOTITEM; + +#define BST_HOT 0x0200 + +/* Button control styles for _WIN32_WINNT >= 0x600 */ +#define BS_SPLITBUTTON 0x0000000C +#define BS_DEFSPLITBUTTON 0x0000000D +#define BS_COMMANDLINK 0x0000000E +#define BS_DEFCOMMANDLINK 0x0000000F + +/* Toolbar */ + +#define TOOLBARCLASSNAMEA "ToolbarWindow32" +#if defined(__GNUC__) +# define TOOLBARCLASSNAMEW (const WCHAR []){ 'T','o','o','l','b','a','r', \ + 'W','i','n','d','o','w','3','2',0 } +#elif defined(_MSC_VER) +# define TOOLBARCLASSNAMEW L"ToolbarWindow32" +#else +static const WCHAR TOOLBARCLASSNAMEW[] = { 'T','o','o','l','b','a','r', + 'W','i','n','d','o','w','3','2',0 }; +#endif +#define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME) + +#define CMB_MASKED 0x02 + +#define TBSTATE_CHECKED 0x01 +#define TBSTATE_PRESSED 0x02 +#define TBSTATE_ENABLED 0x04 +#define TBSTATE_HIDDEN 0x08 +#define TBSTATE_INDETERMINATE 0x10 +#define TBSTATE_WRAP 0x20 +#define TBSTATE_ELLIPSES 0x40 +#define TBSTATE_MARKED 0x80 + + +/* as of _WIN32_IE >= 0x0500 the following symbols are obsolete, + * "everyone" should use the BTNS_... stuff below + */ +#define TBSTYLE_BUTTON 0x00 +#define TBSTYLE_SEP 0x01 +#define TBSTYLE_CHECK 0x02 +#define TBSTYLE_GROUP 0x04 +#define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK) +#define TBSTYLE_DROPDOWN 0x08 +#define TBSTYLE_AUTOSIZE 0x10 +#define TBSTYLE_NOPREFIX 0x20 +#define BTNS_BUTTON TBSTYLE_BUTTON +#define BTNS_SEP TBSTYLE_SEP +#define BTNS_CHECK TBSTYLE_CHECK +#define BTNS_GROUP TBSTYLE_GROUP +#define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP +#define BTNS_DROPDOWN TBSTYLE_DROPDOWN +#define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE +#define BTNS_NOPREFIX TBSTYLE_NOPREFIX +#define BTNS_SHOWTEXT 0x40 /* ignored unless TBSTYLE_EX_MIXEDB set */ +#define BTNS_WHOLEDROPDOWN 0x80 /* draw dropdown arrow, but without split arrow section */ + +#define TBSTYLE_TOOLTIPS 0x0100 +#define TBSTYLE_WRAPABLE 0x0200 +#define TBSTYLE_ALTDRAG 0x0400 +#define TBSTYLE_FLAT 0x0800 +#define TBSTYLE_LIST 0x1000 +#define TBSTYLE_CUSTOMERASE 0x2000 +#define TBSTYLE_REGISTERDROP 0x4000 +#define TBSTYLE_TRANSPARENT 0x8000 +#define TBSTYLE_EX_DRAWDDARROWS 0x00000001 +#define TBSTYLE_EX_UNDOC1 0x00000004 /* similar to TBSTYLE_WRAPABLE */ +#define TBSTYLE_EX_MIXEDBUTTONS 0x00000008 +#define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010 /* don't show partially obscured buttons */ +#define TBSTYLE_EX_DOUBLEBUFFER 0x00000080 /* Double Buffer the toolbar */ + +#define TBIF_IMAGE 0x00000001 +#define TBIF_TEXT 0x00000002 +#define TBIF_STATE 0x00000004 +#define TBIF_STYLE 0x00000008 +#define TBIF_LPARAM 0x00000010 +#define TBIF_COMMAND 0x00000020 +#define TBIF_SIZE 0x00000040 +#define TBIF_BYINDEX 0x80000000 + +#define TBBF_LARGE 0x0001 + +#define TB_ENABLEBUTTON (WM_USER+1) +#define TB_CHECKBUTTON (WM_USER+2) +#define TB_PRESSBUTTON (WM_USER+3) +#define TB_HIDEBUTTON (WM_USER+4) +#define TB_INDETERMINATE (WM_USER+5) +#define TB_MARKBUTTON (WM_USER+6) +#define TB_ISBUTTONENABLED (WM_USER+9) +#define TB_ISBUTTONCHECKED (WM_USER+10) +#define TB_ISBUTTONPRESSED (WM_USER+11) +#define TB_ISBUTTONHIDDEN (WM_USER+12) +#define TB_ISBUTTONINDETERMINATE (WM_USER+13) +#define TB_ISBUTTONHIGHLIGHTED (WM_USER+14) +#define TB_SETSTATE (WM_USER+17) +#define TB_GETSTATE (WM_USER+18) +#define TB_ADDBITMAP (WM_USER+19) +#define TB_ADDBUTTONSA (WM_USER+20) +#define TB_ADDBUTTONSW (WM_USER+68) +#define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS) +#define TB_HITTEST (WM_USER+69) +#define TB_INSERTBUTTONA (WM_USER+21) +#define TB_INSERTBUTTONW (WM_USER+67) +#define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON) +#define TB_DELETEBUTTON (WM_USER+22) +#define TB_GETBUTTON (WM_USER+23) +#define TB_BUTTONCOUNT (WM_USER+24) +#define TB_COMMANDTOINDEX (WM_USER+25) +#define TB_SAVERESTOREA (WM_USER+26) +#define TB_SAVERESTOREW (WM_USER+76) +#define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE) +#define TB_CUSTOMIZE (WM_USER+27) +#define TB_ADDSTRINGA (WM_USER+28) +#define TB_ADDSTRINGW (WM_USER+77) +#define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING) +#define TB_GETITEMRECT (WM_USER+29) +#define TB_BUTTONSTRUCTSIZE (WM_USER+30) +#define TB_SETBUTTONSIZE (WM_USER+31) +#define TB_SETBITMAPSIZE (WM_USER+32) +#define TB_AUTOSIZE (WM_USER+33) +#define TB_GETTOOLTIPS (WM_USER+35) +#define TB_SETTOOLTIPS (WM_USER+36) +#define TB_SETPARENT (WM_USER+37) +#define TB_SETROWS (WM_USER+39) +#define TB_GETROWS (WM_USER+40) +#define TB_GETBITMAPFLAGS (WM_USER+41) +#define TB_SETCMDID (WM_USER+42) +#define TB_CHANGEBITMAP (WM_USER+43) +#define TB_GETBITMAP (WM_USER+44) +#define TB_GETBUTTONTEXTA (WM_USER+45) +#define TB_GETBUTTONTEXTW (WM_USER+75) +#define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT) +#define TB_REPLACEBITMAP (WM_USER+46) +#define TB_SETINDENT (WM_USER+47) +#define TB_SETIMAGELIST (WM_USER+48) +#define TB_GETIMAGELIST (WM_USER+49) +#define TB_LOADIMAGES (WM_USER+50) +#define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */ +#define TB_SETHOTIMAGELIST (WM_USER+52) +#define TB_GETHOTIMAGELIST (WM_USER+53) +#define TB_SETDISABLEDIMAGELIST (WM_USER+54) +#define TB_GETDISABLEDIMAGELIST (WM_USER+55) +#define TB_SETSTYLE (WM_USER+56) +#define TB_GETSTYLE (WM_USER+57) +#define TB_GETBUTTONSIZE (WM_USER+58) +#define TB_SETBUTTONWIDTH (WM_USER+59) +#define TB_SETMAXTEXTROWS (WM_USER+60) +#define TB_GETTEXTROWS (WM_USER+61) +#define TB_GETOBJECT (WM_USER+62) +#define TB_GETBUTTONINFOW (WM_USER+63) +#define TB_GETBUTTONINFOA (WM_USER+65) +#define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO) +#define TB_SETBUTTONINFOW (WM_USER+64) +#define TB_SETBUTTONINFOA (WM_USER+66) +#define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO) +#define TB_SETDRAWTEXTFLAGS (WM_USER+70) +#define TB_GETHOTITEM (WM_USER+71) +#define TB_SETHOTITEM (WM_USER+72) +#define TB_SETANCHORHIGHLIGHT (WM_USER+73) +#define TB_GETANCHORHIGHLIGHT (WM_USER+74) +#define TB_MAPACCELERATORA (WM_USER+78) +#define TB_MAPACCELERATORW (WM_USER+90) +#define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR) +#define TB_GETINSERTMARK (WM_USER+79) +#define TB_SETINSERTMARK (WM_USER+80) +#define TB_INSERTMARKHITTEST (WM_USER+81) +#define TB_MOVEBUTTON (WM_USER+82) +#define TB_GETMAXSIZE (WM_USER+83) +#define TB_SETEXTENDEDSTYLE (WM_USER+84) +#define TB_GETEXTENDEDSTYLE (WM_USER+85) +#define TB_GETPADDING (WM_USER+86) +#define TB_SETPADDING (WM_USER+87) +#define TB_SETINSERTMARKCOLOR (WM_USER+88) +#define TB_GETINSERTMARKCOLOR (WM_USER+89) +#define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME +#define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME +#define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define TB_GETSTRINGW (WM_USER+91) +#define TB_GETSTRINGA (WM_USER+92) +#define TB_GETSTRING WINELIB_NAME_AW(TB_GETSTRING) + +/* undocumented messages in Toolbar */ +#ifdef __WINESRC__ +#define TB_UNKWN45D (WM_USER+93) +#define TB_SETHOTITEM2 (WM_USER+94) +#define TB_SETLISTGAP (WM_USER+96) +#define TB_GETIMAGELISTCOUNT (WM_USER+98) +#define TB_GETIDEALSIZE (WM_USER+99) +#define TB_UNKWN464 (WM_USER+100) +#endif + +#define TB_GETMETRICS (WM_USER+101) +#define TB_SETMETRICS (WM_USER+102) +#define TB_SETWINDOWTHEME CCM_SETWINDOWTHEME + +#define TBN_FIRST (0U-700U) +#define TBN_LAST (0U-720U) +#define TBN_GETBUTTONINFOA (TBN_FIRST-0) +#define TBN_GETBUTTONINFOW (TBN_FIRST-20) +#define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO) +#define TBN_BEGINDRAG (TBN_FIRST-1) +#define TBN_ENDDRAG (TBN_FIRST-2) +#define TBN_BEGINADJUST (TBN_FIRST-3) +#define TBN_ENDADJUST (TBN_FIRST-4) +#define TBN_RESET (TBN_FIRST-5) +#define TBN_QUERYINSERT (TBN_FIRST-6) +#define TBN_QUERYDELETE (TBN_FIRST-7) +#define TBN_TOOLBARCHANGE (TBN_FIRST-8) +#define TBN_CUSTHELP (TBN_FIRST-9) +#define TBN_DROPDOWN (TBN_FIRST-10) +#define TBN_GETOBJECT (TBN_FIRST-12) +#define TBN_HOTITEMCHANGE (TBN_FIRST-13) +#define TBN_DRAGOUT (TBN_FIRST-14) +#define TBN_DELETINGBUTTON (TBN_FIRST-15) +#define TBN_GETDISPINFOA (TBN_FIRST-16) +#define TBN_GETDISPINFOW (TBN_FIRST-17) +#define TBN_GETDISPINFO WINELIB_NAME_AW(TBN_GETDISPINFO) +#define TBN_GETINFOTIPA (TBN_FIRST-18) +#define TBN_GETINFOTIPW (TBN_FIRST-19) +#define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP) +#define TBN_RESTORE (TBN_FIRST-21) +#define TBN_SAVE (TBN_FIRST-22) +#define TBN_INITCUSTOMIZE (TBN_FIRST-23) +#define TBN_WRAPHOTITEM (TBN_FIRST-24) /* this is undocumented and the name is a guess */ +#define TBNRF_HIDEHELP 0x00000001 + + +/* Return values from TBN_DROPDOWN */ +#define TBDDRET_DEFAULT 0 +#define TBDDRET_NODEFAULT 1 +#define TBDDRET_TREATPRESSED 2 + +typedef struct _NMTBCUSTOMDRAW +{ + NMCUSTOMDRAW nmcd; + HBRUSH hbrMonoDither; + HBRUSH hbrLines; + HPEN hpenLines; + COLORREF clrText; + COLORREF clrMark; + COLORREF clrTextHighlight; + COLORREF clrBtnFace; + COLORREF clrBtnHighlight; + COLORREF clrHighlightHotTrack; + RECT rcText; + int nStringBkMode; + int nHLStringBkMode; + int iListGap; +} NMTBCUSTOMDRAW, *LPNMTBCUSTOMDRAW; + +/* return flags for Toolbar NM_CUSTOMDRAW notifications */ +#define TBCDRF_NOEDGES 0x00010000 /* Don't draw button edges */ +#define TBCDRF_HILITEHOTTRACK 0x00020000 /* Use color of the button bkgnd */ + /* when hottracked */ +#define TBCDRF_NOOFFSET 0x00040000 /* No offset button if pressed */ +#define TBCDRF_NOMARK 0x00080000 /* Don't draw default highlight */ + /* for TBSTATE_MARKED */ +#define TBCDRF_NOETCHEDEFFECT 0x00100000 /* No etched effect for */ + /* disabled items */ +#define TBCDRF_BLENDICON 0x00200000 /* ILD_BLEND50 on the icon image */ +#define TBCDRF_NOBACKGROUND 0x00400000 /* ILD_BLEND50 on the icon image */ +#define TBCDRF_USECDCOLORS 0x00800000 + + +/* This is just for old CreateToolbar. */ +/* Don't use it in new programs. */ +typedef struct _OLDTBBUTTON { + INT iBitmap; + INT idCommand; + BYTE fsState; + BYTE fsStyle; + BYTE bReserved[2]; + DWORD dwData; +} OLDTBBUTTON, *POLDTBBUTTON, *LPOLDTBBUTTON; +typedef const OLDTBBUTTON *LPCOLDTBBUTTON; + + +typedef struct _TBBUTTON { + INT iBitmap; + INT idCommand; + BYTE fsState; + BYTE fsStyle; +#ifdef _WIN64 + BYTE bReserved[6]; +#else + BYTE bReserved[2]; +#endif + DWORD_PTR dwData; + INT_PTR iString; +} TBBUTTON, *PTBBUTTON, *LPTBBUTTON; +typedef const TBBUTTON *LPCTBBUTTON; + + +typedef struct _COLORMAP { + COLORREF from; + COLORREF to; +} COLORMAP, *LPCOLORMAP; + + +typedef struct tagTBADDBITMAP { + HINSTANCE hInst; + UINT_PTR nID; +} TBADDBITMAP, *LPTBADDBITMAP; + +#define HINST_COMMCTRL ((HINSTANCE)-1) +#define IDB_STD_SMALL_COLOR 0 +#define IDB_STD_LARGE_COLOR 1 +#define IDB_VIEW_SMALL_COLOR 4 +#define IDB_VIEW_LARGE_COLOR 5 +#define IDB_HIST_SMALL_COLOR 8 +#define IDB_HIST_LARGE_COLOR 9 + +#define STD_CUT 0 +#define STD_COPY 1 +#define STD_PASTE 2 +#define STD_UNDO 3 +#define STD_REDOW 4 +#define STD_DELETE 5 +#define STD_FILENEW 6 +#define STD_FILEOPEN 7 +#define STD_FILESAVE 8 +#define STD_PRINTPRE 9 +#define STD_PROPERTIES 10 +#define STD_HELP 11 +#define STD_FIND 12 +#define STD_REPLACE 13 +#define STD_PRINT 14 + +#define VIEW_LARGEICONS 0 +#define VIEW_SMALLICONS 1 +#define VIEW_LIST 2 +#define VIEW_DETAILS 3 +#define VIEW_SORTNAME 4 +#define VIEW_SORTSIZE 5 +#define VIEW_SORTDATE 6 +#define VIEW_SORTTYPE 7 +#define VIEW_PARENTFOLDER 8 +#define VIEW_NETCONNECT 9 +#define VIEW_NETDISCONNECT 10 +#define VIEW_NEWFOLDER 11 +#define VIEW_VIEWMENU 12 + +#define HIST_BACK 0 +#define HIST_FORWARD 1 +#define HIST_FAVORITES 2 +#define HIST_ADDTOFAVORITES 3 +#define HIST_VIEWTREE 4 + +typedef struct tagTBSAVEPARAMSA { + HKEY hkr; + LPCSTR pszSubKey; + LPCSTR pszValueName; +} TBSAVEPARAMSA, *LPTBSAVEPARAMSA; + +typedef struct tagTBSAVEPARAMSW { + HKEY hkr; + LPCWSTR pszSubKey; + LPCWSTR pszValueName; +} TBSAVEPARAMSW, *LPTBSAVEPARAMSW; + +#define TBSAVEPARAMS WINELIB_NAME_AW(TBSAVEPARAMS) +#define LPTBSAVEPARAMS WINELIB_NAME_AW(LPTBSAVEPARAMS) + +typedef struct +{ + UINT cbSize; + DWORD dwMask; + INT idCommand; + INT iImage; + BYTE fsState; + BYTE fsStyle; + WORD cx; + DWORD_PTR lParam; + LPSTR pszText; + INT cchText; +} TBBUTTONINFOA, *LPTBBUTTONINFOA; + +typedef struct +{ + UINT cbSize; + DWORD dwMask; + INT idCommand; + INT iImage; + BYTE fsState; + BYTE fsStyle; + WORD cx; + DWORD_PTR lParam; + LPWSTR pszText; + INT cchText; +} TBBUTTONINFOW, *LPTBBUTTONINFOW; + +#define TBBUTTONINFO WINELIB_NAME_AW(TBBUTTONINFO) +#define LPTBBUTTONINFO WINELIB_NAME_AW(LPTBBUTTONINFO) + +typedef struct tagNMTBHOTITEM +{ + NMHDR hdr; + int idOld; + int idNew; + DWORD dwFlags; +} NMTBHOTITEM, *LPNMTBHOTITEM; + +typedef struct tagNMTBGETINFOTIPA +{ + NMHDR hdr; + LPSTR pszText; + INT cchTextMax; + INT iItem; + LPARAM lParam; +} NMTBGETINFOTIPA, *LPNMTBGETINFOTIPA; + +typedef struct tagNMTBGETINFOTIPW +{ + NMHDR hdr; + LPWSTR pszText; + INT cchTextMax; + INT iItem; + LPARAM lParam; +} NMTBGETINFOTIPW, *LPNMTBGETINFOTIPW; + +#define NMTBGETINFOTIP WINELIB_NAME_AW(NMTBGETINFOTIP) +#define LPNMTBGETINFOTIP WINELIB_NAME_AW(LPNMTBGETINFOTIP) + +typedef struct +{ + NMHDR hdr; + DWORD dwMask; + int idCommand; + DWORD_PTR lParam; + int iImage; + LPSTR pszText; + int cchText; +} NMTBDISPINFOA, *LPNMTBDISPINFOA; + +typedef struct +{ + NMHDR hdr; + DWORD dwMask; + int idCommand; + DWORD_PTR lParam; + int iImage; + LPWSTR pszText; + int cchText; +} NMTBDISPINFOW, *LPNMTBDISPINFOW; + +#define NMTBDISPINFO WINELIB_NAME_AW(NMTBDISPINFO) +#define LPNMTBDISPINFO WINELIB_NAME_AW(LPNMTBDISPINFO) + +/* contents of dwMask in the NMTBDISPINFO structure */ +#define TBNF_IMAGE 0x00000001 +#define TBNF_TEXT 0x00000002 +#define TBNF_DI_SETITEM 0x10000000 + + +typedef struct tagNMTOOLBARA +{ + NMHDR hdr; + INT iItem; + TBBUTTON tbButton; + INT cchText; + LPSTR pszText; + RECT rcButton; /* Version 5.80 */ +} NMTOOLBARA, *LPNMTOOLBARA, TBNOTIFYA, *LPTBNOTIFYA; + +typedef struct tagNMTOOLBARW +{ + NMHDR hdr; + INT iItem; + TBBUTTON tbButton; + INT cchText; + LPWSTR pszText; + RECT rcButton; /* Version 5.80 */ +} NMTOOLBARW, *LPNMTOOLBARW, TBNOTIFYW, *LPTBNOTIFYW; + +#define NMTOOLBAR WINELIB_NAME_AW(NMTOOLBAR) +#define LPNMTOOLBAR WINELIB_NAME_AW(LPNMTOOLBAR) +#define TBNOTIFY WINELIB_NAME_AW(TBNOTIFY) +#define LPTBNOTIFY WINELIB_NAME_AW(LPTBNOTIFY) + +typedef struct +{ + HINSTANCE hInstOld; + UINT_PTR nIDOld; + HINSTANCE hInstNew; + UINT_PTR nIDNew; + INT nButtons; +} TBREPLACEBITMAP, *LPTBREPLACEBITMAP; + +#define HICF_OTHER 0x00000000 +#define HICF_MOUSE 0x00000001 /* Triggered by mouse */ +#define HICF_ARROWKEYS 0x00000002 /* Triggered by arrow keys */ +#define HICF_ACCELERATOR 0x00000004 /* Triggered by accelerator */ +#define HICF_DUPACCEL 0x00000008 /* This accelerator is not unique */ +#define HICF_ENTERING 0x00000010 /* idOld is invalid */ +#define HICF_LEAVING 0x00000020 /* idNew is invalid */ +#define HICF_RESELECT 0x00000040 /* hot item reselected */ +#define HICF_LMOUSE 0x00000080 /* left mouse button selected */ +#define HICF_TOGGLEDROPDOWN 0x00000100 /* Toggle button's dropdown state */ + +typedef struct +{ + int iButton; + DWORD dwFlags; +} TBINSERTMARK, *LPTBINSERTMARK; +#define TBIMHT_AFTER 0x00000001 /* TRUE = insert After iButton, otherwise before */ +#define TBIMHT_BACKGROUND 0x00000002 /* TRUE if and only if missed buttons completely */ + +typedef struct tagNMTBSAVE +{ + NMHDR hdr; + DWORD* pData; + DWORD* pCurrent; + UINT cbData; + int iItem; + int cButtons; + TBBUTTON tbButton; +} NMTBSAVE, *LPNMTBSAVE; + +typedef struct tagNMTBRESTORE +{ + NMHDR hdr; + DWORD* pData; + DWORD* pCurrent; + UINT cbData; + int iItem; + int cButtons; + int cbBytesPerRecord; + TBBUTTON tbButton; +} NMTBRESTORE, *LPNMTBRESTORE; + +#define TBMF_PAD 0x00000001 +#define TBMF_BARPAD 0x00000002 +#define TBMF_BUTTONSPACING 0x00000004 + +typedef struct +{ + UINT cbSize; + DWORD dwMask; + INT cxPad; + INT cyPad; + INT cxBarPad; + INT cyBarPad; + INT cxButtonSpacing; + INT cyButtonSpacing; +} TBMETRICS, *LPTBMETRICS; + +/* these are undocumented and the names are guesses */ +typedef struct +{ + NMHDR hdr; + HWND hwndDialog; +} NMTBINITCUSTOMIZE; + +typedef struct +{ + NMHDR hdr; + INT idNew; + INT iDirection; /* left is -1, right is 1 */ + DWORD dwReason; /* HICF_* */ +} NMTBWRAPHOTITEM; + + +HWND WINAPI +CreateToolbar(HWND, DWORD, UINT, INT, HINSTANCE, + UINT, LPCTBBUTTON, INT); + +HWND WINAPI +CreateToolbarEx(HWND, DWORD, UINT, INT, + HINSTANCE, UINT_PTR, LPCTBBUTTON, + INT, INT, INT, INT, INT, UINT); + +HBITMAP WINAPI +CreateMappedBitmap (HINSTANCE, INT_PTR, UINT, LPCOLORMAP, INT); + + +/* Tool tips */ + +#define TOOLTIPS_CLASSA "tooltips_class32" +#if defined(__GNUC__) +# define TOOLTIPS_CLASSW (const WCHAR []){ 't','o','o','l','t','i','p','s','_', \ + 'c','l','a','s','s','3','2',0 } +#elif defined(_MSC_VER) +# define TOOLTIPS_CLASSW L"tooltips_class32" +#else +static const WCHAR TOOLTIPS_CLASSW[] = { 't','o','o','l','t','i','p','s','_', + 'c','l','a','s','s','3','2',0 }; +#endif +#define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS) + +#define INFOTIPSIZE 1024 + + +#define TTF_IDISHWND 0x0001 +#define TTF_CENTERTIP 0x0002 +#define TTF_RTLREADING 0x0004 +#define TTF_SUBCLASS 0x0010 +#define TTF_TRACK 0x0020 +#define TTF_ABSOLUTE 0x0080 +#define TTF_TRANSPARENT 0x0100 +#define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */ + + +#define TTDT_AUTOMATIC 0 +#define TTDT_RESHOW 1 +#define TTDT_AUTOPOP 2 +#define TTDT_INITIAL 3 + + +#define TTI_NONE 0 +#define TTI_INFO 1 +#define TTI_WARNING 2 +#define TTI_ERROR 3 + + +#define TTM_ACTIVATE (WM_USER+1) +#define TTM_SETDELAYTIME (WM_USER+3) +#define TTM_ADDTOOLA (WM_USER+4) +#define TTM_ADDTOOLW (WM_USER+50) +#define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL) +#define TTM_DELTOOLA (WM_USER+5) +#define TTM_DELTOOLW (WM_USER+51) +#define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL) +#define TTM_NEWTOOLRECTA (WM_USER+6) +#define TTM_NEWTOOLRECTW (WM_USER+52) +#define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT) +#define TTM_RELAYEVENT (WM_USER+7) +#define TTM_GETTOOLINFOA (WM_USER+8) +#define TTM_GETTOOLINFOW (WM_USER+53) +#define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO) +#define TTM_SETTOOLINFOA (WM_USER+9) +#define TTM_SETTOOLINFOW (WM_USER+54) +#define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO) +#define TTM_HITTESTA (WM_USER+10) +#define TTM_HITTESTW (WM_USER+55) +#define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST) +#define TTM_GETTEXTA (WM_USER+11) +#define TTM_GETTEXTW (WM_USER+56) +#define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT) +#define TTM_UPDATETIPTEXTA (WM_USER+12) +#define TTM_UPDATETIPTEXTW (WM_USER+57) +#define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT) +#define TTM_GETTOOLCOUNT (WM_USER+13) +#define TTM_ENUMTOOLSA (WM_USER+14) +#define TTM_ENUMTOOLSW (WM_USER+58) +#define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS) +#define TTM_GETCURRENTTOOLA (WM_USER+15) +#define TTM_GETCURRENTTOOLW (WM_USER+59) +#define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL) +#define TTM_WINDOWFROMPOINT (WM_USER+16) +#define TTM_TRACKACTIVATE (WM_USER+17) +#define TTM_TRACKPOSITION (WM_USER+18) +#define TTM_SETTIPBKCOLOR (WM_USER+19) +#define TTM_SETTIPTEXTCOLOR (WM_USER+20) +#define TTM_GETDELAYTIME (WM_USER+21) +#define TTM_GETTIPBKCOLOR (WM_USER+22) +#define TTM_GETTIPTEXTCOLOR (WM_USER+23) +#define TTM_SETMAXTIPWIDTH (WM_USER+24) +#define TTM_GETMAXTIPWIDTH (WM_USER+25) +#define TTM_SETMARGIN (WM_USER+26) +#define TTM_GETMARGIN (WM_USER+27) +#define TTM_POP (WM_USER+28) +#define TTM_UPDATE (WM_USER+29) +#define TTM_GETBUBBLESIZE (WM_USER+30) +#define TTM_ADJUSTRECT (WM_USER+31) +#define TTM_SETTITLEA (WM_USER+32) +#define TTM_SETTITLEW (WM_USER+33) +#define TTM_SETTITLE WINELIB_NAME_AW(TTM_SETTITLE) +#define TTM_POPUP (WM_USER+34) +#define TTM_GETTITLE (WM_USER+35) +#define TTM_SETWINDOWTHEME CCM_SETWINDOWTHEME + + +#define TTN_FIRST (0U-520U) +#define TTN_LAST (0U-549U) +#define TTN_GETDISPINFOA (TTN_FIRST-0) +#define TTN_GETDISPINFOW (TTN_FIRST-10) +#define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO) +#define TTN_SHOW (TTN_FIRST-1) +#define TTN_POP (TTN_FIRST-2) + +#define TTN_NEEDTEXT TTN_GETDISPINFO +#define TTN_NEEDTEXTA TTN_GETDISPINFOA +#define TTN_NEEDTEXTW TTN_GETDISPINFOW + +typedef struct tagTOOLINFOA { + UINT cbSize; + UINT uFlags; + HWND hwnd; + UINT_PTR uId; + RECT rect; + HINSTANCE hinst; + LPSTR lpszText; + LPARAM lParam; + void *lpReserved; +} TTTOOLINFOA, *LPTOOLINFOA, *PTOOLINFOA, *LPTTTOOLINFOA; + +typedef struct tagTOOLINFOW { + UINT cbSize; + UINT uFlags; + HWND hwnd; + UINT_PTR uId; + RECT rect; + HINSTANCE hinst; + LPWSTR lpszText; + LPARAM lParam; + void *lpReserved; +} TTTOOLINFOW, *LPTOOLINFOW, *PTOOLINFOW, *LPTTTOOLINFOW; + +#define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO) +#define TOOLINFO WINELIB_NAME_AW(TTTOOLINFO) +#define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO) +#define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO) +#define LPTOOLINFO WINELIB_NAME_AW(LPTOOLINFO) + +#define TTTOOLINFOA_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText) +#define TTTOOLINFOW_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText) +#define TTTOOLINFO_V1_SIZE CCSIZEOF_STRUCT(WINELIB_NAME_AW(TTTOOLINFO), lpszText) +#define TTTOOLINFOA_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lParam) +#define TTTOOLINFOW_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lParam) +#define TTTOOLINFOA_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpReserved) +#define TTTOOLINFOW_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpReserved) + +typedef struct _TT_HITTESTINFOA +{ + HWND hwnd; + POINT pt; + TTTOOLINFOA ti; +} TTHITTESTINFOA, *LPTTHITTESTINFOA; +#define LPHITTESTINFOA LPTTHITTESTINFOA + +typedef struct _TT_HITTESTINFOW +{ + HWND hwnd; + POINT pt; + TTTOOLINFOW ti; +} TTHITTESTINFOW, *LPTTHITTESTINFOW; +#define LPHITTESTINFOW LPTTHITTESTINFOW + +#define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO) +#define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO) +#define LPHITTESTINFO WINELIB_NAME_AW(LPHITTESTINFO) + +typedef struct tagNMTTDISPINFOA +{ + NMHDR hdr; + LPSTR lpszText; + CHAR szText[80]; + HINSTANCE hinst; + UINT uFlags; + LPARAM lParam; +} NMTTDISPINFOA, *LPNMTTDISPINFOA; + +typedef struct tagNMTTDISPINFOW +{ + NMHDR hdr; + LPWSTR lpszText; + WCHAR szText[80]; + HINSTANCE hinst; + UINT uFlags; + LPARAM lParam; +} NMTTDISPINFOW, *LPNMTTDISPINFOW; + +#define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO) +#define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO) + +#define NMTTDISPINFO_V1_SIZEA CCSIZEOF_STRUCT(NMTTDISPINFOA, uFlags) +#define NMTTDISPINFO_V1_SIZEW CCSIZEOF_STRUCT(NMTTDISPINFOW, uFlags) +#define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE) + +typedef struct _TTGETTITLE +{ + DWORD dwSize; + UINT uTitleBitmap; + UINT cch; + WCHAR* pszTitle; +} TTGETTITLE, *PTTGETTITLE; + +#define TOOLTIPTEXTW NMTTDISPINFOW +#define TOOLTIPTEXTA NMTTDISPINFOA +#define TOOLTIPTEXT NMTTDISPINFO +#define LPTOOLTIPTEXTW LPNMTTDISPINFOW +#define LPTOOLTIPTEXTA LPNMTTDISPINFOA +#define LPTOOLTIPTEXT LPNMTTDISPINFO + + +/* Rebar control */ + +#define REBARCLASSNAMEA "ReBarWindow32" +#if defined(__GNUC__) +# define REBARCLASSNAMEW (const WCHAR []){ 'R','e','B','a','r', \ + 'W','i','n','d','o','w','3','2',0 } +#elif defined(_MSC_VER) +# define REBARCLASSNAMEW L"ReBarWindow32" +#else +static const WCHAR REBARCLASSNAMEW[] = { 'R','e','B','a','r', + 'W','i','n','d','o','w','3','2',0 }; +#endif +#define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME) + + +#define RBIM_IMAGELIST 0x00000001 + +#define RBBIM_STYLE 0x00000001 +#define RBBIM_COLORS 0x00000002 +#define RBBIM_TEXT 0x00000004 +#define RBBIM_IMAGE 0x00000008 +#define RBBIM_CHILD 0x00000010 +#define RBBIM_CHILDSIZE 0x00000020 +#define RBBIM_SIZE 0x00000040 +#define RBBIM_BACKGROUND 0x00000080 +#define RBBIM_ID 0x00000100 +#define RBBIM_IDEALSIZE 0x00000200 +#define RBBIM_LPARAM 0x00000400 +#define RBBIM_HEADERSIZE 0x00000800 + +#define RBBS_BREAK 0x00000001 +#define RBBS_FIXEDSIZE 0x00000002 +#define RBBS_CHILDEDGE 0x00000004 +#define RBBS_HIDDEN 0x00000008 +#define RBBS_NOVERT 0x00000010 +#define RBBS_FIXEDBMP 0x00000020 +#define RBBS_VARIABLEHEIGHT 0x00000040 +#define RBBS_GRIPPERALWAYS 0x00000080 +#define RBBS_NOGRIPPER 0x00000100 +#define RBBS_USECHEVRON 0x00000200 +#define RBBS_HIDETITLE 0x00000400 +#define RBBS_TOPALIGN 0x00000800 + +#define RBNM_ID 0x00000001 +#define RBNM_STYLE 0x00000002 +#define RBNM_LPARAM 0x00000004 + +#define RBHT_NOWHERE 0x0001 +#define RBHT_CAPTION 0x0002 +#define RBHT_CLIENT 0x0003 +#define RBHT_GRABBER 0x0004 +#define RBHT_CHEVRON 0x0008 + +#define RB_INSERTBANDA (WM_USER+1) +#define RB_INSERTBANDW (WM_USER+10) +#define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND) +#define RB_DELETEBAND (WM_USER+2) +#define RB_GETBARINFO (WM_USER+3) +#define RB_SETBARINFO (WM_USER+4) +#define RB_SETBANDINFOA (WM_USER+6) +#define RB_SETBANDINFOW (WM_USER+11) +#define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO) +#define RB_SETPARENT (WM_USER+7) +#define RB_HITTEST (WM_USER+8) +#define RB_GETRECT (WM_USER+9) +#define RB_GETBANDCOUNT (WM_USER+12) +#define RB_GETROWCOUNT (WM_USER+13) +#define RB_GETROWHEIGHT (WM_USER+14) +#define RB_IDTOINDEX (WM_USER+16) +#define RB_GETTOOLTIPS (WM_USER+17) +#define RB_SETTOOLTIPS (WM_USER+18) +#define RB_SETBKCOLOR (WM_USER+19) +#define RB_GETBKCOLOR (WM_USER+20) +#define RB_SETTEXTCOLOR (WM_USER+21) +#define RB_GETTEXTCOLOR (WM_USER+22) +#define RB_SIZETORECT (WM_USER+23) +#define RB_BEGINDRAG (WM_USER+24) +#define RB_ENDDRAG (WM_USER+25) +#define RB_DRAGMOVE (WM_USER+26) +#define RB_GETBARHEIGHT (WM_USER+27) +#define RB_GETBANDINFOW (WM_USER+28) +#define RB_GETBANDINFOA (WM_USER+29) +#define RB_GETBANDINFO WINELIB_NAME_AW(RB_GETBANDINFO) +#define RB_MINIMIZEBAND (WM_USER+30) +#define RB_MAXIMIZEBAND (WM_USER+31) +#define RB_GETBANDBORDERS (WM_USER+34) +#define RB_SHOWBAND (WM_USER+35) +#define RB_SETPALETTE (WM_USER+37) +#define RB_GETPALETTE (WM_USER+38) +#define RB_MOVEBAND (WM_USER+39) +#define RB_GETBANDMARGINS (WM_USER+40) +#define RB_PUSHCHEVRON (WM_USER+43) +#define RB_GETDROPTARGET CCM_GETDROPTARGET +#define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME +#define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME +#define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define RB_SETWINDOWTHEME CCM_SETWINDOWTHEME + +#define RBN_FIRST (0U-831U) +#define RBN_LAST (0U-859U) +#define RBN_HEIGHTCHANGE (RBN_FIRST-0) +#define RBN_GETOBJECT (RBN_FIRST-1) +#define RBN_LAYOUTCHANGED (RBN_FIRST-2) +#define RBN_AUTOSIZE (RBN_FIRST-3) +#define RBN_BEGINDRAG (RBN_FIRST-4) +#define RBN_ENDDRAG (RBN_FIRST-5) +#define RBN_DELETINGBAND (RBN_FIRST-6) +#define RBN_DELETEDBAND (RBN_FIRST-7) +#define RBN_CHILDSIZE (RBN_FIRST-8) +#define RBN_CHEVRONPUSHED (RBN_FIRST-10) +#define RBN_MINMAX (RBN_FIRST-21) +#define RBN_AUTOBREAK (RBN_FIRST-22) + +typedef struct tagREBARINFO +{ + UINT cbSize; + UINT fMask; + HIMAGELIST himl; +} REBARINFO, *LPREBARINFO; + +typedef struct tagREBARBANDINFOA +{ + UINT cbSize; + UINT fMask; + UINT fStyle; + COLORREF clrFore; + COLORREF clrBack; + LPSTR lpText; + UINT cch; + INT iImage; + HWND hwndChild; + UINT cxMinChild; + UINT cyMinChild; + UINT cx; + HBITMAP hbmBack; + UINT wID; + UINT cyChild; + UINT cyMaxChild; + UINT cyIntegral; + UINT cxIdeal; + LPARAM lParam; + UINT cxHeader; + /* _WIN32_WINNT >= 0x0600 */ + RECT rcChevronLocation; + UINT uChevronState; +} REBARBANDINFOA, *LPREBARBANDINFOA; + +typedef REBARBANDINFOA const *LPCREBARBANDINFOA; + +typedef struct tagREBARBANDINFOW +{ + UINT cbSize; + UINT fMask; + UINT fStyle; + COLORREF clrFore; + COLORREF clrBack; + LPWSTR lpText; + UINT cch; + INT iImage; + HWND hwndChild; + UINT cxMinChild; + UINT cyMinChild; + UINT cx; + HBITMAP hbmBack; + UINT wID; + UINT cyChild; + UINT cyMaxChild; + UINT cyIntegral; + UINT cxIdeal; + LPARAM lParam; + UINT cxHeader; + /* _WIN32_WINNT >= 0x0600 */ + RECT rcChevronLocation; + UINT uChevronState; +} REBARBANDINFOW, *LPREBARBANDINFOW; + +typedef REBARBANDINFOW const *LPCREBARBANDINFOW; + +#define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO) +#define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO) +#define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO) + +#define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, wID) +#define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID) +#define REBARBANDINFO_V3_SIZE CCSIZEOF_STRUCT(WINELIB_NAME_AW(REBARBANDINFO), wID) +#define REBARBANDINFOA_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, cxHeader) +#define REBARBANDINFOW_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, cxHeader) +#define REBARBANDINFO_V6_SIZE CCSIZEOF_STRUCT(WINELIB_NAME_AW(REBARBANDINFO), cxHeader) + +typedef struct tagNMREBARCHILDSIZE +{ + NMHDR hdr; + UINT uBand; + UINT wID; + RECT rcChild; + RECT rcBand; +} NMREBARCHILDSIZE, *LPNMREBARCHILDSIZE; + +typedef struct tagNMREBAR +{ + NMHDR hdr; + DWORD dwMask; + UINT uBand; + UINT fStyle; + UINT wID; + LPARAM lParam; +} NMREBAR, *LPNMREBAR; + +typedef struct tagNMRBAUTOSIZE +{ + NMHDR hdr; + BOOL fChanged; + RECT rcTarget; + RECT rcActual; +} NMRBAUTOSIZE, *LPNMRBAUTOSIZE; + +typedef struct tagNMREBARCHEVRON +{ + NMHDR hdr; + UINT uBand; + UINT wID; + LPARAM lParam; + RECT rc; + LPARAM lParamNM; +} NMREBARCHEVRON, *LPNMREBARCHEVRON; + +typedef struct _RB_HITTESTINFO +{ + POINT pt; + UINT flags; + INT iBand; +} RBHITTESTINFO, *LPRBHITTESTINFO; + +#define RBAB_AUTOSIZE 0x0001 +#define RBAB_ADDBAND 0x0002 + +typedef struct tagNMREBARAUTOBREAK +{ + NMHDR hdr; + UINT uBand; + UINT wID; + LPARAM lParam; + UINT uMsg; + UINT fStyleCurrent; + BOOL fAutoBreak; +} NMREBARAUTOBREAK, *LPNMREBARAUTOBREAK; + + +/* Trackbar control */ + +#define TRACKBAR_CLASSA "msctls_trackbar32" +#if defined(__GNUC__) +# define TRACKBAR_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \ + 't','r','a','c','k','b','a','r','3','2',0 } +#elif defined(_MSC_VER) +# define TRACKBAR_CLASSW L"msctls_trackbar32" +#else +static const WCHAR TRACKBAR_CLASSW[] = { 'm','s','c','t','l','s','_', + 't','r','a','c','k','b','a','r','3','2',0 }; +#endif +#define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS) + + +#define TBTS_TOP 0 +#define TBTS_LEFT 1 +#define TBTS_BOTTOM 2 +#define TBTS_RIGHT 3 + +#define TB_LINEUP 0 +#define TB_LINEDOWN 1 +#define TB_PAGEUP 2 +#define TB_PAGEDOWN 3 +#define TB_THUMBPOSITION 4 +#define TB_THUMBTRACK 5 +#define TB_TOP 6 +#define TB_BOTTOM 7 +#define TB_ENDTRACK 8 + +#define TBCD_TICS 0x0001 +#define TBCD_THUMB 0x0002 +#define TBCD_CHANNEL 0x0003 + +#define TBM_GETPOS (WM_USER) +#define TBM_GETRANGEMIN (WM_USER+1) +#define TBM_GETRANGEMAX (WM_USER+2) +#define TBM_GETTIC (WM_USER+3) +#define TBM_SETTIC (WM_USER+4) +#define TBM_SETPOS (WM_USER+5) +#define TBM_SETRANGE (WM_USER+6) +#define TBM_SETRANGEMIN (WM_USER+7) +#define TBM_SETRANGEMAX (WM_USER+8) +#define TBM_CLEARTICS (WM_USER+9) +#define TBM_SETSEL (WM_USER+10) +#define TBM_SETSELSTART (WM_USER+11) +#define TBM_SETSELEND (WM_USER+12) +#define TBM_GETPTICS (WM_USER+14) +#define TBM_GETTICPOS (WM_USER+15) +#define TBM_GETNUMTICS (WM_USER+16) +#define TBM_GETSELSTART (WM_USER+17) +#define TBM_GETSELEND (WM_USER+18) +#define TBM_CLEARSEL (WM_USER+19) +#define TBM_SETTICFREQ (WM_USER+20) +#define TBM_SETPAGESIZE (WM_USER+21) +#define TBM_GETPAGESIZE (WM_USER+22) +#define TBM_SETLINESIZE (WM_USER+23) +#define TBM_GETLINESIZE (WM_USER+24) +#define TBM_GETTHUMBRECT (WM_USER+25) +#define TBM_GETCHANNELRECT (WM_USER+26) +#define TBM_SETTHUMBLENGTH (WM_USER+27) +#define TBM_GETTHUMBLENGTH (WM_USER+28) +#define TBM_SETTOOLTIPS (WM_USER+29) +#define TBM_GETTOOLTIPS (WM_USER+30) +#define TBM_SETTIPSIDE (WM_USER+31) +#define TBM_SETBUDDY (WM_USER+32) +#define TBM_GETBUDDY (WM_USER+33) +#define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT + + +/* Pager control */ + +#define WC_PAGESCROLLERA "SysPager" +#if defined(__GNUC__) +# define WC_PAGESCROLLERW (const WCHAR []){ 'S','y','s','P','a','g','e','r',0 } +#elif defined(_MSC_VER) +# define WC_PAGESCROLLERW L"SysPager" +#else +static const WCHAR WC_PAGESCROLLERW[] = { 'S','y','s','P','a','g','e','r',0 }; +#endif +#define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER) + + +#define PGF_INVISIBLE 0 +#define PGF_NORMAL 1 +#define PGF_GRAYED 2 +#define PGF_DEPRESSED 4 +#define PGF_HOT 8 + +#define PGB_TOPORLEFT 0 +#define PGB_BOTTOMORRIGHT 1 + +/* only used with PGN_SCROLL */ +#define PGF_SCROLLUP 1 +#define PGF_SCROLLDOWN 2 +#define PGF_SCROLLLEFT 4 +#define PGF_SCROLLRIGHT 8 + +#define PGK_SHIFT 1 +#define PGK_CONTROL 2 +#define PGK_MENU 4 + +/* only used with PGN_CALCSIZE */ +#define PGF_CALCWIDTH 1 +#define PGF_CALCHEIGHT 2 + +#define PGM_FIRST 0x1400 +#define PGM_SETCHILD (PGM_FIRST+1) +#define PGM_RECALCSIZE (PGM_FIRST+2) +#define PGM_FORWARDMOUSE (PGM_FIRST+3) +#define PGM_SETBKCOLOR (PGM_FIRST+4) +#define PGM_GETBKCOLOR (PGM_FIRST+5) +#define PGM_SETBORDER (PGM_FIRST+6) +#define PGM_GETBORDER (PGM_FIRST+7) +#define PGM_SETPOS (PGM_FIRST+8) +#define PGM_GETPOS (PGM_FIRST+9) +#define PGM_SETBUTTONSIZE (PGM_FIRST+10) +#define PGM_GETBUTTONSIZE (PGM_FIRST+11) +#define PGM_GETBUTTONSTATE (PGM_FIRST+12) +#define PGM_GETDROPTARGET CCM_GETDROPTARGET + +#define PGN_FIRST (0U-900U) +#define PGN_LAST (0U-950U) +#define PGN_SCROLL (PGN_FIRST-1) +#define PGN_CALCSIZE (PGN_FIRST-2) + +#include + +typedef struct +{ + NMHDR hdr; + WORD fwKeys; + RECT rcParent; + INT iDir; + INT iXpos; + INT iYpos; + INT iScroll; +} NMPGSCROLL, *LPNMPGSCROLL; + +#include + +typedef struct +{ + NMHDR hdr; + DWORD dwFlag; + INT iWidth; + INT iHeight; +} NMPGCALCSIZE, *LPNMPGCALCSIZE; + + +/* Treeview control */ + +#define WC_TREEVIEWA "SysTreeView32" +#if defined(__GNUC__) +# define WC_TREEVIEWW (const WCHAR []){ 'S','y','s', \ + 'T','r','e','e','V','i','e','w','3','2',0 } +#elif defined(_MSC_VER) +# define WC_TREEVIEWW L"SysTreeView32" +#else +static const WCHAR WC_TREEVIEWW[] = { 'S','y','s', + 'T','r','e','e','V','i','e','w','3','2',0 }; +#endif +#define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW) + +#define TVSIL_NORMAL 0 +#define TVSIL_STATE 2 + +#define TV_FIRST 0x1100 +#define TVM_INSERTITEMA (TV_FIRST+0) +#define TVM_INSERTITEMW (TV_FIRST+50) +#define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM) +#define TVM_DELETEITEM (TV_FIRST+1) +#define TVM_EXPAND (TV_FIRST+2) +#define TVM_GETITEMRECT (TV_FIRST+4) +#define TVM_GETCOUNT (TV_FIRST+5) +#define TVM_GETINDENT (TV_FIRST+6) +#define TVM_SETINDENT (TV_FIRST+7) +#define TVM_GETIMAGELIST (TV_FIRST+8) +#define TVM_SETIMAGELIST (TV_FIRST+9) +#define TVM_GETNEXTITEM (TV_FIRST+10) +#define TVM_SELECTITEM (TV_FIRST+11) +#define TVM_GETITEMA (TV_FIRST+12) +#define TVM_GETITEMW (TV_FIRST+62) +#define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM) +#define TVM_SETITEMA (TV_FIRST+13) +#define TVM_SETITEMW (TV_FIRST+63) +#define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM) +#define TVM_EDITLABELA (TV_FIRST+14) +#define TVM_EDITLABELW (TV_FIRST+65) +#define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL) +#define TVM_GETEDITCONTROL (TV_FIRST+15) +#define TVM_GETVISIBLECOUNT (TV_FIRST+16) +#define TVM_HITTEST (TV_FIRST+17) +#define TVM_CREATEDRAGIMAGE (TV_FIRST+18) +#define TVM_SORTCHILDREN (TV_FIRST+19) +#define TVM_ENSUREVISIBLE (TV_FIRST+20) +#define TVM_SORTCHILDRENCB (TV_FIRST+21) +#define TVM_ENDEDITLABELNOW (TV_FIRST+22) +#define TVM_GETISEARCHSTRINGA (TV_FIRST+23) +#define TVM_GETISEARCHSTRINGW (TV_FIRST+64) +#define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING) +#define TVM_SETTOOLTIPS (TV_FIRST+24) +#define TVM_GETTOOLTIPS (TV_FIRST+25) +#define TVM_SETINSERTMARK (TV_FIRST+26) +#define TVM_SETITEMHEIGHT (TV_FIRST+27) +#define TVM_GETITEMHEIGHT (TV_FIRST+28) +#define TVM_SETBKCOLOR (TV_FIRST+29) +#define TVM_SETTEXTCOLOR (TV_FIRST+30) +#define TVM_GETBKCOLOR (TV_FIRST+31) +#define TVM_GETTEXTCOLOR (TV_FIRST+32) +#define TVM_SETSCROLLTIME (TV_FIRST+33) +#define TVM_GETSCROLLTIME (TV_FIRST+34) +#define TVM_UNKNOWN35 (TV_FIRST+35) +#define TVM_UNKNOWN36 (TV_FIRST+36) +#define TVM_SETINSERTMARKCOLOR (TV_FIRST+37) +#define TVM_GETINSERTMARKCOLOR (TV_FIRST+38) +#define TVM_GETITEMSTATE (TV_FIRST+39) +#define TVM_SETLINECOLOR (TV_FIRST+40) +#define TVM_GETLINECOLOR (TV_FIRST+41) +#define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define TVM_MAPACCIDTOHTREEITEM (TV_FIRST + 42) +#define TVM_MAPHTREEITEMTOACCID (TV_FIRST + 43) +#define TVM_SETEXTENDEDSTYLE (TV_FIRST + 44) +#define TVM_GETEXTENDEDSTYLE (TV_FIRST + 45) +#define TVM_SETAUTOSCROLLINFO (TV_FIRST + 59) +#define TVM_GETSELECTEDCOUNT (TV_FIRST + 70) +#define TVM_SHOWINFOTIP (TV_FIRST + 71) +#define TVM_GETITEMPARTRECT (TV_FIRST + 72) + + +#define TVN_FIRST (0U-400U) +#define TVN_LAST (0U-499U) + +#define TVN_SELCHANGINGA (TVN_FIRST-1) +#define TVN_SELCHANGINGW (TVN_FIRST-50) +#define TVN_SELCHANGING WINELIB_NAME_AW(TVN_SELCHANGING) + +#define TVN_SELCHANGEDA (TVN_FIRST-2) +#define TVN_SELCHANGEDW (TVN_FIRST-51) +#define TVN_SELCHANGED WINELIB_NAME_AW(TVN_SELCHANGED) + +#define TVN_GETDISPINFOA (TVN_FIRST-3) +#define TVN_GETDISPINFOW (TVN_FIRST-52) +#define TVN_GETDISPINFO WINELIB_NAME_AW(TVN_GETDISPINFO) + +#define TVN_SETDISPINFOA (TVN_FIRST-4) +#define TVN_SETDISPINFOW (TVN_FIRST-53) +#define TVN_SETDISPINFO WINELIB_NAME_AW(TVN_SETDISPINFO) + +#define TVN_ITEMEXPANDINGA (TVN_FIRST-5) +#define TVN_ITEMEXPANDINGW (TVN_FIRST-54) +#define TVN_ITEMEXPANDING WINELIB_NAME_AW(TVN_ITEMEXPANDING) + +#define TVN_ITEMEXPANDEDA (TVN_FIRST-6) +#define TVN_ITEMEXPANDEDW (TVN_FIRST-55) +#define TVN_ITEMEXPANDED WINELIB_NAME_AW(TVN_ITEMEXPANDED) + +#define TVN_BEGINDRAGA (TVN_FIRST-7) +#define TVN_BEGINDRAGW (TVN_FIRST-56) +#define TVN_BEGINDRAG WINELIB_NAME_AW(TVN_BEGINDRAG) + +#define TVN_BEGINRDRAGA (TVN_FIRST-8) +#define TVN_BEGINRDRAGW (TVN_FIRST-57) +#define TVN_BEGINRDRAG WINELIB_NAME_AW(TVN_BEGINRDRAG) + +#define TVN_DELETEITEMA (TVN_FIRST-9) +#define TVN_DELETEITEMW (TVN_FIRST-58) +#define TVN_DELETEITEM WINELIB_NAME_AW(TVN_DELETEITEM) + +#define TVN_BEGINLABELEDITA (TVN_FIRST-10) +#define TVN_BEGINLABELEDITW (TVN_FIRST-59) +#define TVN_BEGINLABELEDIT WINELIB_NAME_AW(TVN_BEGINLABELEDIT) + +#define TVN_ENDLABELEDITA (TVN_FIRST-11) +#define TVN_ENDLABELEDITW (TVN_FIRST-60) +#define TVN_ENDLABELEDIT WINELIB_NAME_AW(TVN_ENDLABELEDIT) + +#define TVN_KEYDOWN (TVN_FIRST-12) + +#define TVN_GETINFOTIPA (TVN_FIRST-13) +#define TVN_GETINFOTIPW (TVN_FIRST-14) +#define TVN_GETINFOTIP WINELIB_NAME_AW(TVN_GETINFOTIP) + +#define TVN_SINGLEEXPAND (TVN_FIRST-15) + + + + + +#define TVIF_TEXT 0x0001 +#define TVIF_IMAGE 0x0002 +#define TVIF_PARAM 0x0004 +#define TVIF_STATE 0x0008 +#define TVIF_HANDLE 0x0010 +#define TVIF_SELECTEDIMAGE 0x0020 +#define TVIF_CHILDREN 0x0040 +#define TVIF_INTEGRAL 0x0080 +#define TVIF_STATEEX 0x0100 +#define TVIF_EXPANDEDIMAGE 0x0200 +#define TVIF_DI_SETITEM 0x1000 + +#define TVI_ROOT ((HTREEITEM)-65536) +#define TVI_FIRST ((HTREEITEM)-65535) +#define TVI_LAST ((HTREEITEM)-65534) +#define TVI_SORT ((HTREEITEM)-65533) + +#define TVIS_FOCUSED 0x0001 +#define TVIS_SELECTED 0x0002 +#define TVIS_CUT 0x0004 +#define TVIS_DROPHILITED 0x0008 +#define TVIS_BOLD 0x0010 +#define TVIS_EXPANDED 0x0020 +#define TVIS_EXPANDEDONCE 0x0040 +#define TVIS_EXPANDPARTIAL 0x0080 +#define TVIS_OVERLAYMASK 0x0f00 +#define TVIS_STATEIMAGEMASK 0xf000 +#define TVIS_USERMASK 0xf000 + +#define TVIS_EX_FLAT 0x0001 +#define TVIS_EX_DISABLED 0x0002 +/* TVIS_EX_HWND is listed on MSDN but apparently not in any header. */ +#define TVIS_EX_ALL 0x0002 + +#define TVHT_NOWHERE 0x0001 +#define TVHT_ONITEMICON 0x0002 +#define TVHT_ONITEMLABEL 0x0004 +#define TVHT_ONITEMINDENT 0x0008 +#define TVHT_ONITEMBUTTON 0x0010 +#define TVHT_ONITEMRIGHT 0x0020 +#define TVHT_ONITEMSTATEICON 0x0040 +#define TVHT_ONITEM 0x0046 +#define TVHT_ABOVE 0x0100 +#define TVHT_BELOW 0x0200 +#define TVHT_TORIGHT 0x0400 +#define TVHT_TOLEFT 0x0800 + +#define TVS_SHAREDIMAGELISTS 0x0000 +#define TVS_PRIVATEIMAGELISTS 0x0400 + +#define TVS_EX_MULTISELECT 0x0002 +#define TVS_EX_DOUBLEBUFFER 0x0004 +#define TVS_EX_NOINDENTSTATE 0x0008 +#define TVS_EX_RICHTOOLTIP 0x0010 +#define TVS_EX_AUTOHSCROLL 0x0020 +#define TVS_EX_FADEINOUTEXPANDOS 0x0040 +#define TVS_EX_PARTIALCHECKBOXES 0x0080 +#define TVS_EX_EXCLUSIONCHECKBOXES 0x0100 +#define TVS_EX_DIMMEDCHECKBOXES 0x0200 +#define TVS_EX_DRAWIMAGEASYNC 0x0400 + +#define TVE_COLLAPSE 0x0001 +#define TVE_EXPAND 0x0002 +#define TVE_TOGGLE 0x0003 +#define TVE_EXPANDPARTIAL 0x4000 +#define TVE_COLLAPSERESET 0x8000 + +#define TVGN_ROOT 0 +#define TVGN_NEXT 1 +#define TVGN_PREVIOUS 2 +#define TVGN_PARENT 3 +#define TVGN_CHILD 4 +#define TVGN_FIRSTVISIBLE 5 +#define TVGN_NEXTVISIBLE 6 +#define TVGN_PREVIOUSVISIBLE 7 +#define TVGN_DROPHILITE 8 +#define TVGN_CARET 9 +#define TVGN_LASTVISIBLE 10 +#define TVSI_NOSINGLEEXPAND 0x8000 + +#define TVC_UNKNOWN 0x00 +#define TVC_BYMOUSE 0x01 +#define TVC_BYKEYBOARD 0x02 + + +typedef struct _TREEITEM *HTREEITEM; + +typedef struct { + UINT mask; + HTREEITEM hItem; + UINT state; + UINT stateMask; + LPSTR pszText; + INT cchTextMax; + INT iImage; + INT iSelectedImage; + INT cChildren; + LPARAM lParam; +} TVITEMA, *LPTVITEMA; + +typedef struct { + UINT mask; + HTREEITEM hItem; + UINT state; + UINT stateMask; + LPWSTR pszText; + INT cchTextMax; + INT iImage; + INT iSelectedImage; + INT cChildren; + LPARAM lParam; +} TVITEMW, *LPTVITEMW; + +#define TV_ITEMA TVITEMA +#define TV_ITEMW TVITEMW +#define LPTV_ITEMA LPTVITEMA +#define LPTV_ITEMW LPTVITEMW + +#define TVITEM WINELIB_NAME_AW(TVITEM) +#define LPTVITEM WINELIB_NAME_AW(LPTVITEM) +#define TV_ITEM WINELIB_NAME_AW(TV_ITEM) +#define LPTV_ITEM WINELIB_NAME_AW(LPTV_ITEM) + +typedef struct { + UINT mask; + HTREEITEM hItem; + UINT state; + UINT stateMask; + LPSTR pszText; + INT cchTextMax; + INT iImage; + INT iSelectedImage; + INT cChildren; + LPARAM lParam; + INT iIntegral; + UINT uStateEx; /* _WIN32_IE >= 0x600 */ + HWND hwnd; /* _WIN32_IE >= 0x600 */ + INT iExpandedImage; /* _WIN32_IE >= 0x600 */ +} TVITEMEXA, *LPTVITEMEXA; + +typedef struct { + UINT mask; + HTREEITEM hItem; + UINT state; + UINT stateMask; + LPWSTR pszText; + INT cchTextMax; + INT iImage; + INT iSelectedImage; + INT cChildren; + LPARAM lParam; + INT iIntegral; + UINT uStateEx; /* _WIN32_IE >= 0x600 */ + HWND hwnd; /* _WIN32_IE >= 0x600 */ + INT iExpandedImage; /* _WIN32_IE >= 0x600 */ +} TVITEMEXW, *LPTVITEMEXW; + +#define TVITEMEX WINELIB_NAME_AW(TVITEMEX) +#define LPTVITEMEX WINELIB_NAME_AW(LPTVITEMEX) + +typedef struct tagTVINSERTSTRUCTA { + HTREEITEM hParent; + HTREEITEM hInsertAfter; + union { + TVITEMEXA itemex; + TVITEMA item; + } DUMMYUNIONNAME; +} TVINSERTSTRUCTA, *LPTVINSERTSTRUCTA; + +typedef struct tagTVINSERTSTRUCTW { + HTREEITEM hParent; + HTREEITEM hInsertAfter; + union { + TVITEMEXW itemex; + TVITEMW item; + } DUMMYUNIONNAME; +} TVINSERTSTRUCTW, *LPTVINSERTSTRUCTW; + +#define TVINSERTSTRUCT WINELIB_NAME_AW(TVINSERTSTRUCT) +#define LPTVINSERTSTRUCT WINELIB_NAME_AW(LPTVINSERTSTRUCT) + +#define TVINSERTSTRUCT_V1_SIZEA CCSIZEOF_STRUCT(TVINSERTSTRUCTA, item) +#define TVINSERTSTRUCT_V1_SIZEW CCSIZEOF_STRUCT(TVINSERTSTRUCTW, item) +#define TVINSERTSTRUCT_V1_SIZE WINELIB_NAME_AW(TVINSERTSTRUCT_V1_SIZE) + +#define TV_INSERTSTRUCT TVINSERTSTRUCT +#define TV_INSERTSTRUCTA TVINSERTSTRUCTA +#define TV_INSERTSTRUCTW TVINSERTSTRUCTW +#define LPTV_INSERTSTRUCT LPTVINSERTSTRUCT +#define LPTV_INSERTSTRUCTA LPTVINSERTSTRUCTA +#define LPTV_INSERTSTRUCTW LPTVINSERTSTRUCTW + + + +typedef struct tagNMTREEVIEWA { + NMHDR hdr; + UINT action; + TVITEMA itemOld; + TVITEMA itemNew; + POINT ptDrag; +} NMTREEVIEWA, *LPNMTREEVIEWA; + +typedef struct tagNMTREEVIEWW { + NMHDR hdr; + UINT action; + TVITEMW itemOld; + TVITEMW itemNew; + POINT ptDrag; +} NMTREEVIEWW, *LPNMTREEVIEWW; + +#define NMTREEVIEW WINELIB_NAME_AW(NMTREEVIEW) +#define NM_TREEVIEW WINELIB_NAME_AW(NMTREEVIEW) +#define NM_TREEVIEWA NMTREEVIEWA +#define NM_TREEVIEWW NMTREEVIEWW +#define LPNMTREEVIEW WINELIB_NAME_AW(LPNMTREEVIEW) + +#define LPNM_TREEVIEW LPNMTREEVIEW +#define LPNM_TREEVIEWA LPNMTREEVIEWA +#define LPNM_TREEVIEWW LPNMTREEVIEWW + +typedef struct tagTVDISPINFOA { + NMHDR hdr; + TVITEMA item; +} NMTVDISPINFOA, *LPNMTVDISPINFOA; + +typedef struct tagTVDISPINFOW { + NMHDR hdr; + TVITEMW item; +} NMTVDISPINFOW, *LPNMTVDISPINFOW; + +typedef struct tagTVDISPINFOEXA { + NMHDR hdr; + TVITEMEXA item; +} NMTVDISPINFOEXA, *LPNMTVDISPINFOEXA; + +typedef struct tagTVDISPINFOEXW { + NMHDR hdr; + TVITEMEXW item; +} NMTVDISPINFOEXW, *LPNMTVDISPINFOEXW; + +#define NMTVDISPINFO WINELIB_NAME_AW(NMTVDISPINFO) +#define LPNMTVDISPINFO WINELIB_NAME_AW(LPNMTVDISPINFO) +#define NMTVDISPINFOEX WINELIB_NAME_AW(NMTVDISPINFOEX) +#define LPNMTVDISPINFOEX WINELIB_NAME_AW(LPNMTVDISPINFOEX) +#define TV_DISPINFOA NMTVDISPINFOA +#define TV_DISPINFOW NMTVDISPINFOW +#define TV_DISPINFO NMTVDISPINFO + +typedef INT (CALLBACK *PFNTVCOMPARE)(LPARAM, LPARAM, LPARAM); + +typedef struct tagTVSORTCB +{ + HTREEITEM hParent; + PFNTVCOMPARE lpfnCompare; + LPARAM lParam; +} TVSORTCB, *LPTVSORTCB; + +#define TV_SORTCB TVSORTCB +#define LPTV_SORTCB LPTVSORTCB + +typedef struct tagTVHITTESTINFO { + POINT pt; + UINT flags; + HTREEITEM hItem; +} TVHITTESTINFO, *LPTVHITTESTINFO; + +#define TV_HITTESTINFO TVHITTESTINFO + + +/* Custom Draw Treeview */ + +#define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW, clrTextBk) + +#define TVCDRF_NOIMAGES 0x00010000 + +typedef struct tagNMTVCUSTOMDRAW +{ + NMCUSTOMDRAW nmcd; + COLORREF clrText; + COLORREF clrTextBk; + INT iLevel; /* IE>0x0400 */ +} NMTVCUSTOMDRAW, *LPNMTVCUSTOMDRAW; + +/* Treeview tooltips */ + +typedef struct tagNMTVGETINFOTIPA +{ + NMHDR hdr; + LPSTR pszText; + INT cchTextMax; + HTREEITEM hItem; + LPARAM lParam; +} NMTVGETINFOTIPA, *LPNMTVGETINFOTIPA; + +typedef struct tagNMTVGETINFOTIPW +{ + NMHDR hdr; + LPWSTR pszText; + INT cchTextMax; + HTREEITEM hItem; + LPARAM lParam; +} NMTVGETINFOTIPW, *LPNMTVGETINFOTIPW; + +#define NMTVGETINFOTIP WINELIB_NAME_AW(NMTVGETINFOTIP) +#define LPNMTVGETINFOTIP WINELIB_NAME_AW(LPNMTVGETINFOTIP) + +#include +typedef struct tagTVKEYDOWN +{ + NMHDR hdr; + WORD wVKey; + UINT flags; +} NMTVKEYDOWN, *LPNMTVKEYDOWN; +#include + +#define TV_KEYDOWN NMTVKEYDOWN + +#define TreeView_InsertItemA(hwnd, phdi) \ + (HTREEITEM)SNDMSGA((hwnd), TVM_INSERTITEMA, 0, \ + (LPARAM)(LPTVINSERTSTRUCTA)(phdi)) +#define TreeView_InsertItemW(hwnd,phdi) \ + (HTREEITEM)SNDMSGW((hwnd), TVM_INSERTITEMW, 0, \ + (LPARAM)(LPTVINSERTSTRUCTW)(phdi)) +#define TreeView_InsertItem WINELIB_NAME_AW(TreeView_InsertItem) + +#define TreeView_DeleteItem(hwnd, hItem) \ + (BOOL)SNDMSG((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem)) +#define TreeView_DeleteAllItems(hwnd) \ + (BOOL)SNDMSG((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT) +#define TreeView_Expand(hwnd, hitem, code) \ + (BOOL)SNDMSG((hwnd), TVM_EXPAND, (WPARAM)code, \ + (LPARAM)(HTREEITEM)(hitem)) + +#define TreeView_GetItemRect(hwnd, hitem, prc, code) \ + (*(HTREEITEM *)prc = (hitem), (BOOL)SNDMSG((hwnd), \ + TVM_GETITEMRECT, (WPARAM)(code), (LPARAM)(RECT *)(prc))) + +#define TreeView_GetCount(hwnd) \ + (UINT)SNDMSG((hwnd), TVM_GETCOUNT, 0, 0) +#define TreeView_GetIndent(hwnd) \ + (UINT)SNDMSG((hwnd), TVM_GETINDENT, 0, 0) +#define TreeView_SetIndent(hwnd, indent) \ + (BOOL)SNDMSG((hwnd), TVM_SETINDENT, (WPARAM)indent, 0) + +#define TreeView_GetImageList(hwnd, iImage) \ + (HIMAGELIST)SNDMSG((hwnd), TVM_GETIMAGELIST, iImage, 0) + +#define TreeView_SetImageList(hwnd, himl, iImage) \ + (HIMAGELIST)SNDMSG((hwnd), TVM_SETIMAGELIST, iImage, \ + (LPARAM)(HIMAGELIST)(himl)) + +#define TreeView_GetNextItem(hwnd, hitem, code) \ + (HTREEITEM)SNDMSG((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\ +(LPARAM)(HTREEITEM) (hitem)) + +#define TreeView_GetChild(hwnd, hitem) \ + TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD) +#define TreeView_GetNextSibling(hwnd, hitem) \ + TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT) +#define TreeView_GetPrevSibling(hwnd, hitem) \ + TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS) +#define TreeView_GetParent(hwnd, hitem) \ + TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT) +#define TreeView_GetFirstVisible(hwnd) \ + TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE) +#define TreeView_GetLastVisible(hwnd) \ + TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE) +#define TreeView_GetNextVisible(hwnd, hitem) \ + TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE) +#define TreeView_GetPrevVisible(hwnd, hitem) \ + TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE) +#define TreeView_GetSelection(hwnd) \ + TreeView_GetNextItem(hwnd, NULL, TVGN_CARET) +#define TreeView_GetDropHilight(hwnd) \ + TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE) +#define TreeView_GetRoot(hwnd) \ + TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT) +#define TreeView_GetLastVisible(hwnd) \ + TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE) + + +#define TreeView_Select(hwnd, hitem, code) \ + (BOOL)SNDMSG((hwnd), TVM_SELECTITEM, (WPARAM)(code), \ +(LPARAM)(HTREEITEM)(hitem)) + + +#define TreeView_SelectItem(hwnd, hitem) \ + TreeView_Select(hwnd, hitem, TVGN_CARET) +#define TreeView_SelectDropTarget(hwnd, hitem) \ + TreeView_Select(hwnd, hitem, TVGN_DROPHILITE) +#define TreeView_SelectSetFirstVisible(hwnd, hitem) \ + TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE) + + +#define TreeView_GetItemA(hwnd, pitem) \ + (BOOL)SNDMSGA((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem)) +#define TreeView_GetItemW(hwnd, pitem) \ + (BOOL)SNDMSGW((hwnd), TVM_GETITEMW, 0, (LPARAM) (TVITEMW *)(pitem)) +#define TreeView_GetItem WINELIB_NAME_AW(TreeView_GetItem) + +#define TreeView_SetItemA(hwnd, pitem) \ + (BOOL)SNDMSGA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem)) +#define TreeView_SetItemW(hwnd, pitem) \ + (BOOL)SNDMSGW((hwnd), TVM_SETITEMW, 0, (LPARAM)(const TVITEMW *)(pitem)) +#define TreeView_SetItem WINELIB_NAME_AW(TreeView_SetItem) + +#define TreeView_EditLabel(hwnd, hitem) \ + (HWND)SNDMSG((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem)) + +#define TreeView_GetEditControl(hwnd) \ + (HWND)SNDMSG((hwnd), TVM_GETEDITCONTROL, 0, 0) + +#define TreeView_GetVisibleCount(hwnd) \ + (UINT)SNDMSG((hwnd), TVM_GETVISIBLECOUNT, 0, 0) + +#define TreeView_HitTest(hwnd, lpht) \ + (HTREEITEM)SNDMSG((hwnd), TVM_HITTEST, 0,\ +(LPARAM)(LPTVHITTESTINFO)(lpht)) + +#define TreeView_CreateDragImage(hwnd, hitem) \ + (HIMAGELIST)SNDMSG((hwnd), TVM_CREATEDRAGIMAGE, 0,\ +(LPARAM)(HTREEITEM)(hitem)) + +#define TreeView_SortChildren(hwnd, hitem, recurse) \ + (BOOL)SNDMSG((hwnd), TVM_SORTCHILDREN, (WPARAM)recurse,\ +(LPARAM)(HTREEITEM)(hitem)) + +#define TreeView_EnsureVisible(hwnd, hitem) \ + (BOOL)SNDMSG((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT)(hitem)) + +#define TreeView_SortChildrenCB(hwnd, psort, recurse) \ + (BOOL)SNDMSG((hwnd), TVM_SORTCHILDRENCB, (WPARAM)recurse, \ + (LPARAM)(LPTV_SORTCB)(psort)) + +#define TreeView_EndEditLabelNow(hwnd, fCancel) \ + (BOOL)SNDMSG((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)fCancel, 0) + +#define TreeView_GetISearchString(hwnd, lpsz) \ + (BOOL)SNDMSG((hwnd), TVM_GETISEARCHSTRING, 0, \ + (LPARAM)(LPTSTR)lpsz) + +#define TreeView_SetToolTips(hwnd, hwndTT) \ + (HWND)SNDMSG((hwnd), TVM_SETTOOLTIPS, (WPARAM)(hwndTT), 0) + +#define TreeView_GetToolTips(hwnd) \ + (HWND)SNDMSG((hwnd), TVM_GETTOOLTIPS, 0, 0) + +#define TreeView_SetItemHeight(hwnd, iHeight) \ + (INT)SNDMSG((hwnd), TVM_SETITEMHEIGHT, (WPARAM)iHeight, 0) + +#define TreeView_GetItemHeight(hwnd) \ + (INT)SNDMSG((hwnd), TVM_GETITEMHEIGHT, 0, 0) + +#define TreeView_SetBkColor(hwnd, clr) \ + (COLORREF)SNDMSG((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr) + +#define TreeView_SetTextColor(hwnd, clr) \ + (COLORREF)SNDMSG((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr) + +#define TreeView_GetBkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), TVM_GETBKCOLOR, 0, 0) + +#define TreeView_GetTextColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), TVM_GETTEXTCOLOR, 0, 0) + +#define TreeView_SetScrollTime(hwnd, uTime) \ + (UINT)SNDMSG((hwnd), TVM_SETSCROLLTIME, uTime, 0) + +#define TreeView_GetScrollTime(hwnd) \ + (UINT)SNDMSG((hwnd), TVM_GETSCROLLTIME, 0, 0) + +#define TreeView_SetInsertMark(hwnd, hItem, fAfter) \ + (BOOL)SNDMSG((hwnd), TVM_SETINSERTMARK, (WPARAM)(fAfter), \ + (LPARAM) (hItem)) + +#define TreeView_SetInsertMarkColor(hwnd, clr) \ + (COLORREF)SNDMSG((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr) + +#define TreeView_GetInsertMarkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0) + +#define TreeView_SetItemState(hwndTV, hti, data, _mask) \ +{ TVITEM _TVi; \ + _TVi.mask = TVIF_STATE; \ + _TVi.hItem = hti; \ + _TVi.stateMask = _mask; \ + _TVi.state = data; \ + SNDMSG((hwndTV), TVM_SETITEM, 0, (LPARAM)&_TVi); \ +} + +#define TreeView_GetItemState(hwndTV, hti, mask) \ + (UINT)SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), (LPARAM)(mask)) +#define TreeView_GetCheckState(hwndTV, hti) \ + ((((UINT)(SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), \ + TVIS_STATEIMAGEMASK))) >> 12) -1) + +#define TreeView_SetLineColor(hwnd, clr) \ + (COLORREF)SNDMSG((hwnd), TVM_SETLINECOLOR, 0, (LPARAM)(clr)) + +#define TreeView_GetLineColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), TVM_GETLINECOLOR, 0, 0) + +#define TreeView_MapAccIDToHTREEITEM(hwnd, id) \ + (HTREEITEM)SNDMSG((hwnd), TVM_MAPACCIDTOHTREEITEM, id, 0) + +#define TreeView_MapHTREEITEMToAccID(hwnd, htreeitem) \ + (UINT)SNDMSG((hwnd), TVM_MAPHTREEITEMTOACCID, (WPARAM)htreeitem, 0) + +#define TreeView_SetUnicodeFormat(hwnd, fUnicode) \ + (BOOL)SNDMSG((hwnd), TVM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0) +#define TreeView_GetUnicodeFormat(hwnd) \ + (BOOL)SNDMSG((hwnd), TVM_GETUNICODEFORMAT, 0, 0) + +/* Listview control */ + +#define WC_LISTVIEWA "SysListView32" +#if defined(__GNUC__) +# define WC_LISTVIEWW (const WCHAR []){ 'S','y','s', \ + 'L','i','s','t','V','i','e','w','3','2',0 } +#elif defined(_MSC_VER) +# define WC_LISTVIEWW L"SysListView32" +#else +static const WCHAR WC_LISTVIEWW[] = { 'S','y','s', + 'L','i','s','t','V','i','e','w','3','2',0 }; +#endif +#define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW) + +#define LVSCW_AUTOSIZE -1 +#define LVSCW_AUTOSIZE_USEHEADER -2 + + +#define LVS_EX_GRIDLINES 0x0001 +#define LVS_EX_SUBITEMIMAGES 0x0002 +#define LVS_EX_CHECKBOXES 0x0004 +#define LVS_EX_TRACKSELECT 0x0008 +#define LVS_EX_HEADERDRAGDROP 0x0010 +#define LVS_EX_FULLROWSELECT 0x0020 +#define LVS_EX_ONECLICKACTIVATE 0x0040 +#define LVS_EX_TWOCLICKACTIVATE 0x0080 +#define LVS_EX_FLATSB 0x0100 +#define LVS_EX_REGIONAL 0x0200 +#define LVS_EX_INFOTIP 0x0400 +#define LVS_EX_UNDERLINEHOT 0x0800 +#define LVS_EX_UNDERLINECOLD 0x1000 +#define LVS_EX_MULTIWORKAREAS 0x2000 +#define LVS_EX_LABELTIP 0x4000 +#define LVS_EX_BORDERSELECT 0x8000 +#define LVS_EX_DOUBLEBUFFER 0x00010000 +#define LVS_EX_HIDELABELS 0x00020000 +#define LVS_EX_SINGLEROW 0x00040000 +#define LVS_EX_SNAPTOGRID 0x00080000 +#define LVS_EX_SIMPLESELECT 0x00100000 +#define LVS_EX_JUSTIFYCOLUMNS 0x00200000 +#define LVS_EX_TRANSPARENTBKGND 0x00400000 +#define LVS_EX_TRANSPARENTSHADOWTEXT 0x00800000 +#define LVS_EX_AUTOAUTOARRANGE 0x01000000 +#define LVS_EX_HEADERINALLVIEWS 0x02000000 +#define LVS_EX_AUTOCHECKSELECT 0x08000000 +#define LVS_EX_AUTOSIZECOLUMNS 0x10000000 +#define LVS_EX_COLUMNSNAPPOINTS 0x40000000 +#define LVS_EX_COLUMNOVERFLOW 0x80000000 + +#define LVCF_FMT 0x0001 +#define LVCF_WIDTH 0x0002 +#define LVCF_TEXT 0x0004 +#define LVCF_SUBITEM 0x0008 +#define LVCF_IMAGE 0x0010 +#define LVCF_ORDER 0x0020 +#define LVCF_MINWIDTH 0x0040 + +#define LVCFMT_LEFT 0x0000 +#define LVCFMT_RIGHT 0x0001 +#define LVCFMT_CENTER 0x0002 +#define LVCFMT_JUSTIFYMASK 0x0003 +#define LVCFMT_FIXED_WIDTH 0x0100 +#define LVCFMT_IMAGE 0x0800 +#define LVCFMT_BITMAP_ON_RIGHT 0x1000 +#define LVCFMT_COL_HAS_IMAGES 0x8000 +#define LVCFMT_NO_DPI_SCALE 0x00040000 +#define LVCFMT_FIXED_RATIO 0x00080000 +#define LVCFMT_LINE_BREAK 0x00100000 +#define LVCFMT_FILL 0x00200000 +#define LVCFMT_WRAP 0x00400000 +#define LVCFMT_NO_TITLE 0x00800000 +#define LVCFMT_SPLIT_BUTTON 0x01000000 +#define LVCFMT_TILE_PLACEMENTMASK (LVCFMT_LINE_BREAK | LVCFMT_FILL) + +#define LVSIL_NORMAL 0 +#define LVSIL_SMALL 1 +#define LVSIL_STATE 2 +#define LVSIL_GROUPHEADER 3 + +/* following 2 flags only for LVS_OWNERDATA listviews */ +/* and only in report or list mode */ +#define LVSICF_NOINVALIDATEALL 0x0001 +#define LVSICF_NOSCROLL 0x0002 + + +#define LVFI_PARAM 0x0001 +#define LVFI_STRING 0x0002 +#define LVFI_SUBSTRING 0x0004 +#define LVFI_PARTIAL 0x0008 +#define LVFI_WRAP 0x0020 +#define LVFI_NEARESTXY 0x0040 + +#define LVIF_TEXT 0x0001 +#define LVIF_IMAGE 0x0002 +#define LVIF_PARAM 0x0004 +#define LVIF_STATE 0x0008 +#define LVIF_INDENT 0x0010 +#define LVIF_GROUPID 0x0100 +#define LVIF_COLUMNS 0x0200 +#define LVIF_NORECOMPUTE 0x0800 +#define LVIF_DI_SETITEM 0x1000 +#define LVIF_COLFMT 0x00010000 + +#define LVIR_BOUNDS 0x0000 +#define LVIR_ICON 0x0001 +#define LVIR_LABEL 0x0002 +#define LVIR_SELECTBOUNDS 0x0003 + +#define LVIS_FOCUSED 0x0001 +#define LVIS_SELECTED 0x0002 +#define LVIS_CUT 0x0004 +#define LVIS_DROPHILITED 0x0008 +#define LVIS_ACTIVATING 0x0020 + +#define LVIS_OVERLAYMASK 0x0F00 +#define LVIS_STATEIMAGEMASK 0xF000 + +#define LVNI_ALL 0x0000 +#define LVNI_FOCUSED 0x0001 +#define LVNI_SELECTED 0x0002 +#define LVNI_CUT 0x0004 +#define LVNI_DROPHILITED 0x0008 + +#define LVNI_ABOVE 0x0100 +#define LVNI_BELOW 0x0200 +#define LVNI_TOLEFT 0x0400 +#define LVNI_TORIGHT 0x0800 + +#define LVHT_NOWHERE 0x0001 +#define LVHT_ONITEMICON 0x0002 +#define LVHT_ONITEMLABEL 0x0004 +#define LVHT_ONITEMSTATEICON 0x0008 +#define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON) + +#define LVHT_ABOVE 0x0008 +#define LVHT_BELOW 0x0010 +#define LVHT_TORIGHT 0x0020 +#define LVHT_TOLEFT 0x0040 + +#define LV_VIEW_ICON 0x0000 +#define LV_VIEW_DETAILS 0x0001 +#define LV_VIEW_SMALLICON 0x0002 +#define LV_VIEW_LIST 0x0003 +#define LV_VIEW_TILE 0x0004 +#define LV_VIEW_MAX 0x0004 + +#define LVGF_NONE 0x00000000 +#define LVGF_HEADER 0x00000001 +#define LVGF_FOOTER 0x00000002 +#define LVGF_STATE 0x00000004 +#define LVGF_ALIGN 0x00000008 +#define LVGF_GROUPID 0x00000010 +#define LVGF_SUBTITLE 0x00000100 +#define LVGF_TASK 0x00000200 +#define LVGF_DESCRIPTIONTOP 0x00000400 +#define LVGF_DESCRIPTIONBOTTOM 0x00000800 +#define LVGF_TITLEIMAGE 0x00001000 +#define LVGF_EXTENDEDIMAGE 0x00002000 +#define LVGF_ITEMS 0x00004000 +#define LVGF_SUBSET 0x00008000 +#define LVGF_SUBSETITEMS 0x00010000 + +#define LVGS_NORMAL 0x00000000 +#define LVGS_COLLAPSED 0x00000001 +#define LVGS_HIDDEN 0x00000002 + +#define LVGA_HEADER_LEFT 0x00000001 +#define LVGA_HEADER_CENTER 0x00000002 +#define LVGA_HEADER_RIGHT 0x00000004 +#define LVGA_FOOTER_LEFT 0x00000008 +#define LVGA_FOOTER_CENTER 0x00000010 +#define LVGA_FOOTER_RIGHT 0x00000020 + +#define LVGMF_NONE 0x00000000 +#define LVGMF_BORDERSIZE 0x00000001 +#define LVGMF_BORDERCOLOR 0x00000002 +#define LVGMF_TEXTCOLOR 0x00000004 + +#define LVTVIF_AUTOSIZE 0x00000000 +#define LVTVIF_FIXEDWIDTH 0x00000001 +#define LVTVIF_FIXEDHEIGHT 0x00000002 +#define LVTVIF_FIXEDSIZE 0x00000003 +#define LVTVIF_EXTENDED 0x00000004 + +#define LVTVIM_TILESIZE 0x00000001 +#define LVTVIM_COLUMNS 0x00000002 +#define LVTVIM_LABELMARGIN 0x00000004 + +#define LVIM_AFTER 0x00000001 + +#define LVM_FIRST 0x1000 +#define LVM_GETBKCOLOR (LVM_FIRST+0) +#define LVM_SETBKCOLOR (LVM_FIRST+1) +#define LVM_GETIMAGELIST (LVM_FIRST+2) +#define LVM_SETIMAGELIST (LVM_FIRST+3) +#define LVM_GETITEMCOUNT (LVM_FIRST+4) +#define LVM_GETITEMA (LVM_FIRST+5) +#define LVM_GETITEMW (LVM_FIRST+75) +#define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM) +#define LVM_SETITEMA (LVM_FIRST+6) +#define LVM_SETITEMW (LVM_FIRST+76) +#define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM) +#define LVM_INSERTITEMA (LVM_FIRST+7) +#define LVM_INSERTITEMW (LVM_FIRST+77) +#define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM) +#define LVM_DELETEITEM (LVM_FIRST+8) +#define LVM_DELETEALLITEMS (LVM_FIRST+9) +#define LVM_GETCALLBACKMASK (LVM_FIRST+10) +#define LVM_SETCALLBACKMASK (LVM_FIRST+11) +#define LVM_GETNEXTITEM (LVM_FIRST+12) +#define LVM_FINDITEMA (LVM_FIRST+13) +#define LVM_FINDITEMW (LVM_FIRST+83) +#define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM) +#define LVM_GETITEMRECT (LVM_FIRST+14) +#define LVM_SETITEMPOSITION (LVM_FIRST+15) +#define LVM_GETITEMPOSITION (LVM_FIRST+16) +#define LVM_GETSTRINGWIDTHA (LVM_FIRST+17) +#define LVM_GETSTRINGWIDTHW (LVM_FIRST+87) +#define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH) +#define LVM_HITTEST (LVM_FIRST+18) +#define LVM_ENSUREVISIBLE (LVM_FIRST+19) +#define LVM_SCROLL (LVM_FIRST+20) +#define LVM_REDRAWITEMS (LVM_FIRST+21) +#define LVM_ARRANGE (LVM_FIRST+22) +#define LVM_EDITLABELA (LVM_FIRST+23) +#define LVM_EDITLABELW (LVM_FIRST+118) +#define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL) +#define LVM_GETEDITCONTROL (LVM_FIRST+24) +#define LVM_GETCOLUMNA (LVM_FIRST+25) +#define LVM_GETCOLUMNW (LVM_FIRST+95) +#define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN) +#define LVM_SETCOLUMNA (LVM_FIRST+26) +#define LVM_SETCOLUMNW (LVM_FIRST+96) +#define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN) +#define LVM_INSERTCOLUMNA (LVM_FIRST+27) +#define LVM_INSERTCOLUMNW (LVM_FIRST+97) +#define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN) +#define LVM_DELETECOLUMN (LVM_FIRST+28) +#define LVM_GETCOLUMNWIDTH (LVM_FIRST+29) +#define LVM_SETCOLUMNWIDTH (LVM_FIRST+30) +#define LVM_GETHEADER (LVM_FIRST+31) + +#define LVM_CREATEDRAGIMAGE (LVM_FIRST+33) +#define LVM_GETVIEWRECT (LVM_FIRST+34) +#define LVM_GETTEXTCOLOR (LVM_FIRST+35) +#define LVM_SETTEXTCOLOR (LVM_FIRST+36) +#define LVM_GETTEXTBKCOLOR (LVM_FIRST+37) +#define LVM_SETTEXTBKCOLOR (LVM_FIRST+38) +#define LVM_GETTOPINDEX (LVM_FIRST+39) +#define LVM_GETCOUNTPERPAGE (LVM_FIRST+40) +#define LVM_GETORIGIN (LVM_FIRST+41) +#define LVM_UPDATE (LVM_FIRST+42) +#define LVM_SETITEMSTATE (LVM_FIRST+43) +#define LVM_GETITEMSTATE (LVM_FIRST+44) +#define LVM_GETITEMTEXTA (LVM_FIRST+45) +#define LVM_GETITEMTEXTW (LVM_FIRST+115) +#define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT) +#define LVM_SETITEMTEXTA (LVM_FIRST+46) +#define LVM_SETITEMTEXTW (LVM_FIRST+116) +#define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT) +#define LVM_SETITEMCOUNT (LVM_FIRST+47) +#define LVM_SORTITEMS (LVM_FIRST+48) +#define LVM_SORTITEMSEX (LVM_FIRST+81) +#define LVM_SETITEMPOSITION32 (LVM_FIRST+49) +#define LVM_GETSELECTEDCOUNT (LVM_FIRST+50) +#define LVM_GETITEMSPACING (LVM_FIRST+51) +#define LVM_GETISEARCHSTRINGA (LVM_FIRST+52) +#define LVM_GETISEARCHSTRINGW (LVM_FIRST+117) +#define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING) +#define LVM_SETICONSPACING (LVM_FIRST+53) +#define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54) +#define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55) +#define LVM_GETSUBITEMRECT (LVM_FIRST+56) +#define LVM_SUBITEMHITTEST (LVM_FIRST+57) +#define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58) +#define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59) +#define LVM_SETHOTITEM (LVM_FIRST+60) +#define LVM_GETHOTITEM (LVM_FIRST+61) +#define LVM_SETHOTCURSOR (LVM_FIRST+62) +#define LVM_GETHOTCURSOR (LVM_FIRST+63) +#define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64) +#define LVM_SETWORKAREAS (LVM_FIRST+65) +#define LVM_GETSELECTIONMARK (LVM_FIRST+66) +#define LVM_SETSELECTIONMARK (LVM_FIRST+67) +#define LVM_SETBKIMAGEA (LVM_FIRST+68) +#define LVM_SETBKIMAGEW (LVM_FIRST+138) +#define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE) +#define LVM_GETBKIMAGEA (LVM_FIRST+69) +#define LVM_GETBKIMAGEW (LVM_FIRST+139) +#define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE) +#define LVM_GETWORKAREAS (LVM_FIRST+70) +#define LVM_SETHOVERTIME (LVM_FIRST+71) +#define LVM_GETHOVERTIME (LVM_FIRST+72) +#define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73) +#define LVM_SETTOOLTIPS (LVM_FIRST+74) +#define LVM_GETTOOLTIPS (LVM_FIRST+78) +#define LVM_GETUNICODEFORMAT (CCM_GETUNICODEFORMAT) +#define LVM_SETUNICODEFORMAT (CCM_SETUNICODEFORMAT) +#define LVM_SETSELECTEDCOLUMN (LVM_FIRST + 140) +#define LVM_SETTILEWIDTH (LVM_FIRST + 141) +#define LVM_SETVIEW (LVM_FIRST + 142) +#define LVM_GETVIEW (LVM_FIRST + 143) +#define LVM_INSERTGROUP (LVM_FIRST + 145) +#define LVM_SETGROUPINFO (LVM_FIRST + 147) +#define LVM_GETGROUPINFO (LVM_FIRST + 149) +#define LVM_REMOVEGROUP (LVM_FIRST + 150) +#define LVM_MOVEGROUP (LVM_FIRST + 151) +#define LVM_MOVEITEMTOGROUP (LVM_FIRST + 154) +#define LVM_SETGROUPMETRICS (LVM_FIRST + 155) +#define LVM_GETGROUPMETRICS (LVM_FIRST + 156) +#define LVM_ENABLEGROUPVIEW (LVM_FIRST + 157) +#define LVM_SORTGROUPS (LVM_FIRST + 158) +#define LVM_INSERTGROUPSORTED (LVM_FIRST + 159) +#define LVM_REMOVEALLGROUPS (LVM_FIRST + 160) +#define LVM_HASGROUP (LVM_FIRST + 161) +#define LVM_SETTILEVIEWINFO (LVM_FIRST + 162) +#define LVM_GETTILEVIEWINFO (LVM_FIRST + 163) +#define LVM_SETTILEINFO (LVM_FIRST + 164) +#define LVM_GETTILEINFO (LVM_FIRST + 165) +#define LVM_SETINSERTMARK (LVM_FIRST + 166) +#define LVM_GETINSERTMARK (LVM_FIRST + 167) +#define LVM_INSERTMARKHITTEST (LVM_FIRST + 168) +#define LVM_GETINSERTMARKRECT (LVM_FIRST + 169) +#define LVM_SETINSERTMARKCOLOR (LVM_FIRST + 170) +#define LVM_GETINSERTMARKCOLOR (LVM_FIRST + 171) +#define LVM_SETINFOTIP (LVM_FIRST + 173) +#define LVM_GETSELECTEDCOLUMN (LVM_FIRST + 174) +#define LVM_ISGROUPVIEWENABLED (LVM_FIRST + 175) +#define LVM_GETOUTLINECOLOR (LVM_FIRST + 176) +#define LVM_SETOUTLINECOLOR (LVM_FIRST + 177) +#define LVM_CANCELEDITLABEL (LVM_FIRST + 179) +#define LVM_MAPINDEXTOID (LVM_FIRST + 180) +#define LVM_MAPIDTOINDEX (LVM_FIRST + 181) +#define LVM_ISITEMVISIBLE (LVM_FIRST + 182) + +#define LVN_FIRST (0U-100U) +#define LVN_LAST (0U-199U) +#define LVN_ITEMCHANGING (LVN_FIRST-0) +#define LVN_ITEMCHANGED (LVN_FIRST-1) +#define LVN_INSERTITEM (LVN_FIRST-2) +#define LVN_DELETEITEM (LVN_FIRST-3) +#define LVN_DELETEALLITEMS (LVN_FIRST-4) +#define LVN_BEGINLABELEDITA (LVN_FIRST-5) +#define LVN_BEGINLABELEDITW (LVN_FIRST-75) +#define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT) +#define LVN_ENDLABELEDITA (LVN_FIRST-6) +#define LVN_ENDLABELEDITW (LVN_FIRST-76) +#define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT) +#define LVN_COLUMNCLICK (LVN_FIRST-8) +#define LVN_BEGINDRAG (LVN_FIRST-9) +#define LVN_BEGINRDRAG (LVN_FIRST-11) +#define LVN_ODCACHEHINT (LVN_FIRST-13) +#define LVN_ITEMACTIVATE (LVN_FIRST-14) +#define LVN_ODSTATECHANGED (LVN_FIRST-15) +#define LVN_HOTTRACK (LVN_FIRST-21) +#define LVN_ODFINDITEMA (LVN_FIRST-52) +#define LVN_ODFINDITEMW (LVN_FIRST-79) +#define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM) +#define LVN_GETDISPINFOA (LVN_FIRST-50) +#define LVN_GETDISPINFOW (LVN_FIRST-77) +#define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO) +#define LVN_SETDISPINFOA (LVN_FIRST-51) +#define LVN_SETDISPINFOW (LVN_FIRST-78) +#define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO) +#define LVN_KEYDOWN (LVN_FIRST-55) +#define LVN_MARQUEEBEGIN (LVN_FIRST-56) +#define LVN_GETINFOTIPA (LVN_FIRST-57) +#define LVN_GETINFOTIPW (LVN_FIRST-58) +#define LVN_GETINFOTIP WINELIB_NAME_AW(LVN_GETINFOTIP) +#define LVN_INCREMENTALSEARCHA (LVN_FIRST-62) +#define LVN_INCREMENTALSEARCHW (LVN_FIRST-63) +#define LVN_INCREMENTALSEARCH WINELIB_NAME_AW(LVN_INCREMENTALSEARCH) +#define LVN_BEGINSCROLL (LVN_FIRST-80) +#define LVN_ENDSCROLL (LVN_FIRST-81) +#define LVN_LINKCLICK (LVN_FIRST-84) +#define LVN_ASYNCDRAWN (LVN_FIRST-86) +#define LVN_GETEMPTYMARKUP (LVN_FIRST-87) + +/* LVN_INCREMENTALSEARCH return codes */ +#define LVNSCH_DEFAULT -1 +#define LVNSCH_ERROR -2 +#define LVNSCH_IGNORE -3 + +#define LVA_DEFAULT 0x0000 +#define LVA_ALIGNLEFT 0x0001 +#define LVA_ALIGNTOP 0x0002 +#define LVA_SNAPTOGRID 0x0005 + +typedef struct tagLVITEMA +{ + UINT mask; + INT iItem; + INT iSubItem; + UINT state; + UINT stateMask; + LPSTR pszText; + INT cchTextMax; + INT iImage; + LPARAM lParam; + /* (_WIN32_IE >= 0x0300) */ + INT iIndent; + /* (_WIN32_IE >= 0x0560) */ + INT iGroupId; + UINT cColumns; + PUINT puColumns; + /* (_WIN32_WINNT >= 0x0600) */ + PINT piColFmt; + INT iGroup; +} LVITEMA, *LPLVITEMA; + +typedef struct tagLVITEMW +{ + UINT mask; + INT iItem; + INT iSubItem; + UINT state; + UINT stateMask; + LPWSTR pszText; + INT cchTextMax; + INT iImage; + LPARAM lParam; + /* (_WIN32_IE >= 0x0300) */ + INT iIndent; + /* (_WIN32_IE >= 0x0560) */ + INT iGroupId; + UINT cColumns; + PUINT puColumns; + /* (_WIN32_WINNT >= 0x0600) */ + PINT piColFmt; + INT iGroup; +} LVITEMW, *LPLVITEMW; + +#define LVITEM WINELIB_NAME_AW(LVITEM) +#define LPLVITEM WINELIB_NAME_AW(LPLVITEM) + +#define LVITEM_V1_SIZEA CCSIZEOF_STRUCT(LVITEMA, lParam) +#define LVITEM_V1_SIZEW CCSIZEOF_STRUCT(LVITEMW, lParam) +#define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE) + +#define LVITEMA_V5_SIZE CCSIZEOF_STRUCT(LVITEMA, puColumns) +#define LVITEMW_V5_SIZE CCSIZEOF_STRUCT(LVITEMW, puColumns) +#define LVITEM_V5_SIZE WINELIB_NAME_AW(LVITEM_V5_SIZE) + +#define LV_ITEM LVITEM +#define LV_ITEMA LVITEMA +#define LV_ITEMW LVITEMW + +typedef struct LVSETINFOTIP +{ + UINT cbSize; + DWORD dwFlags; + LPWSTR pszText; + int iItem; + int iSubItem; +} LVSETINFOTIP, *PLVSETINFOTIP; + +/* ListView background image structs and constants + For _WIN32_IE version 0x400 and later. */ + +typedef struct tagLVBKIMAGEA +{ + ULONG ulFlags; + HBITMAP hbm; + LPSTR pszImage; + UINT cchImageMax; + int xOffsetPercent; + int yOffsetPercent; +} LVBKIMAGEA, *LPLVBKIMAGEA; + +typedef struct tagLVBKIMAGEW +{ + ULONG ulFlags; + HBITMAP hbm; + LPWSTR pszImage; + UINT cchImageMax; + int xOffsetPercent; + int yOffsetPercent; +} LVBKIMAGEW, *LPLVBKIMAGEW; + +#define LVBKIMAGE WINELIB_NAME_AW(LVBKIMAGE) +#define LPLVBKIMAGE WINELIB_NAME_AW(LPLVBKIMAGE) + +#define LVBKIF_SOURCE_NONE 0x00000000 +#define LVBKIF_SOURCE_HBITMAP 0x00000001 +#define LVBKIF_SOURCE_URL 0x00000002 +#define LVBKIF_SOURCE_MASK 0x00000003 +#define LVBKIF_STYLE_NORMAL 0x00000000 +#define LVBKIF_STYLE_TILE 0x00000010 +#define LVBKIF_STYLE_MASK 0x00000010 +#define LVBKIF_FLAG_TILEOFFSET 0x00000100 +#define LVBKIF_TYPE_WATERMARK 0x10000000 + +#define ListView_SetBkImage(hwnd, plvbki) \ + (BOOL)SNDMSG((hwnd), LVM_SETBKIMAGE, 0, (LPARAM)plvbki) + +#define ListView_GetBkImage(hwnd, plvbki) \ + (BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)plvbki) + +typedef struct tagLVCOLUMNA +{ + UINT mask; + INT fmt; + INT cx; + LPSTR pszText; + INT cchTextMax; + INT iSubItem; + /* (_WIN32_IE >= 0x0300) */ + INT iImage; + INT iOrder; + /* (_WIN32_WINNT >= 0x0600) */ + INT cxMin; + INT cxDefault; + INT cxIdeal; +} LVCOLUMNA, *LPLVCOLUMNA; + +typedef struct tagLVCOLUMNW +{ + UINT mask; + INT fmt; + INT cx; + LPWSTR pszText; + INT cchTextMax; + INT iSubItem; + /* (_WIN32_IE >= 0x0300) */ + INT iImage; + INT iOrder; + /* (_WIN32_WINNT >= 0x0600) */ + INT cxMin; + INT cxDefault; + INT cxIdeal; +} LVCOLUMNW, *LPLVCOLUMNW; + +#define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN) +#define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN) + +#define LVCOLUMN_V1_SIZEA CCSIZEOF_STRUCT(LVCOLUMNA, iSubItem) +#define LVCOLUMN_V1_SIZEW CCSIZEOF_STRUCT(LVCOLUMNW, iSubItem) +#define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE) + +#define LV_COLUMN LVCOLUMN + + +typedef struct tagNMLISTVIEW +{ + NMHDR hdr; + INT iItem; + INT iSubItem; + UINT uNewState; + UINT uOldState; + UINT uChanged; + POINT ptAction; + LPARAM lParam; +} NMLISTVIEW, *LPNMLISTVIEW; + +#define NM_LISTVIEW NMLISTVIEW +#define LPNM_LISTVIEW LPNMLISTVIEW + +typedef struct tagNMITEMACTIVATE +{ + NMHDR hdr; + int iItem; + int iSubItem; + UINT uNewState; + UINT uOldState; + UINT uChanged; + POINT ptAction; + LPARAM lParam; + UINT uKeyFlags; +} NMITEMACTIVATE, *LPNMITEMACTIVATE; + +#define LVKF_ALT 0x0001 +#define LVKF_CONTROL 0x0002 +#define LVKF_SHIFT 0x0004 + +typedef struct tagLVDISPINFO +{ + NMHDR hdr; + LVITEMA item; +} NMLVDISPINFOA, *LPNMLVDISPINFOA; + +typedef struct tagLVDISPINFOW +{ + NMHDR hdr; + LVITEMW item; +} NMLVDISPINFOW, *LPNMLVDISPINFOW; + +#define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO) +#define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO) + +#define LV_DISPINFO NMLVDISPINFO +#define LV_DISPINFOA NMLVDISPINFOA +#define LV_DISPINFOW NMLVDISPINFOW + +#include +typedef struct tagLVKEYDOWN +{ + NMHDR hdr; + WORD wVKey; + UINT flags; +} NMLVKEYDOWN, *LPNMLVKEYDOWN; +#include + +#define LV_KEYDOWN NMLVKEYDOWN + +typedef struct tagNMLVGETINFOTIPA +{ + NMHDR hdr; + DWORD dwFlags; + LPSTR pszText; + int cchTextMax; + int iItem; + int iSubItem; + LPARAM lParam; +} NMLVGETINFOTIPA, *LPNMLVGETINFOTIPA; + +typedef struct tagNMLVGETINFOTIPW +{ + NMHDR hdr; + DWORD dwFlags; + LPWSTR pszText; + int cchTextMax; + int iItem; + int iSubItem; + LPARAM lParam; +} NMLVGETINFOTIPW, *LPNMLVGETINFOTIPW; + +#define NMLVGETINFOTIP WINELIB_NAME_AW(NMLVGETINFOTIP) +#define LPNMLVGETINFOTIP WINELIB_NAME_AW(LPNMLVGETINFOTIP) + +typedef struct tagLVHITTESTINFO +{ + POINT pt; + UINT flags; + INT iItem; + INT iSubItem; + /* (_WIN32_WINNT >= 0x0600) */ + INT iGroup; +} LVHITTESTINFO, *LPLVHITTESTINFO; + +#define LV_HITTESTINFO LVHITTESTINFO +#define _LV_HITTESTINFO tagLVHITTESTINFO +#define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem) + +typedef struct tagLVFINDINFOA +{ + UINT flags; + LPCSTR psz; + LPARAM lParam; + POINT pt; + UINT vkDirection; +} LVFINDINFOA, *LPLVFINDINFOA; + +typedef struct tagLVFINDINFOW +{ + UINT flags; + LPCWSTR psz; + LPARAM lParam; + POINT pt; + UINT vkDirection; +} LVFINDINFOW, *LPLVFINDINFOW; + +#define LVFINDINFO WINELIB_NAME_AW(LVFINDINFO) +#define LPLVFINDINFO WINELIB_NAME_AW(LPLVFINDINFO) + +#define LV_FINDINFO LVFINDINFO +#define LV_FINDINFOA LVFINDINFOA +#define LV_FINDINFOW LVFINDINFOW + +/* Groups relates structures */ + +typedef struct LVGROUP +{ + UINT cbSize; + UINT mask; + LPWSTR pszHeader; + INT cchHeader; + LPWSTR pszFooter; + INT cchFooter; + INT iGroupId; + UINT stateMask; + UINT state; + UINT uAlign; + /* (_WIN32_WINNT >= 0x0600) */ + LPWSTR pszSubtitle; + UINT cchSubtitle; + LPWSTR pszTask; + UINT cchTask; + LPWSTR pszDescriptionTop; + UINT cchDescriptionTop; + LPWSTR pszDescriptionBottom; + UINT cchDescriptionBottom; + INT iTitleImage; + INT iExtendedImage; + INT iFirstItem; + UINT cItems; + LPWSTR pszSubsetTitle; + UINT cchSubsetTitle; +} LVGROUP, *PLVGROUP; + +#define LVGROUP_V5_SIZE CCSIZEOF_STRUCT(LVGROUP, uAlign) + +typedef struct LVGROUPMETRICS +{ + UINT cbSize; + UINT mask; + UINT Left; + UINT Top; + UINT Right; + UINT Bottom; + COLORREF crLeft; + COLORREF crTop; + COLORREF crRight; + COLORREF crBottom; + COLORREF crRightHeader; + COLORREF crFooter; +} LVGROUPMETRICS, *PLVGROUPMETRICS; + +typedef INT (*PFNLVGROUPCOMPARE)(INT, INT, VOID*); + +typedef struct LVINSERTGROUPSORTED +{ + PFNLVGROUPCOMPARE pfnGroupCompare; + LPVOID *pvData; + LVGROUP lvGroup; +} LVINSERTGROUPSORTED, *PLVINSERTGROUPSORTED; + +/* Tile related structures */ + +typedef struct LVTILEINFO +{ + UINT cbSize; + int iItem; + UINT cColumns; + PUINT puColumns; + /* (_WIN32_WINNT >= 0x0600) */ + int* piColFmt; +} LVTILEINFO, *PLVTILEINFO; + +typedef struct LVTILEVIEWINFO +{ + UINT cbSize; + DWORD dwMask; + DWORD dwFlags; + SIZE sizeTile; + int cLines; + RECT rcLabelMargin; +} LVTILEVIEWINFO, *PLVTILEVIEWINFO; + +typedef struct LVINSERTMARK +{ + UINT cbSize; + DWORD dwFlags; + int iItem; + DWORD dwReserved; +} LVINSERTMARK, *PLVINSERTMARK; + +typedef struct tagTCHITTESTINFO +{ + POINT pt; + UINT flags; +} TCHITTESTINFO, *LPTCHITTESTINFO; + +#define TC_HITTESTINFO TCHITTESTINFO + +typedef INT (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM); + +#define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLCUSTOMDRW, clrTextBk) + +typedef struct tagNMLVCUSTOMDRAW +{ + NMCUSTOMDRAW nmcd; + COLORREF clrText; + COLORREF clrTextBk; + int iSubItem; /* (_WIN32_IE >= 0x0400) */ + DWORD dwItemType; /* (_WIN32_IE >= 0x560) */ + COLORREF clrFace; /* (_WIN32_IE >= 0x560) */ + int iIconEffect; /* (_WIN32_IE >= 0x560) */ + int iIconPhase; /* (_WIN32_IE >= 0x560) */ + int iPartId; /* (_WIN32_IE >= 0x560) */ + int iStateId; /* (_WIN32_IE >= 0x560) */ + RECT rcText; /* (_WIN32_IE >= 0x560) */ + UINT uAlign; /* (_WIN32_IE >= 0x560) */ +} NMLVCUSTOMDRAW, *LPNMLVCUSTOMDRAW; + +typedef struct tagNMLVCACHEHINT +{ + NMHDR hdr; + INT iFrom; + INT iTo; +} NMLVCACHEHINT, *LPNMLVCACHEHINT; + +#define LPNM_CACHEHINT LPNMLVCACHEHINT +#define PNM_CACHEHINT LPNMLVCACHEHINT +#define NM_CACHEHINT NMLVCACHEHINT + +typedef struct tagNMLVFINDITEMA +{ + NMHDR hdr; + int iStart; + LVFINDINFOA lvfi; +} NMLVFINDITEMA, *LPNMLVFINDITEMA; + +typedef struct tagNMLVFINDITEMW +{ + NMHDR hdr; + int iStart; + LVFINDINFOW lvfi; +} NMLVFINDITEMW, *LPNMLVFINDITEMW; + +#define NMLVFINDITEM WINELIB_NAME_AW(NMLVFINDITEM) +#define LPNMLVFINDITEM WINELIB_NAME_AW(LPNMLVFINDITEM) +#define NM_FINDITEM NMLVFINDITEM +#define LPNM_FINDITEM LPNMLVFINDITEM +#define PNM_FINDITEM LPNMLVFINDITEM + +typedef struct tagNMLVODSTATECHANGE +{ + NMHDR hdr; + int iFrom; + int iTo; + UINT uNewState; + UINT uOldState; +} NMLVODSTATECHANGE, *LPNMLVODSTATECHANGE; + +#define PNM_ODSTATECHANGE LPNMLVODSTATECHANGE +#define LPNM_ODSTATECHANGE LPNMLVODSTATECHANGE +#define NM_ODSTATECHANGE NMLVODSTATECHANGE + +typedef struct NMLVSCROLL +{ + NMHDR hdr; + int dx; + int dy; +} NMLVSCROLL, *LPNMLVSCROLL; + +#define ListView_SetItemCount(hwnd,count) \ + (BOOL)SNDMSG((hwnd),LVM_SETITEMCOUNT,(WPARAM)(INT)(count),0) +#define ListView_SetTextBkColor(hwnd,clrBk) \ + (BOOL)SNDMSG((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrBk)) +#define ListView_SetTextColor(hwnd,clrBk) \ + (BOOL)SNDMSG((hwnd),LVM_SETTEXTCOLOR,0,(LPARAM)(COLORREF)(clrBk)) +#define ListView_DeleteColumn(hwnd,col)\ + (LRESULT)SNDMSG((hwnd),LVM_DELETECOLUMN,0,(LPARAM)(INT)(col)) +#define ListView_GetColumnA(hwnd,x,col)\ + (LRESULT)SNDMSGA((hwnd),LVM_GETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col)) +#define ListView_GetColumnW(hwnd,x,col)\ + (LRESULT)SNDMSGW((hwnd),LVM_GETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col)) +#define ListView_GetColumn WINELIB_NAME_AW(ListView_GetColumn) +#define ListView_SetColumnA(hwnd,x,col)\ + (LRESULT)SNDMSGA((hwnd),LVM_SETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col)) +#define ListView_SetColumnW(hwnd,x,col)\ + (LRESULT)SNDMSGW((hwnd),LVM_SETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col)) +#define ListView_SetColumn WINELIB_NAME_AW(ListView_SetColumn) +#define ListView_GetColumnWidth(hwnd,x)\ + (INT)SNDMSG((hwnd), LVM_GETCOLUMNWIDTH, (WPARAM)(INT)(x), 0) +#define ListView_SetColumnWidth(hwnd,x,width)\ + (BOOL)SNDMSG((hwnd),LVM_SETCOLUMNWIDTH,(WPARAM)(INT)(x),(LPARAM)(MAKELPARAM(width,0))) + + +#define ListView_GetNextItem(hwnd,nItem,flags) \ + (INT)SNDMSG((hwnd),LVM_GETNEXTITEM,(WPARAM)(INT)(nItem),(LPARAM)(MAKELPARAM(flags,0))) +#define ListView_FindItemA(hwnd,nItem,plvfi) \ + (INT)SNDMSGA((hwnd),LVM_FINDITEMA,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFOA*)(plvfi)) +#define ListView_FindItemW(hwnd,nItem,plvfi) \ + (INT)SNDMSGW((hwnd),LVM_FINDITEMW,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFOW*)(plvfi)) +#define ListView_FindItem WINELIB_NAME_AW(ListView_FindItem) + +#define ListView_Arrange(hwnd,code) \ + (INT)SNDMSG((hwnd), LVM_ARRANGE, (WPARAM)(INT)(code), 0) +#define ListView_GetItemPosition(hwnd,i,ppt) \ + (INT)SNDMSG((hwnd),LVM_GETITEMPOSITION,(WPARAM)(INT)(i),(LPARAM)(LPPOINT)(ppt)) +#define ListView_GetItemRect(hwnd,i,prc,code) \ + (BOOL)SNDMSG((hwnd), LVM_GETITEMRECT, (WPARAM)(int)(i), \ + ((prc) ? (((RECT*)(prc))->left = (code),(LPARAM)(RECT \ + *)(prc)) : (LPARAM)(RECT*)NULL)) +#define ListView_SetItemA(hwnd,pitem) \ + (INT)SNDMSGA((hwnd),LVM_SETITEMA,0,(LPARAM)(const LVITEMA *)(pitem)) +#define ListView_SetItemW(hwnd,pitem) \ + (INT)SNDMSGW((hwnd),LVM_SETITEMW,0,(LPARAM)(const LVITEMW *)(pitem)) +#define ListView_SetItem WINELIB_NAME_AW(ListView_SetItem) +#define ListView_SetItemState(hwnd,i,data,dataMask) \ +{ LVITEM _LVi; _LVi.state = data; _LVi.stateMask = dataMask;\ + SNDMSG(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEM)&_LVi);} +#define ListView_GetItemState(hwnd,i,mask) \ + (UINT)SNDMSG((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask)) +#define ListView_SetCheckState(hwndLV, i, bCheck) \ + { LVITEM _LVi; _LVi.state = INDEXTOSTATEIMAGEMASK((bCheck)?2:1); _LVi.stateMask = LVIS_STATEIMAGEMASK; \ + SNDMSG(hwndLV, LVM_SETITEMSTATE, (WPARAM)(UINT)(i), (LPARAM)(LPLVITEM)&_LVi);} +#define ListView_GetCheckState(hwndLV, i) \ + (((UINT)SNDMSG((hwndLV), LVM_GETITEMSTATE, (i), LVIS_STATEIMAGEMASK) >> 12) - 1) +#define ListView_GetCountPerPage(hwnd) \ + (BOOL)SNDMSG((hwnd), LVM_GETCOUNTPERPAGE, 0, 0) +#define ListView_GetImageList(hwnd,iImageList) \ + (HIMAGELIST)SNDMSG((hwnd), LVM_GETIMAGELIST, (WPARAM)(INT)(iImageList), 0) +#define ListView_GetStringWidthA(hwnd,pstr) \ + (INT)SNDMSGA((hwnd),LVM_GETSTRINGWIDTHA,0,(LPARAM)(LPCSTR)(pstr)) +#define ListView_GetStringWidthW(hwnd,pstr) \ + (INT)SNDMSGW((hwnd),LVM_GETSTRINGWIDTHW,0,(LPARAM)(LPCWSTR)(pstr)) +#define ListView_GetStringWidth WINELIB_NAME_AW(ListView_GetStringWidth) +#define ListView_GetTopIndex(hwnd) \ + (BOOL)SNDMSG((hwnd), LVM_GETTOPINDEX, 0, 0) +#define ListView_Scroll(hwnd,dx,dy) \ + (BOOL)SNDMSG((hwnd),LVM_SCROLL,(WPARAM)(INT)(dx),(LPARAM)(INT)(dy)) +#define ListView_EnsureVisible(hwnd,i,fPartialOk) \ + (BOOL)SNDMSG((hwnd),LVM_ENSUREVISIBLE,(WPARAM)(INT)i,(LPARAM)(BOOL)fPartialOk) +#define ListView_SetBkColor(hwnd,clrBk) \ + (BOOL)SNDMSG((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk)) +#define ListView_SetImageList(hwnd,himl,iImageList) \ + (HIMAGELIST)SNDMSG((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(HIMAGELIST)(himl)) +#define ListView_GetItemCount(hwnd) \ + (INT)SNDMSG((hwnd), LVM_GETITEMCOUNT, 0, 0) +#define ListView_RedrawItems(hwnd,first,last) \ + (BOOL)SNDMSG((hwnd),LVM_REDRAWITEMS,(WPARAM)(INT)(first),(LPARAM)(INT)(last)) +#define ListView_GetEditControl(hwnd) \ + (HWND)SNDMSG((hwnd), LVM_GETEDITCONTROL, 0, 0) +#define ListView_GetTextColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), LVM_GETTEXTCOLOR, 0, 0) +#define ListView_GetTextBkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), LVM_GETTEXTBKCOLOR, 0, 0) +#define ListView_GetBkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), LVM_GETBKCOLOR, 0, 0) +#define ListView_GetItemA(hwnd,pitem) \ + (BOOL)SNDMSGA((hwnd),LVM_GETITEMA,0,(LPARAM)(LVITEMA *)(pitem)) +#define ListView_GetItemW(hwnd,pitem) \ + (BOOL)SNDMSGW((hwnd),LVM_GETITEMW,0,(LPARAM)(LVITEMW *)(pitem)) +#define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem) +#define ListView_GetOrigin(hwnd,ppt) \ + (BOOL)SNDMSG((hwnd),LVM_GETORIGIN,0,(LPARAM)(POINT *)(ppt)) + +#define ListView_HitTest(hwnd,pinfo) \ + (INT)SNDMSG((hwnd),LVM_HITTEST,0,(LPARAM)(LPLVHITTESTINFO)(pinfo)) + +#define ListView_InsertItemA(hwnd,pitem) \ + (INT)SNDMSGA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem)) +#define ListView_InsertItemW(hwnd,pitem) \ + (INT)SNDMSGW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem)) +#define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem) + +#define ListView_DeleteAllItems(hwnd) \ + (BOOL)SNDMSG((hwnd), LVM_DELETEALLITEMS, 0, 0) + +#define ListView_InsertColumnA(hwnd,iCol,pcol) \ + (INT)SNDMSGA((hwnd),LVM_INSERTCOLUMNA,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNA *)(pcol)) +#define ListView_InsertColumnW(hwnd,iCol,pcol) \ + (INT)SNDMSGW((hwnd),LVM_INSERTCOLUMNW,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNW *)(pcol)) +#define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn) + +#define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \ + (BOOL)SNDMSG((hwndLV),LVM_SORTITEMS,(WPARAM)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare) +#define ListView_SortItemsEx(hwndLV, _pfnCompare, _lPrm) \ + (BOOL)SNDMSG((hwndLV), LVM_SORTITEMSEX, (WPARAM)(LPARAM)(_lPrm), (LPARAM)(PFNLVCOMPARE)(_pfnCompare)) + +#define ListView_SetItemPosition(hwndLV, i, x, y) \ + (BOOL)SNDMSG((hwndLV),LVM_SETITEMPOSITION,(WPARAM)(INT)(i),MAKELPARAM((x),(y))) +#define ListView_GetSelectedCount(hwndLV) \ + (UINT)SNDMSG((hwndLV), LVM_GETSELECTEDCOUNT, 0, 0) + +#define ListView_EditLabelA(hwndLV, i) \ + (HWND)SNDMSG((hwndLV), LVM_EDITLABELA, (WPARAM)(int)(i), 0) +#define ListView_EditLabelW(hwndLV, i) \ + (HWND)SNDMSG((hwndLV), LVM_EDITLABELW, (WPARAM)(int)(i), 0) +#define ListView_EditLabel WINELIB_NAME_AW(ListView_EditLabel) + +#define ListView_GetItemTextA(hwndLV, i, _iSubItem, _pszText, _cchTextMax) \ +{ \ + LVITEMA _LVi;\ + _LVi.iSubItem = _iSubItem;\ + _LVi.cchTextMax = _cchTextMax;\ + _LVi.pszText = _pszText;\ + SNDMSGA(hwndLV, LVM_GETITEMTEXTA, (WPARAM)(i), (LPARAM)&_LVi);\ +} +#define ListView_GetItemTextW(hwndLV, i, _iSubItem, _pszText, _cchTextMax) \ +{ \ + LVITEMW _LVi;\ + _LVi.iSubItem = _iSubItem;\ + _LVi.cchTextMax = _cchTextMax;\ + _LVi.pszText = _pszText;\ + SNDMSGW(hwndLV, LVM_GETITEMTEXTW, (WPARAM)(i), (LPARAM)&_LVi);\ +} +#define ListView_GetItemText WINELIB_NAME_AW(ListView_GetItemText) +#define ListView_SetItemPosition32(hwnd,n,x1,y1) \ +{ POINT ptNewPos; ptNewPos.x = (x1); ptNewPos.y = (y1); SNDMSG((hwnd), LVM_SETITEMPOSITION32, (WPARAM)(int)(n), (LPARAM)&ptNewPos); } +#define ListView_SetItemTextA(hwndLV, i, _iSubItem, _pszText) \ +{ LVITEMA _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\ + SNDMSGA(hwndLV, LVM_SETITEMTEXTA, (WPARAM)i, (LPARAM) (LVITEMA*)&_LVi);} +#define ListView_SetItemTextW(hwndLV, i, _iSubItem, _pszText) \ +{ LVITEMW _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\ + SNDMSGW(hwndLV, LVM_SETITEMTEXTW, (WPARAM)i, (LPARAM) (LVITEMW*)& _LVi);} +#define ListView_SetItemText WINELIB_NAME_AW(ListView_SetItemText) + +#define ListView_DeleteItem(hwndLV, i) \ + (BOOL)SNDMSG(hwndLV, LVM_DELETEITEM, (WPARAM)(int)(i), 0) +#define ListView_Update(hwndLV, i) \ + (BOOL)SNDMSG((hwndLV), LVM_UPDATE, (WPARAM)(i), 0) +#define ListView_GetColumnOrderArray(hwndLV, iCount, pi) \ + (BOOL)SNDMSG((hwndLV), LVM_GETCOLUMNORDERARRAY, (WPARAM)iCount, (LPARAM)(LPINT)pi) +#define ListView_GetExtendedListViewStyle(hwndLV) \ + (DWORD)SNDMSG((hwndLV), LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0) +#define ListView_GetHotCursor(hwndLV) \ + (HCURSOR)SNDMSG((hwndLV), LVM_GETHOTCURSOR, 0, 0) +#define ListView_GetHotItem(hwndLV) \ + (int)SNDMSG((hwndLV), LVM_GETHOTITEM, 0, 0) +#define ListView_GetItemSpacing(hwndLV, fSmall) \ + (DWORD)SNDMSG((hwndLV), LVM_GETITEMSPACING, (WPARAM)fSmall, 0) +#define ListView_GetSubItemRect(hwndLV, iItem, iSubItem, code, prc) \ + (BOOL)SNDMSG((hwndLV), LVM_GETSUBITEMRECT, (WPARAM)(int)(iItem), \ + ((prc) ? ((((LPRECT)(prc))->top = iSubItem), (((LPRECT)(prc))->left = code), (LPARAM)(prc)) : 0)) +#define ListView_GetToolTips(hwndLV) \ + (HWND)SNDMSG((hwndLV), LVM_GETTOOLTIPS, 0, 0) +#define ListView_SetColumnOrderArray(hwndLV, iCount, pi) \ + (BOOL)SNDMSG((hwndLV), LVM_SETCOLUMNORDERARRAY, (WPARAM)iCount, (LPARAM)(LPINT)pi) +#define ListView_SetExtendedListViewStyle(hwndLV, dw) \ + (DWORD)SNDMSG((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, 0, (LPARAM)dw) +#define ListView_SetExtendedListViewStyleEx(hwndLV, dwMask, dw) \ + (DWORD)SNDMSG((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, (WPARAM)dwMask, (LPARAM)dw) +#define ListView_SetHotCursor(hwndLV, hcur) \ + (HCURSOR)SNDMSG((hwndLV), LVM_SETHOTCURSOR, 0, (LPARAM)hcur) +#define ListView_SetHotItem(hwndLV, i) \ + (int)SNDMSG((hwndLV), LVM_SETHOTITEM, (WPARAM)i, 0) +#define ListView_SetIconSpacing(hwndLV, cx, cy) \ + (DWORD)SNDMSG((hwndLV), LVM_SETICONSPACING, 0, MAKELONG(cx,cy)) +#define ListView_SetToolTips(hwndLV, hwndNewHwnd) \ + (HWND)SNDMSG((hwndLV), LVM_SETTOOLTIPS, (WPARAM)hwndNewHwnd, 0) +#define ListView_SubItemHitTest(hwndLV, plvhti) \ + (int)SNDMSG((hwndLV), LVM_SUBITEMHITTEST, 0, (LPARAM)(LPLVHITTESTINFO)(plvhti)) +#define ListView_GetSelectionMark(hwndLV) \ + (int)SNDMSG((hwndLV), LVM_GETSELECTIONMARK, 0, 0) +#define ListView_SetSelectionMark(hwndLV, iItem) \ + (int)SNDMSG((hwndLV), LVM_SETSELECTIONMARK, 0, (LPARAM)(iItem)) +#define ListView_GetViewRect(hwndLV, prc) \ + (BOOL)SNDMSG((hwndLV),LVM_GETVIEWRECT,0,(LPARAM)(LPRECT)(prc)) +#define ListView_GetHeader(hwndLV) \ + (HWND)SNDMSG((hwndLV), LVM_GETHEADER, 0, 0) +#define ListView_SetSelectedColumn(hwnd, iCol) \ + SNDMSG((hwnd), LVM_SETSELECTEDCOLUMN, (WPARAM)iCol, 0) +#define ListView_SetTileWidth(hwnd, cpWidth) \ + SNDMSG((hwnd), LVM_SETTILEWIDTH, (WPARAM)cpWidth, 0) +#define ListView_SetView(hwnd, iView) \ + (DWORD)SNDMSG((hwnd), LVM_SETVIEW, (WPARAM)(DWORD)iView, 0) +#define ListView_GetView(hwnd) \ + (DWORD)SNDMSG((hwnd), LVM_GETVIEW, 0, 0) +#define ListView_InsertGroup(hwnd, index, pgrp) \ + SNDMSG((hwnd), LVM_INSERTGROUP, (WPARAM)index, (LPARAM)pgrp) +#define ListView_SetGroupHeaderImageList(hwnd, himl) \ + SNDMSG((hwnd), LVM_SETIMAGELIST, (WPARAM)LVSIL_GROUPHEADER, (LPARAM)himl) +#define ListView_GetGroupHeaderImageList(hwnd) \ + SNDMSG((hwnd), LVM_GETIMAGELIST, (WPARAM)LVSIL_GROUPHEADER, 0) +#define ListView_SetGroupInfo(hwnd, iGroupId, pgrp) \ + SNDMSG((hwnd), LVM_SETGROUPINFO, (WPARAM)iGroupId, (LPARAM)pgrp) +#define ListView_GetGroupInfo(hwnd, iGroupId, pgrp) \ + SNDMSG((hwnd), LVM_GETGROUPINFO, (WPARAM)iGroupId, (LPARAM)pgrp) +#define ListView_RemoveGroup(hwnd, iGroupId) \ + SNDMSG((hwnd), LVM_REMOVEGROUP, (WPARAM)iGroupId, 0) +#define ListView_MoveGroup(hwnd, iGroupId, toIndex) \ + SNDMSG((hwnd), LVM_MOVEGROUP, (WPARAM)iGroupId, (LPARAM)toIndex) +#define ListView_MoveItemToGroup(hwnd, idItemFrom, idGroupTo) \ + SNDMSG((hwnd), LVM_MOVEITEMTOGROUP, (WPARAM)idItemFrom, (LPARAM)idGroupTo) +#define ListView_SetGroupMetrics(hwnd, pGroupMetrics) \ + SNDMSG((hwnd), LVM_SETGROUPMETRICS, 0, (LPARAM)pGroupMetrics) +#define ListView_GetGroupMetrics(hwnd, pGroupMetrics) \ + SNDMSG((hwnd), LVM_GETGROUPMETRICS, 0, (LPARAM)pGroupMetrics) +#define ListView_EnableGroupView(hwnd, fEnable) \ + SNDMSG((hwnd), LVM_ENABLEGROUPVIEW, (WPARAM)fEnable, 0) +#define ListView_SortGroups(hwnd, _pfnGroupCompate, _plv) \ + SNDMSG((hwnd), LVM_SORTGROUPS, (WPARAM)_pfnGroupCompate, (LPARAM)_plv) +#define ListView_InsertGroupSorted(hwnd, structInsert) \ + SNDMSG((hwnd), LVM_INSERTGROUPSORTED, (WPARAM)structInsert, 0) +#define ListView_RemoveAllGroups(hwnd) \ + SNDMSG((hwnd), LVM_REMOVEALLGROUPS, 0, 0) +#define ListView_HasGroup(hwnd, dwGroupId) \ + SNDMSG((hwnd), LVM_HASGROUP, dwGroupId, 0) +#define ListView_SetTileViewInfo(hwnd, ptvi) \ + SNDMSG((hwnd), LVM_SETTILEVIEWINFO, 0, (LPARAM)ptvi) +#define ListView_GetTileViewInfo(hwnd, ptvi) \ + SNDMSG((hwnd), LVM_GETTILEVIEWINFO, 0, (LPARAM)ptvi) +#define ListView_SetTileInfo(hwnd, pti) \ + SNDMSG((hwnd), LVM_SETTILEINFO, 0, (LPARAM)pti) +#define ListView_GetTileInfo(hwnd, pti) \ + SNDMSG((hwnd), LVM_GETTILEINFO, 0, (LPARAM)pti) +#define ListView_SetInsertMark(hwnd, lvim) \ + (BOOL)SNDMSG((hwnd), LVM_SETINSERTMARK, (WPARAM) 0, (LPARAM) (lvim)) +#define ListView_GetInsertMark(hwnd, lvim) \ + (BOOL)SNDMSG((hwnd), LVM_GETINSERTMARK, (WPARAM) 0, (LPARAM) (lvim)) +#define ListView_InsertMarkHitTest(hwnd, point, lvim) \ + (int)SNDMSG((hwnd), LVM_INSERTMARKHITTEST, (WPARAM)(LPPOINT)(point), (LPARAM)(LPLVINSERTMARK)(lvim)) +#define ListView_GetInsertMarkRect(hwnd, rc) \ + (int)SNDMSG((hwnd), LVM_GETINSERTMARKRECT, (WPARAM)0, (LPARAM)(LPRECT)(rc)) +#define ListView_SetInsertMarkColor(hwnd, color) \ + (COLORREF)SNDMSG((hwnd), LVM_SETINSERTMARKCOLOR, (WPARAM)0, (LPARAM)(COLORREF)(color)) +#define ListView_GetInsertMarkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), LVM_GETINSERTMARKCOLOR, (WPARAM)0, (LPARAM)0) +#define ListView_SetInfoTip(hwndLV, plvInfoTip)\ + (BOOL)SNDMSG((hwndLV), LVM_SETINFOTIP, (WPARAM)0, (LPARAM)plvInfoTip) +#define ListView_GetSelectedColumn(hwnd) \ + (UINT)SNDMSG((hwnd), LVM_GETSELECTEDCOLUMN, 0, 0) +#define ListView_IsGroupViewEnabled(hwnd) \ + (BOOL)SNDMSG((hwnd), LVM_ISGROUPVIEWENABLED, 0, 0) +#define ListView_GetOutlineColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), LVM_GETOUTLINECOLOR, 0, 0) +#define ListView_SetOutlineColor(hwnd, color) \ + (COLORREF)SNDMSG((hwnd), LVM_SETOUTLINECOLOR, (WPARAM)0, (LPARAM)(COLORREF)(color)) +#define ListView_CancelEditLabel(hwnd) \ + (VOID)SNDMSG((hwnd), LVM_CANCELEDITLABEL, (WPARAM)0, (LPARAM)0) +#define ListView_MapIndexToID(hwnd, index) \ + (UINT)SNDMSG((hwnd), LVM_MAPINDEXTOID, (WPARAM)index, (LPARAM)0) +#define ListView_MapIDToIndex(hwnd, id) \ + (UINT)SNDMSG((hwnd), LVM_MAPIDTOINDEX, (WPARAM)id, (LPARAM)0) +#define ListView_SetUnicodeFormat(hwnd, fUnicode) \ + (BOOL)SNDMSG((hwnd), LVM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0) +#define ListView_GetUnicodeFormat(hwnd) \ + (BOOL)SNDMSG((hwnd), LVM_GETUNICODEFORMAT, 0, 0) + +/* Tab Control */ + +#define WC_TABCONTROLA "SysTabControl32" +#if defined(__GNUC__) +# define WC_TABCONTROLW (const WCHAR []){ 'S','y','s', \ + 'T','a','b','C','o','n','t','r','o','l','3','2',0 } +#elif defined(_MSC_VER) +# define WC_TABCONTROLW L"SysTabControl32" +#else +static const WCHAR WC_TABCONTROLW[] = { 'S','y','s', + 'T','a','b','C','o','n','t','r','o','l','3','2',0 }; +#endif +#define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL) + +/* tab control styles */ +#define TCS_EX_FLATSEPARATORS 0x00000001 /* to be used with */ +#define TCS_EX_REGISTERDROP 0x00000002 /* TCM_SETEXTENDEDSTYLE */ + + +#define TCM_FIRST 0x1300 + +#define TCM_GETIMAGELIST (TCM_FIRST + 2) +#define TCM_SETIMAGELIST (TCM_FIRST + 3) +#define TCM_GETITEMCOUNT (TCM_FIRST + 4) +#define TCM_GETITEM WINELIB_NAME_AW(TCM_GETITEM) +#define TCM_GETITEMA (TCM_FIRST + 5) +#define TCM_GETITEMW (TCM_FIRST + 60) +#define TCM_SETITEMA (TCM_FIRST + 6) +#define TCM_SETITEMW (TCM_FIRST + 61) +#define TCM_SETITEM WINELIB_NAME_AW(TCM_SETITEM) +#define TCM_INSERTITEMA (TCM_FIRST + 7) +#define TCM_INSERTITEMW (TCM_FIRST + 62) +#define TCM_INSERTITEM WINELIB_NAME_AW(TCM_INSERTITEM) +#define TCM_DELETEITEM (TCM_FIRST + 8) +#define TCM_DELETEALLITEMS (TCM_FIRST + 9) +#define TCM_GETITEMRECT (TCM_FIRST + 10) +#define TCM_GETCURSEL (TCM_FIRST + 11) +#define TCM_SETCURSEL (TCM_FIRST + 12) +#define TCM_HITTEST (TCM_FIRST + 13) +#define TCM_SETITEMEXTRA (TCM_FIRST + 14) +#define TCM_ADJUSTRECT (TCM_FIRST + 40) +#define TCM_SETITEMSIZE (TCM_FIRST + 41) +#define TCM_REMOVEIMAGE (TCM_FIRST + 42) +#define TCM_SETPADDING (TCM_FIRST + 43) +#define TCM_GETROWCOUNT (TCM_FIRST + 44) +#define TCM_GETTOOLTIPS (TCM_FIRST + 45) +#define TCM_SETTOOLTIPS (TCM_FIRST + 46) +#define TCM_GETCURFOCUS (TCM_FIRST + 47) +#define TCM_SETCURFOCUS (TCM_FIRST + 48) +#define TCM_SETMINTABWIDTH (TCM_FIRST + 49) +#define TCM_DESELECTALL (TCM_FIRST + 50) +#define TCM_HIGHLIGHTITEM (TCM_FIRST + 51) +#define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52) +#define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53) +#define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT + + +#define TCIF_TEXT 0x0001 +#define TCIF_IMAGE 0x0002 +#define TCIF_RTLREADING 0x0004 +#define TCIF_PARAM 0x0008 +#define TCIF_STATE 0x0010 + +#define TCIS_BUTTONPRESSED 0x0001 +#define TCIS_HIGHLIGHTED 0x0002 + +/* TabCtrl Macros */ +#define TabCtrl_GetImageList(hwnd) \ + (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0) +#define TabCtrl_SetImageList(hwnd, himl) \ + (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl)) +#define TabCtrl_GetItemCount(hwnd) \ + (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0) +#define TabCtrl_GetItemA(hwnd, iItem, pitem) \ + (BOOL)SNDMSGA((hwnd), TCM_GETITEMA, (WPARAM)(int)iItem, (LPARAM)(TCITEMA *)(pitem)) +#define TabCtrl_GetItemW(hwnd, iItem, pitem) \ + (BOOL)SNDMSGW((hwnd), TCM_GETITEMW, (WPARAM)(int)iItem, (LPARAM)(TCITEMW *)(pitem)) +#define TabCtrl_GetItem WINELIB_NAME_AW(TabCtrl_GetItem) +#define TabCtrl_SetItemA(hwnd, iItem, pitem) \ + (BOOL)SNDMSGA((hwnd), TCM_SETITEMA, (WPARAM)(int)iItem, (LPARAM)(TCITEMA *)(pitem)) +#define TabCtrl_SetItemW(hwnd, iItem, pitem) \ + (BOOL)SNDMSGW((hwnd), TCM_SETITEMW, (WPARAM)(int)iItem, (LPARAM)(TCITEMW *)(pitem)) +#define TabCtrl_SetItem WINELIB_NAME_AW(TabCtrl_SetItem) +#define TabCtrl_InsertItemA(hwnd, iItem, pitem) \ + (int)SNDMSGA((hwnd), TCM_INSERTITEMA, (WPARAM)(int)iItem, (LPARAM)(const TCITEMA *)(pitem)) +#define TabCtrl_InsertItemW(hwnd, iItem, pitem) \ + (int)SNDMSGW((hwnd), TCM_INSERTITEMW, (WPARAM)(int)iItem, (LPARAM)(const TCITEMW *)(pitem)) +#define TabCtrl_InsertItem WINELIB_NAME_AW(TabCtrl_InsertItem) +#define TabCtrl_DeleteItem(hwnd, i) \ + (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0) +#define TabCtrl_DeleteAllItems(hwnd) \ + (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0) +#define TabCtrl_GetItemRect(hwnd, i, prc) \ + (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT *)(prc)) +#define TabCtrl_GetCurSel(hwnd) \ + (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0) +#define TabCtrl_SetCurSel(hwnd, i) \ + (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0) +#define TabCtrl_HitTest(hwndTC, pinfo) \ + (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO *)(pinfo)) +#define TabCtrl_SetItemExtra(hwndTC, cb) \ + (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0) +#define TabCtrl_AdjustRect(hwnd, bLarger, prc) \ + (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT *)prc) +#define TabCtrl_SetItemSize(hwnd, x, y) \ + (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y)) +#define TabCtrl_RemoveImage(hwnd, i) \ + (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0) +#define TabCtrl_SetPadding(hwnd, cx, cy) \ + (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy)) +#define TabCtrl_GetRowCount(hwnd) \ + (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0) +#define TabCtrl_GetToolTips(hwnd) \ + (HWND)SNDMSG((hwnd), TCM_GETTOOLTIPS, 0, 0) +#define TabCtrl_SetToolTips(hwnd, hwndTT) \ + (void)SNDMSG((hwnd), TCM_SETTOOLTIPS, (WPARAM)hwndTT, 0) +#define TabCtrl_GetCurFocus(hwnd) \ + (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0) +#define TabCtrl_SetCurFocus(hwnd, i) \ + SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0) +#define TabCtrl_SetMinTabWidth(hwnd, x) \ + (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x) +#define TabCtrl_DeselectAll(hwnd, fExcludeFocus)\ + (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0) +#define TabCtrl_GetUnicodeFormat(hwnd) \ + (BOOL)SNDMSG((hwnd), TCM_GETUNICODEFORMAT, 0, 0) +#define TabCtrl_SetUnicodeFormat(hwnd, fUnicode) \ + (BOOL)SNDMSG((hwnd), TCM_SETUNICODEFORMAT, (WPARAM)fUnicode, 0) +#define TabCtrl_GetExtendedStyle(hwnd) \ + (BOOL)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0) +#define TabCtrl_SetExtendedStyle(hwnd, dwExStyle) \ + (BOOL)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, (LPARAM)dwExStyle) +#define TabCtrl_HighlightItem(hwnd, i, fHighlight) \ + (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG(fHighlight, 0)) + +/* constants for TCHITTESTINFO */ + +#define TCHT_NOWHERE 0x01 +#define TCHT_ONITEMICON 0x02 +#define TCHT_ONITEMLABEL 0x04 +#define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL) + +typedef struct tagTCITEMHEADERA +{ + UINT mask; + UINT lpReserved1; + UINT lpReserved2; + LPSTR pszText; + int cchTextMax; + int iImage; +} TCITEMHEADERA, *LPTCITEMHEADERA; + +typedef struct tagTCITEMHEADERW +{ + UINT mask; + UINT lpReserved1; + UINT lpReserved2; + LPWSTR pszText; + int cchTextMax; + int iImage; +} TCITEMHEADERW, *LPTCITEMHEADERW; + +#define TCITEMHEADER WINELIB_NAME_AW(TCITEMHEADER) +#define LPTCITEMHEADER WINELIB_NAME_AW(LPTCITEMHEADER) +#define TC_ITEMHEADER WINELIB_NAME_AW(TCITEMHEADER) +#define LPTC_ITEMHEADER WINELIB_NAME_AW(LPTCITEMHEADER) + +typedef struct tagTCITEMA +{ + UINT mask; + UINT dwState; + UINT dwStateMask; + LPSTR pszText; + INT cchTextMax; + INT iImage; + LPARAM lParam; +} TCITEMA, *LPTCITEMA; + +typedef struct tagTCITEMW +{ + UINT mask; + DWORD dwState; + DWORD dwStateMask; + LPWSTR pszText; + INT cchTextMax; + INT iImage; + LPARAM lParam; +} TCITEMW, *LPTCITEMW; + +#define TCITEM WINELIB_NAME_AW(TCITEM) +#define LPTCITEM WINELIB_NAME_AW(LPTCITEM) +#define TC_ITEM WINELIB_NAME_AW(TCITEM) +#define LPTC_ITEM WINELIB_NAME_AW(LPTCITEM) + +#define TCN_FIRST (0U-550U) +#define TCN_LAST (0U-580U) +#define TCN_KEYDOWN (TCN_FIRST - 0) +#define TCN_SELCHANGE (TCN_FIRST - 1) +#define TCN_SELCHANGING (TCN_FIRST - 2) +#define TCN_GETOBJECT (TCN_FIRST - 3) +#define TCN_FOCUSCHANGE (TCN_FIRST - 4) + +#include +typedef struct tagTCKEYDOWN +{ + NMHDR hdr; + WORD wVKey; + UINT flags; +} NMTCKEYDOWN; +#include + +#define TC_KEYDOWN NMTCKEYDOWN + +/* ComboBoxEx control */ + +#define WC_COMBOBOXEXA "ComboBoxEx32" +#if defined(__GNUC__) +# define WC_COMBOBOXEXW (const WCHAR []){ 'C','o','m','b','o', \ + 'B','o','x','E','x','3','2',0 } +#elif defined(_MSC_VER) +# define WC_COMBOBOXEXW L"ComboBoxEx32" +#else +static const WCHAR WC_COMBOBOXEXW[] = { 'C','o','m','b','o', + 'B','o','x','E','x','3','2',0 }; +#endif +#define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX) + +#define CBEIF_TEXT 0x00000001 +#define CBEIF_IMAGE 0x00000002 +#define CBEIF_SELECTEDIMAGE 0x00000004 +#define CBEIF_OVERLAY 0x00000008 +#define CBEIF_INDENT 0x00000010 +#define CBEIF_LPARAM 0x00000020 +#define CBEIF_DI_SETITEM 0x10000000 + +#define CBEM_INSERTITEMA (WM_USER+1) +#define CBEM_INSERTITEMW (WM_USER+11) +#define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM) +#define CBEM_SETIMAGELIST (WM_USER+2) +#define CBEM_GETIMAGELIST (WM_USER+3) +#define CBEM_GETITEMA (WM_USER+4) +#define CBEM_GETITEMW (WM_USER+13) +#define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM) +#define CBEM_SETITEMA (WM_USER+5) +#define CBEM_SETITEMW (WM_USER+12) +#define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM) +#define CBEM_DELETEITEM CB_DELETESTRING +#define CBEM_GETCOMBOCONTROL (WM_USER+6) +#define CBEM_GETEDITCONTROL (WM_USER+7) +#define CBEM_SETEXSTYLE (WM_USER+8) +#define CBEM_GETEXSTYLE (WM_USER+9) +#define CBEM_GETEXTENDEDSTYLE (WM_USER+9) +#define CBEM_SETEXTENDEDSTYLE (WM_USER+14) +#define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define CBEM_HASEDITCHANGED (WM_USER+10) +#define CBEM_SETWINDOWTHEME CCM_SETWINDOWTHEME + +#define CBEIF_TEXT 0x00000001 +#define CBEIF_IMAGE 0x00000002 +#define CBEIF_SELECTEDIMAGE 0x00000004 +#define CBEIF_OVERLAY 0x00000008 +#define CBEIF_INDENT 0x00000010 +#define CBEIF_LPARAM 0x00000020 +#define CBEIF_DI_SETITEM 0x10000000 + +#define CBEN_FIRST (0U-800U) +#define CBEN_LAST (0U-830U) + +#define CBEN_GETDISPINFOA (CBEN_FIRST - 0) +#define CBEN_GETDISPINFOW (CBEN_FIRST - 7) +#define CBEN_GETDISPINFO WINELIB_NAME_AW(CBEN_GETDISPINFO) +#define CBEN_INSERTITEM (CBEN_FIRST - 1) +#define CBEN_DELETEITEM (CBEN_FIRST - 2) +#define CBEN_BEGINEDIT (CBEN_FIRST - 4) +#define CBEN_ENDEDITA (CBEN_FIRST - 5) +#define CBEN_ENDEDITW (CBEN_FIRST - 6) +#define CBEN_ENDEDIT WINELIB_NAME_AW(CBEN_ENDEDIT) +#define CBEN_DRAGBEGINA (CBEN_FIRST - 8) +#define CBEN_DRAGBEGINW (CBEN_FIRST - 9) +#define CBEN_DRAGBEGIN WINELIB_NAME_AW(CBEN_DRAGBEGIN) + +#define CBES_EX_NOEDITIMAGE 0x00000001 +#define CBES_EX_NOEDITIMAGEINDENT 0x00000002 +#define CBES_EX_PATHWORDBREAKPROC 0x00000004 +#define CBES_EX_NOSIZELIMIT 0x00000008 +#define CBES_EX_CASESENSITIVE 0x00000010 + + +typedef struct tagCOMBOBOXEXITEMA +{ + UINT mask; + INT_PTR iItem; + LPSTR pszText; + int cchTextMax; + int iImage; + int iSelectedImage; + int iOverlay; + int iIndent; + LPARAM lParam; +} COMBOBOXEXITEMA, *PCOMBOBOXEXITEMA; +typedef COMBOBOXEXITEMA const *PCCOMBOEXITEMA; /* Yes, there's a BOX missing */ + +typedef struct tagCOMBOBOXEXITEMW +{ + UINT mask; + INT_PTR iItem; + LPWSTR pszText; + int cchTextMax; + int iImage; + int iSelectedImage; + int iOverlay; + int iIndent; + LPARAM lParam; +} COMBOBOXEXITEMW, *PCOMBOBOXEXITEMW; +typedef COMBOBOXEXITEMW const *PCCOMBOEXITEMW; /* Yes, there's a BOX missing */ + +#define COMBOBOXEXITEM WINELIB_NAME_AW(COMBOBOXEXITEM) +#define PCOMBOBOXEXITEM WINELIB_NAME_AW(PCOMBOBOXEXITEM) +#define PCCOMBOBOXEXITEM WINELIB_NAME_AW(PCCOMBOEXITEM) /* Yes, there's a BOX missing */ + +#define CBENF_KILLFOCUS 1 +#define CBENF_RETURN 2 +#define CBENF_ESCAPE 3 +#define CBENF_DROPDOWN 4 + +#define CBEMAXSTRLEN 260 + +typedef struct tagNMCBEENDEDITW +{ + NMHDR hdr; + BOOL fChanged; + int iNewSelection; + WCHAR szText[CBEMAXSTRLEN]; + int iWhy; +} NMCBEENDEDITW, *LPNMCBEENDEDITW, *PNMCBEENDEDITW; + +typedef struct tagNMCBEENDEDITA +{ + NMHDR hdr; + BOOL fChanged; + int iNewSelection; + char szText[CBEMAXSTRLEN]; + int iWhy; +} NMCBEENDEDITA, *LPNMCBEENDEDITA, *PNMCBEENDEDITA; + +#define NMCBEENDEDIT WINELIB_NAME_AW(NMCBEENDEDIT) +#define LPNMCBEENDEDIT WINELIB_NAME_AW(LPNMCBEENDEDIT) +#define PNMCBEENDEDIT WINELIB_NAME_AW(PNMCBEENDEDIT) + +typedef struct +{ + NMHDR hdr; + COMBOBOXEXITEMA ceItem; +} NMCOMBOBOXEXA, *PNMCOMBOBOXEXA; + +typedef struct +{ + NMHDR hdr; + COMBOBOXEXITEMW ceItem; +} NMCOMBOBOXEXW, *PNMCOMBOBOXEXW; + +#define NMCOMBOBOXEX WINELIB_NAME_AW(NMCOMBOBOXEX) +#define PNMCOMBOBOXEX WINELIB_NAME_AW(PNMCOMBOBOXEX) + +typedef struct +{ + NMHDR hdr; + int iItemid; + char szText[CBEMAXSTRLEN]; +} NMCBEDRAGBEGINA, *PNMCBEDRAGBEGINA, *LPNMCBEDRAGBEGINA; + +typedef struct +{ + NMHDR hdr; + int iItemid; + WCHAR szText[CBEMAXSTRLEN]; +} NMCBEDRAGBEGINW, *PNMCBEDRAGBEGINW, *LPNMCBEDRAGBEGINW; + +#define NMCBEDRAGBEGIN WINELIB_NAME_AW(NMCBEDRAGBEGIN) +#define PNMCBEDRAGBEGIN WINELIB_NAME_AW(PNMCBEDRAGBEGIN) +#define LPNMCBEDRAGBEGIN WINELIB_NAME_AW(LPNMCBEDRAGBEGIN) + + +/* Hotkey control */ + +#define HOTKEY_CLASSA "msctls_hotkey32" +#if defined(__GNUC__) +# define HOTKEY_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \ + 'h','o','t','k','e','y','3','2',0 } +#elif defined(_MSC_VER) +# define HOTKEY_CLASSW L"msctls_hotkey32" +#else +static const WCHAR HOTKEY_CLASSW[] = { 'm','s','c','t','l','s','_', + 'h','o','t','k','e','y','3','2',0 }; +#endif +#define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS) + +#define HOTKEYF_SHIFT 0x01 +#define HOTKEYF_CONTROL 0x02 +#define HOTKEYF_ALT 0x04 +#define HOTKEYF_EXT 0x08 + +#define HKCOMB_NONE 0x0001 +#define HKCOMB_S 0x0002 +#define HKCOMB_C 0x0004 +#define HKCOMB_A 0x0008 +#define HKCOMB_SC 0x0010 +#define HKCOMB_SA 0x0020 +#define HKCOMB_CA 0x0040 +#define HKCOMB_SCA 0x0080 + +#define HKM_SETHOTKEY (WM_USER+1) +#define HKM_GETHOTKEY (WM_USER+2) +#define HKM_SETRULES (WM_USER+3) + + +/* animate control */ + +#define ANIMATE_CLASSA "SysAnimate32" +#if defined(__GNUC__) +# define ANIMATE_CLASSW (const WCHAR []){ 'S','y','s', \ + 'A','n','i','m','a','t','e','3','2',0 } +#elif defined(_MSC_VER) +# define ANIMATE_CLASSW L"SysAnimate32" +#else +static const WCHAR ANIMATE_CLASSW[] = { 'S','y','s', + 'A','n','i','m','a','t','e','3','2',0 }; +#endif +#define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS) + + +#define ACM_OPENA (WM_USER+100) +#define ACM_OPENW (WM_USER+103) +#define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN) +#define ACM_PLAY (WM_USER+101) +#define ACM_STOP (WM_USER+102) + +#define ACN_START 1 +#define ACN_STOP 2 + +#define Animate_CreateA(hwndP,id,dwStyle,hInstance) \ + CreateWindowA(ANIMATE_CLASSA,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL) +#define Animate_CreateW(hwndP,id,dwStyle,hInstance) \ + CreateWindowW(ANIMATE_CLASSW,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL) +#define Animate_Create WINELIB_NAME_AW(Animate_Create) +#define Animate_OpenA(hwnd,szName) \ + (BOOL)SNDMSGA(hwnd,ACM_OPENA,0,(LPARAM)(LPSTR)(szName)) +#define Animate_OpenW(hwnd,szName) \ + (BOOL)SNDMSGW(hwnd,ACM_OPENW,0,(LPARAM)(LPWSTR)(szName)) +#define Animate_Open WINELIB_NAME_AW(Animate_Open) +#define Animate_OpenExA(hwnd,hInst,szName) \ + (BOOL)SNDMSGA(hwnd,ACM_OPENA,(WPARAM)hInst,(LPARAM)(LPSTR)(szName)) +#define Animate_OpenExW(hwnd,hInst,szName) \ + (BOOL)SNDMSGW(hwnd,ACM_OPENW,(WPARAM)hInst,(LPARAM)(LPWSTR)(szName)) +#define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx) +#define Animate_Play(hwnd,from,to,rep) \ + (BOOL)SNDMSG(hwnd,ACM_PLAY,(WPARAM)(UINT)(rep),(LPARAM)MAKELONG(from,to)) +#define Animate_Stop(hwnd) \ + (BOOL)SNDMSG(hwnd,ACM_STOP,0,0) +#define Animate_Close(hwnd) \ + (BOOL)SNDMSG(hwnd,ACM_OPENA,0,0) +#define Animate_Seek(hwnd,frame) \ + (BOOL)SNDMSG(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame)) + + +/************************************************************************** + * IP Address control + */ + +#define WC_IPADDRESSA "SysIPAddress32" +#if defined(__GNUC__) +# define WC_IPADDRESSW (const WCHAR []){ 'S','y','s', \ + 'I','P','A','d','d','r','e','s','s','3','2',0 } +#elif defined(_MSC_VER) +# define WC_IPADDRESSW L"SysIPAddress32" +#else +static const WCHAR WC_IPADDRESSW[] = { 'S','y','s', + 'I','P','A','d','d','r','e','s','s','3','2',0 }; +#endif +#define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS) + +#define IPM_CLEARADDRESS (WM_USER+100) +#define IPM_SETADDRESS (WM_USER+101) +#define IPM_GETADDRESS (WM_USER+102) +#define IPM_SETRANGE (WM_USER+103) +#define IPM_SETFOCUS (WM_USER+104) +#define IPM_ISBLANK (WM_USER+105) + +#define IPN_FIRST (0U-860U) +#define IPN_LAST (0U-879U) +#define IPN_FIELDCHANGED (IPN_FIRST-0) + +typedef struct tagNMIPADDRESS +{ + NMHDR hdr; + INT iField; + INT iValue; +} NMIPADDRESS, *LPNMIPADDRESS; + +#define MAKEIPRANGE(low,high) \ + ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low))) +#define MAKEIPADDRESS(b1,b2,b3,b4) \ + ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4)))) + +#define FIRST_IPADDRESS(x) (((x)>>24)&0xff) +#define SECOND_IPADDRESS(x) (((x)>>16)&0xff) +#define THIRD_IPADDRESS(x) (((x)>>8)&0xff) +#define FOURTH_IPADDRESS(x) ((x)&0xff) + + +/************************************************************************** + * Native Font control + */ + +#define WC_NATIVEFONTCTLA "NativeFontCtl" +#if defined(__GNUC__) +# define WC_NATIVEFONTCTLW (const WCHAR []){ 'N','a','t','i','v','e', \ + 'F','o','n','t','C','t','l',0 } +#elif defined(_MSC_VER) +# define WC_NATIVEFONTCTLW L"NativeFontCtl" +#else +static const WCHAR WC_NATIVEFONTCTLW[] = { 'N','a','t','i','v','e', + 'F','o','n','t','C','t','l',0 }; +#endif +#define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL) + + +/************************************************************************** + * Month calendar control + * + */ + +#define MONTHCAL_CLASSA "SysMonthCal32" +#if defined(__GNUC__) +# define MONTHCAL_CLASSW (const WCHAR []){ 'S','y','s', \ + 'M','o','n','t','h','C','a','l','3','2',0 } +#elif defined(_MSC_VER) +# define MONTHCAL_CLASSW L"SysMonthCal32" +#else +static const WCHAR MONTHCAL_CLASSW[] = { 'S','y','s', + 'M','o','n','t','h','C','a','l','3','2',0 }; +#endif +#define MONTHCAL_CLASS WINELIB_NAME_AW(MONTHCAL_CLASS) + +#define MCM_FIRST 0x1000 +#define MCN_FIRST (0U-750U) +#define MCN_LAST (0U-759U) + + +#define MCM_GETCURSEL (MCM_FIRST + 1) +#define MCM_SETCURSEL (MCM_FIRST + 2) +#define MCM_GETMAXSELCOUNT (MCM_FIRST + 3) +#define MCM_SETMAXSELCOUNT (MCM_FIRST + 4) +#define MCM_GETSELRANGE (MCM_FIRST + 5) +#define MCM_SETSELRANGE (MCM_FIRST + 6) +#define MCM_GETMONTHRANGE (MCM_FIRST + 7) +#define MCM_SETDAYSTATE (MCM_FIRST + 8) +#define MCM_GETMINREQRECT (MCM_FIRST + 9) +#define MCM_SETCOLOR (MCM_FIRST + 10) +#define MCM_GETCOLOR (MCM_FIRST + 11) +#define MCM_SETTODAY (MCM_FIRST + 12) +#define MCM_GETTODAY (MCM_FIRST + 13) +#define MCM_HITTEST (MCM_FIRST + 14) +#define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15) +#define MCM_GETFIRSTDAYOFWEEK (MCM_FIRST + 16) +#define MCM_GETRANGE (MCM_FIRST + 17) +#define MCM_SETRANGE (MCM_FIRST + 18) +#define MCM_GETMONTHDELTA (MCM_FIRST + 19) +#define MCM_SETMONTHDELTA (MCM_FIRST + 20) +#define MCM_GETMAXTODAYWIDTH (MCM_FIRST + 21) +#define MCM_GETCALENDARCOUNT (MCM_FIRST + 23) +#define MCM_SIZERECTTOMIN (MCM_FIRST + 29) +#define MCM_SETCALENDARBORDER (MCM_FIRST + 30) +#define MCM_GETCALENDARBORDER (MCM_FIRST + 31) +#define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT + + +/* Notifications */ + +#define MCN_SELCHANGE (MCN_FIRST + 1) +#define MCN_GETDAYSTATE (MCN_FIRST + 3) +#define MCN_SELECT (MCN_FIRST + 4) + +#define MCSC_BACKGROUND 0 +#define MCSC_TEXT 1 +#define MCSC_TITLEBK 2 +#define MCSC_TITLETEXT 3 +#define MCSC_MONTHBK 4 +#define MCSC_TRAILINGTEXT 5 + + +#define MCHT_TITLE 0x00010000 +#define MCHT_CALENDAR 0x00020000 +#define MCHT_TODAYLINK 0x00030000 + +#define MCHT_NEXT 0x01000000 +#define MCHT_PREV 0x02000000 +#define MCHT_NOWHERE 0x00000000 +#define MCHT_TITLEBK (MCHT_TITLE) +#define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001) +#define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002) +#define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003) +#define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003) + +#define MCHT_CALENDARBK (MCHT_CALENDAR) +#define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001) +#define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT) +#define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV) +#define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002) +#define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003) + + + +#define GMR_VISIBLE 0 +#define GMR_DAYSTATE 1 + + +/* Month calendar's structures */ + + +typedef struct { + UINT cbSize; + POINT pt; + UINT uHit; + SYSTEMTIME st; + /* Vista */ + RECT rc; + INT iOffset; + INT iRow; + INT iCol; +} MCHITTESTINFO, *PMCHITTESTINFO; + +#define MCHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(MCHITTESTINFO, st) + +typedef struct tagNMSELCHANGE +{ + NMHDR nmhdr; + SYSTEMTIME stSelStart; + SYSTEMTIME stSelEnd; +} NMSELCHANGE, *LPNMSELCHANGE; + +typedef NMSELCHANGE NMSELECT, *LPNMSELECT; +typedef DWORD MONTHDAYSTATE, *LPMONTHDAYSTATE; + +typedef struct tagNMDAYSTATE +{ + NMHDR nmhdr; + SYSTEMTIME stStart; + int cDayState; + LPMONTHDAYSTATE prgDayState; +} NMDAYSTATE, *LPNMDAYSTATE; + + +/* macros */ + +#define MonthCal_GetCurSel(hmc, pst) \ + (BOOL)SNDMSG(hmc, MCM_GETCURSEL, 0, (LPARAM)(pst)) +#define MonthCal_SetCurSel(hmc, pst) \ + (BOOL)SNDMSG(hmc, MCM_SETCURSEL, 0, (LPARAM)(pst)) +#define MonthCal_GetMaxSelCount(hmc) \ + (DWORD)SNDMSG(hmc, MCM_GETMAXSELCOUNT, 0, 0) +#define MonthCal_SetMaxSelCount(hmc, n) \ + (BOOL)SNDMSG(hmc, MCM_SETMAXSELCOUNT, (WPARAM)(n), 0) +#define MonthCal_GetSelRange(hmc, rgst) \ + SNDMSG(hmc, MCM_GETSELRANGE, 0, (LPARAM) (rgst)) +#define MonthCal_SetSelRange(hmc, rgst) \ + SNDMSG(hmc, MCM_SETSELRANGE, 0, (LPARAM) (rgst)) +#define MonthCal_GetMonthRange(hmc, gmr, rgst) \ + (DWORD)SNDMSG(hmc, MCM_GETMONTHRANGE, (WPARAM)(gmr), (LPARAM)(rgst)) +#define MonthCal_SetDayState(hmc, cbds, rgds) \ + SNDMSG(hmc, MCM_SETDAYSTATE, (WPARAM)(cbds), (LPARAM)(rgds)) +#define MonthCal_GetMinReqRect(hmc, prc) \ + SNDMSG(hmc, MCM_GETMINREQRECT, 0, (LPARAM)(prc)) +#define MonthCal_SetColor(hmc, iColor, clr)\ + SNDMSG(hmc, MCM_SETCOLOR, iColor, clr) +#define MonthCal_GetColor(hmc, iColor) \ + SNDMSG(hmc, MCM_SETCOLOR, iColor, 0) +#define MonthCal_GetToday(hmc, pst)\ + (BOOL)SNDMSG(hmc, MCM_GETTODAY, 0, (LPARAM)pst) +#define MonthCal_SetToday(hmc, pst)\ + SNDMSG(hmc, MCM_SETTODAY, 0, (LPARAM)pst) +#define MonthCal_HitTest(hmc, pinfo) \ + SNDMSG(hmc, MCM_HITTEST, 0, (LPARAM)(PMCHITTESTINFO)pinfo) +#define MonthCal_SetFirstDayOfWeek(hmc, iDay) \ + SNDMSG(hmc, MCM_SETFIRSTDAYOFWEEK, 0, iDay) +#define MonthCal_GetFirstDayOfWeek(hmc) \ + (DWORD)SNDMSG(hmc, MCM_GETFIRSTDAYOFWEEK, 0, 0) +#define MonthCal_GetRange(hmc, rgst) \ + (DWORD)SNDMSG(hmc, MCM_GETRANGE, 0, (LPARAM)(rgst)) +#define MonthCal_SetRange(hmc, gd, rgst) \ + (BOOL)SNDMSG(hmc, MCM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst)) +#define MonthCal_GetMonthDelta(hmc) \ + (int)SNDMSG(hmc, MCM_GETMONTHDELTA, 0, 0) +#define MonthCal_SetMonthDelta(hmc, n) \ + (int)SNDMSG(hmc, MCM_SETMONTHDELTA, n, 0) +#define MonthCal_GetMaxTodayWidth(hmc) \ + (DWORD)SNDMSG(hmc, MCM_GETMAXTODAYWIDTH, 0, 0) +#define MonthCal_SetUnicodeFormat(hwnd, fUnicode) \ + (BOOL)SNDMSG((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0) +#define MonthCal_GetUnicodeFormat(hwnd) \ + (BOOL)SNDMSG((hwnd), MCM_GETUNICODEFORMAT, 0, 0) + + +/************************************************************************** + * Date and time picker control + */ + +#define DATETIMEPICK_CLASSA "SysDateTimePick32" +#if defined(__GNUC__) +# define DATETIMEPICK_CLASSW (const WCHAR []){ 'S','y','s', \ + 'D','a','t','e','T','i','m','e','P','i','c','k','3','2',0 } +#elif defined(_MSC_VER) +# define DATETIMEPICK_CLASSW L"SysDateTimePick32" +#else +static const WCHAR DATETIMEPICK_CLASSW[] = { 'S','y','s', + 'D','a','t','e','T','i','m','e','P','i','c','k','3','2',0 }; +#endif +#define DATETIMEPICK_CLASS WINELIB_NAME_AW(DATETIMEPICK_CLASS) + +#define DTM_FIRST 0x1000 +#define DTN_FIRST (0U-760U) +#define DTN_LAST (0U-799U) + + +#define DTM_GETSYSTEMTIME (DTM_FIRST+1) +#define DTM_SETSYSTEMTIME (DTM_FIRST+2) +#define DTM_GETRANGE (DTM_FIRST+3) +#define DTM_SETRANGE (DTM_FIRST+4) +#define DTM_SETFORMATA (DTM_FIRST+5) +#define DTM_SETFORMATW (DTM_FIRST + 50) +#define DTM_SETFORMAT WINELIB_NAME_AW(DTM_SETFORMAT) +#define DTM_SETMCCOLOR (DTM_FIRST+6) +#define DTM_GETMCCOLOR (DTM_FIRST+7) +#define DTM_GETMONTHCAL (DTM_FIRST+8) +#define DTM_SETMCFONT (DTM_FIRST+9) +#define DTM_GETMCFONT (DTM_FIRST+10) + + +/* Datetime Notifications */ + +#define DTN_DATETIMECHANGE (DTN_FIRST + 1) +#define DTN_USERSTRINGA (DTN_FIRST + 2) +#define DTN_WMKEYDOWNA (DTN_FIRST + 3) +#define DTN_FORMATA (DTN_FIRST + 4) +#define DTN_FORMATQUERYA (DTN_FIRST + 5) +#define DTN_DROPDOWN (DTN_FIRST + 6) +#define DTN_CLOSEUP (DTN_FIRST + 7) +#define DTN_USERSTRINGW (DTN_FIRST + 15) +#define DTN_WMKEYDOWNW (DTN_FIRST + 16) +#define DTN_FORMATW (DTN_FIRST + 17) +#define DTN_FORMATQUERYW (DTN_FIRST + 18) + +#define DTN_USERSTRING WINELIB_NAME_AW(DTN_USERSTRING) +#define DTN_WMKEYDOWN WINELIB_NAME_AW(DTN_WMKEYDOWN) +#define DTN_FORMAT WINELIB_NAME_AW(DTN_FORMAT) +#define DTN_FORMATQUERY WINELIB_NAME_AW(DTN_FORMATQUERY) + + +typedef struct tagNMDATETIMECHANGE +{ + NMHDR nmhdr; + DWORD dwFlags; + SYSTEMTIME st; +} NMDATETIMECHANGE, *LPNMDATETIMECHANGE; + +typedef struct tagNMDATETIMESTRINGA +{ + NMHDR nmhdr; + LPCSTR pszUserString; + SYSTEMTIME st; + DWORD dwFlags; +} NMDATETIMESTRINGA, *LPNMDATETIMESTRINGA; + +typedef struct tagNMDATETIMESTRINGW +{ + NMHDR nmhdr; + LPCWSTR pszUserString; + SYSTEMTIME st; + DWORD dwFlags; +} NMDATETIMESTRINGW, *LPNMDATETIMESTRINGW; + +DECL_WINELIB_TYPE_AW(NMDATETIMESTRING) +DECL_WINELIB_TYPE_AW(LPNMDATETIMESTRING) + +typedef struct tagNMDATETIMEWMKEYDOWNA +{ + NMHDR nmhdr; + int nVirtKey; + LPCSTR pszFormat; + SYSTEMTIME st; +} NMDATETIMEWMKEYDOWNA, *LPNMDATETIMEWMKEYDOWNA; + +typedef struct tagNMDATETIMEWMKEYDOWNW +{ + NMHDR nmhdr; + int nVirtKey; + LPCWSTR pszFormat; + SYSTEMTIME st; +} NMDATETIMEWMKEYDOWNW, *LPNMDATETIMEWMKEYDOWNW; + +DECL_WINELIB_TYPE_AW(NMDATETIMEWMKEYDOWN) +DECL_WINELIB_TYPE_AW(LPNMDATETIMEWMKEYDOWN) + +typedef struct tagNMDATETIMEFORMATA +{ + NMHDR nmhdr; + LPCSTR pszFormat; + SYSTEMTIME st; + LPCSTR pszDisplay; + CHAR szDisplay[64]; +} NMDATETIMEFORMATA, *LPNMDATETIMEFORMATA; + + +typedef struct tagNMDATETIMEFORMATW +{ + NMHDR nmhdr; + LPCWSTR pszFormat; + SYSTEMTIME st; + LPCWSTR pszDisplay; + WCHAR szDisplay[64]; +} NMDATETIMEFORMATW, *LPNMDATETIMEFORMATW; + +DECL_WINELIB_TYPE_AW(NMDATETIMEFORMAT) +DECL_WINELIB_TYPE_AW(LPNMDATETIMEFORMAT) + +typedef struct tagNMDATETIMEFORMATQUERYA +{ + NMHDR nmhdr; + LPCSTR pszFormat; + SIZE szMax; +} NMDATETIMEFORMATQUERYA, *LPNMDATETIMEFORMATQUERYA; + +typedef struct tagNMDATETIMEFORMATQUERYW +{ + NMHDR nmhdr; + LPCWSTR pszFormat; + SIZE szMax; +} NMDATETIMEFORMATQUERYW, *LPNMDATETIMEFORMATQUERYW; + +DECL_WINELIB_TYPE_AW(NMDATETIMEFORMATQUERY) +DECL_WINELIB_TYPE_AW(LPNMDATETIMEFORMATQUERY) + + + +#define GDT_ERROR -1 +#define GDT_VALID 0 +#define GDT_NONE 1 + +#define GDTR_MIN 0x0001 +#define GDTR_MAX 0x0002 + + +#define DateTime_GetSystemtime(hdp, pst) \ + (DWORD)SNDMSG (hdp, DTM_GETSYSTEMTIME , 0, (LPARAM)(pst)) +#define DateTime_SetSystemtime(hdp, gd, pst) \ + (BOOL)SNDMSG (hdp, DTM_SETSYSTEMTIME, (LPARAM)(gd), (LPARAM)(pst)) +#define DateTime_GetRange(hdp, rgst) \ + (DWORD)SNDMSG (hdp, DTM_GETRANGE, 0, (LPARAM)(rgst)) +#define DateTime_SetRange(hdp, gd, rgst) \ + (BOOL)SNDMSG (hdp, DTM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst)) +#define DateTime_SetFormatA(hdp, sz) \ + (BOOL)SNDMSGA (hdp, DTM_SETFORMATA, 0, (LPARAM)(sz)) +#define DateTime_SetFormatW(hdp, sz) \ + (BOOL)SNDMSGW (hdp, DTM_SETFORMATW, 0, (LPARAM)(sz)) +#define DateTime_SetFormat WINELIB_NAME_AW(DateTime_SetFormat) +#define DateTime_GetMonthCalColor(hdp, iColor) \ + SNDMSG (hdp, DTM_GETMCCOLOR, iColor, 0) +#define DateTime_SetMonthCalColor(hdp, iColor, clr) \ + SNDMSG (hdp, DTM_SETMCCOLOR, iColor, clr) +#define DateTime_GetMonthCal(hdp) \ + (HWND) SNDMSG (hdp, DTM_GETMONTHCAL, 0, 0) +#define DateTime_SetMonthCalFont(hdp, hfont, fRedraw) \ + SNDMSG (hdp, DTM_SETMCFONT, (WPARAM)hfont, (LPARAM)fRedraw) +#define DateTime_GetMonthCalFont(hdp) \ + SNDMSG (hdp, DTM_GETMCFONT, 0, 0) + +#define DA_LAST (0x7fffffff) +#define DPA_APPEND (0x7fffffff) +#define DPA_ERR (-1) + +#define DSA_APPEND (0x7fffffff) +#define DSA_ERR (-1) + +struct _DSA; +typedef struct _DSA *HDSA; + +typedef INT (CALLBACK *PFNDSAENUMCALLBACK)(LPVOID, LPVOID); + +HDSA WINAPI DSA_Create(INT, INT); +BOOL WINAPI DSA_Destroy(HDSA); +void WINAPI DSA_DestroyCallback(HDSA, PFNDSAENUMCALLBACK, LPVOID); +LPVOID WINAPI DSA_GetItemPtr(HDSA, INT); +INT WINAPI DSA_InsertItem(HDSA, INT, LPVOID); + +#define DPAS_SORTED 0x0001 +#define DPAS_INSERTBEFORE 0x0002 +#define DPAS_INSERTAFTER 0x0004 + + +struct _DPA; +typedef struct _DPA *HDPA; + +#define DPA_GetPtrCount(hdpa) (*(INT*)(hdpa)) + +typedef INT (CALLBACK *PFNDPAENUMCALLBACK)(LPVOID, LPVOID); +typedef INT (CALLBACK *PFNDPACOMPARE)(LPVOID, LPVOID, LPARAM); +typedef PVOID (CALLBACK *PFNDPAMERGE)(UINT,PVOID,PVOID,LPARAM); + +/* merge callback codes */ +#define DPAMM_MERGE 1 +#define DPAMM_DELETE 2 +#define DPAMM_INSERT 3 + +/* merge options */ +#define DPAM_SORTED 0x00000001 +#define DPAM_NORMAL 0x00000002 +#define DPAM_UNION 0x00000004 +#define DPAM_INTERSECT 0x00000008 + +HDPA WINAPI DPA_Create(INT); +BOOL WINAPI DPA_Destroy(HDPA); +LPVOID WINAPI DPA_DeletePtr(HDPA, INT); +BOOL WINAPI DPA_DeleteAllPtrs(HDPA); +BOOL WINAPI DPA_SetPtr(HDPA, INT, LPVOID); +LPVOID WINAPI DPA_GetPtr(HDPA, INT); +INT WINAPI DPA_GetPtrIndex(HDPA, LPCVOID); +ULONGLONG WINAPI DPA_GetSize(HDPA); +BOOL WINAPI DPA_Grow(HDPA, INT); +INT WINAPI DPA_InsertPtr(HDPA, INT, LPVOID); +BOOL WINAPI DPA_Sort(HDPA, PFNDPACOMPARE, LPARAM); +void WINAPI DPA_EnumCallback(HDPA, PFNDPAENUMCALLBACK, LPVOID); +void WINAPI DPA_DestroyCallback(HDPA, PFNDPAENUMCALLBACK, LPVOID); +INT WINAPI DPA_Search(HDPA, LPVOID, INT, PFNDPACOMPARE, LPARAM, UINT); +BOOL WINAPI DPA_Merge(HDPA, HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM); + +/* save/load from stream */ +typedef struct _DPASTREAMINFO +{ + INT iPos; /* item index */ + LPVOID pvItem; +} DPASTREAMINFO; + +struct IStream; +typedef HRESULT (CALLBACK *PFNDPASTREAM)(DPASTREAMINFO*, struct IStream*, LPVOID); + +HRESULT WINAPI DPA_LoadStream(HDPA*, PFNDPASTREAM, struct IStream*, LPVOID); +HRESULT WINAPI DPA_SaveStream(HDPA, PFNDPASTREAM, struct IStream*, LPVOID); + +BOOL WINAPI Str_SetPtrW (LPWSTR *, LPCWSTR); + +/************************************************************************** + * SysLink control + */ + +#if defined(__GNUC__) +# define WC_LINK (const WCHAR []){ 'S','y','s','L','i','n','k',0 } +#elif defined(_MSC_VER) +# define WC_LINK L"SysLink" +#else +static const WCHAR WC_LINK[] = { 'S','y','s','L','i','n','k',0 }; +#endif + +/* SysLink styles */ +#define LWS_TRANSPARENT 0x0001 +#define LWS_IGNORERETURN 0x0002 +#define LWS_NOPREFIX 0x0004 +#define LWS_USEVISUALSTYLE 0x0008 +#define LWS_USECUSTOMTEXT 0x0010 +#define LWS_RIGHT 0x0020 + +/* SysLink messages */ +#define LM_HITTEST (WM_USER + 768) +#define LM_GETIDEALHEIGHT (WM_USER + 769) +#define LM_GETIDEALSIZE (LM_GETIDEALHEIGHT) +#define LM_SETITEM (WM_USER + 770) +#define LM_GETITEM (WM_USER + 771) + +/* SysLink links flags */ + +#define LIF_ITEMINDEX 1 +#define LIF_STATE 2 +#define LIF_ITEMID 4 +#define LIF_URL 8 + +/* SysLink links states */ + +#define LIS_FOCUSED 0x0001 +#define LIS_ENABLED 0x0002 +#define LIS_VISITED 0x0004 +#define LIS_HOTTRACK 0x0008 +#define LIS_DEFAULTCOLORS 0x0010 + +/* SysLink misc. */ + +#define INVALID_LINK_INDEX (-1) +#define MAX_LINKID_TEXT 48 +#define L_MAX_URL_LENGTH 2084 + +/* SysLink structures */ + +typedef struct tagLITEM +{ + UINT mask; + int iLink; + UINT state; + UINT stateMask; + WCHAR szID[MAX_LINKID_TEXT]; + WCHAR szUrl[L_MAX_URL_LENGTH]; +} LITEM, *PLITEM; + +typedef struct tagLHITTESTINFO +{ + POINT pt; + LITEM item; +} LHITTESTINFO, *PLHITTESTINFO; + +typedef struct tagNMLINK +{ + NMHDR hdr; + LITEM item; +} NMLINK, *PNMLINK; + +typedef struct tagNMLVLINK +{ + NMHDR hdr; + LITEM link; + int iItem; + int iSubItem; +} NMLVLINK, *PNMLVLINK; + +/************************************************************************** + * Static control + */ + +#define WC_STATICA "Static" +#if defined(__GNUC__) +# define WC_STATICW (const WCHAR []){ 'S','t','a','t','i','c',0 } +#elif defined(_MSC_VER) +# define WC_STATICW L"Static" +#else +static const WCHAR WC_STATICW[] = { 'S','t','a','t','i','c',0 }; +#endif +#define WC_STATIC WINELIB_NAME_AW(WC_STATIC) + +/************************************************************************** + * Combobox control + */ + +#define WC_COMBOBOXA "ComboBox" +#if defined(__GNUC__) +# define WC_COMBOBOXW (const WCHAR []){ 'C','o','m','b','o','B','o','x',0 } +#elif defined(_MSC_VER) +# define WC_COMBOBOXW L"ComboBox" +#else +static const WCHAR WC_COMBOBOXW[] = { 'C','o','m','b','o','B','o','x',0 }; +#endif +#define WC_COMBOBOX WINELIB_NAME_AW(WC_COMBOBOX) + +/************************************************************************** + * Edit control + */ + +#define WC_EDITA "Edit" +#if defined(__GNUC__) +# define WC_EDITW (const WCHAR []){ 'E','d','i','t',0 } +#elif defined(_MSC_VER) +# define WC_EDITW L"Edit" +#else +static const WCHAR WC_EDITW[] = { 'E','d','i','t',0 }; +#endif +#define WC_EDIT WINELIB_NAME_AW(WC_EDIT) + +/************************************************************************** + * Listbox control + */ + +#define WC_LISTBOXA "ListBox" +#if defined(__GNUC__) +# define WC_LISTBOXW (const WCHAR []){ 'L','i','s','t','B','o','x',0 } +#elif defined(_MSC_VER) +# define WC_LISTBOXW L"ListBox" +#else +static const WCHAR WC_LISTBOXW[] = { 'L','i','s','t','B','o','x',0 }; +#endif +#define WC_LISTBOX WINELIB_NAME_AW(WC_LISTBOX) + +/************************************************************************** + * Scrollbar control + */ + +#define WC_SCROLLBARA "ScrollBar" +#if defined(__GNUC__) +# define WC_SCROLLBARW (const WCHAR []){ 'S','c','r','o','l','l','B','a','r',0 } +#elif defined(_MSC_VER) +# define WC_SCROLLBARW L"ScrollBar" +#else +static const WCHAR WC_SCROLLBARW[] = { 'S','c','r','o','l','l','B','a','r',0 }; +#endif +#define WC_SCROLLBAR WINELIB_NAME_AW(WC_SCROLLBAR) + +/************************************************************************** + * Task dialog + */ + +#ifndef NOTASKDIALOG + +#include + +enum _TASKDIALOG_FLAGS +{ + TDF_ENABLE_HYPERLINKS = 0x0001, + TDF_USE_HICON_MAIN = 0x0002, + TDF_USE_HICON_FOOTER = 0x0004, + TDF_ALLOW_DIALOG_CANCELLATION = 0x0008, + TDF_USE_COMMAND_LINKS = 0x0010, + TDF_USE_COMMAND_LINKS_NO_ICON = 0x0020, + TDF_EXPAND_FOOTER_AREA = 0x0040, + TDF_EXPANDED_BY_DEFAULT = 0x0080, + TDF_VERIFICATION_FLAG_CHECKED = 0x0100, + TDF_SHOW_PROGRESS_BAR = 0x0200, + TDF_SHOW_MARQUEE_PROGRESS_BAR = 0x0400, + TDF_CALLBACK_TIMER = 0x0800, + TDF_POSITION_RELATIVE_TO_WINDOW = 0x1000, + TDF_RTL_LAYOUT = 0x2000, + TDF_NO_DEFAULT_RADIO_BUTTON = 0x4000, + TDF_CAN_BE_MINIMIZED = 0x8000 +}; +typedef int TASKDIALOG_FLAGS; + +enum _TASKDIALOG_COMMON_BUTTON_FLAGS +{ + TDCBF_OK_BUTTON = 0x0001, + TDCBF_YES_BUTTON = 0x0002, + TDCBF_NO_BUTTON = 0x0004, + TDCBF_CANCEL_BUTTON = 0x0008, + TDCBF_RETRY_BUTTON = 0x0010, + TDCBF_CLOSE_BUTTON = 0x0020 +}; +typedef int TASKDIALOG_COMMON_BUTTON_FLAGS; + +typedef struct _TASKDIALOG_BUTTON +{ + int nButtonID; + PCWSTR pszButtonText; +} TASKDIALOG_BUTTON; + +typedef HRESULT (CALLBACK *PFTASKDIALOGCALLBACK)(HWND, UINT, WPARAM, LPARAM, LONG_PTR); + +typedef struct _TASKDIALOGCONFIG +{ + UINT cbSize; + HWND hwndParent; + HINSTANCE hInstance; + TASKDIALOG_FLAGS dwFlags; + TASKDIALOG_COMMON_BUTTON_FLAGS dwCommonButtons; + PCWSTR pszWindowTitle; + union + { + HICON hMainIcon; + PCWSTR pszMainIcon; + } DUMMYUNIONNAME; + PCWSTR pszMainInstruction; + PCWSTR pszContent; + UINT cButtons; + const TASKDIALOG_BUTTON *pButtons; + int nDefaultButton; + UINT cRadioButtons; + const TASKDIALOG_BUTTON *pRadioButtons; + int nDefaultRadioButton; + PCWSTR pszVerificationText; + PCWSTR pszExpandedInformation; + PCWSTR pszExpandedControlText; + PCWSTR pszCollapsedControlText; + union + { + HICON hFooterIcon; + PCWSTR pszFooterIcon; + } DUMMYUNIONNAME2; + PCWSTR pszFooter; + PFTASKDIALOGCALLBACK pfCallback; + LONG_PTR lpCallbackData; + UINT cxWidth; +} TASKDIALOGCONFIG; + +HRESULT WINAPI TaskDialogIndirect(const TASKDIALOGCONFIG *, int *, int *, BOOL *); + +#include + +#endif /* NOTASKDIALOG */ + +#ifdef __cplusplus +} +#endif + +#endif /* __WINE_COMMCTRL_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/commctrl.rh b/src/VBox/Devices/Graphics/shaderlib/wine/include/commctrl.rh new file mode 100644 index 00000000..093ed80e --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/commctrl.rh @@ -0,0 +1,220 @@ +/* + * Copyright (C) 2008 Vijay Kiran Kamuju + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +/* Macro to deal with LP64 <=> LLP64 differences in numeric constants with 'l' modifier */ +#ifndef __MSABI_LONG +# if defined(_MSC_VER) || defined(__MINGW32__) || defined(__CYGWIN__) +# define __MSABI_LONG(x) x ## l +# else +# define __MSABI_LONG(x) x +# endif +#endif + +/* Header Control */ +#define HDS_HORZ 0x0000 +#define HDS_BUTTONS 0x0002 +#define HDS_HOTTRACK 0x0004 +#define HDS_HIDDEN 0x0008 +#define HDS_DRAGDROP 0x0040 +#define HDS_FULLDRAG 0x0080 +#define HDS_FILTERBAR 0x0100 +#define HDS_FLAT 0x0200 +#define HDS_CHECKBOXES 0x0400 +#define HDS_NOSIZING 0x0800 +#define HDS_OVERFLOW 0x1000 + +/* Rebar Control */ +#define RBS_TOOLTIPS 0x0100 +#define RBS_VARHEIGHT 0x0200 +#define RBS_BANDBORDERS 0x0400 +#define RBS_FIXEDORDER 0x0800 +#define RBS_REGISTERDROP 0x1000 +#define RBS_AUTOSIZE 0x2000 +#define RBS_VERTICALGRIPPER 0x4000 +#define RBS_DBLCLKTOGGLE 0x8000 + +/* Tool tips */ +#define TTS_ALWAYSTIP 0x01 +#define TTS_NOPREFIX 0x02 +#define TTS_NOANIMATE 0x10 +#define TTS_NOFADE 0x20 +#define TTS_BALLOON 0x40 +#define TTS_CLOSE 0x80 +#define TTS_USEVISUALSTYLE 0x100 + +/* Statusbar Control */ +#define SBARS_SIZEGRIP 0x0100 +#define SBARS_TOOLTIPS 0x0800 +#define SBT_TOOLTIPS 0x0800 + +/* Toolbar Control */ +#define TBS_AUTOTICKS 0x0001 +#define TBS_VERT 0x0002 +#define TBS_HORZ 0x0000 +#define TBS_TOP 0x0004 +#define TBS_BOTTOM 0x0000 +#define TBS_LEFT 0x0004 +#define TBS_RIGHT 0x0000 +#define TBS_BOTH 0x0008 +#define TBS_NOTICKS 0x0010 +#define TBS_ENABLESELRANGE 0x0020 +#define TBS_FIXEDLENGTH 0x0040 +#define TBS_NOTHUMB 0x0080 +#define TBS_TOOLTIPS 0x0100 +#define TBS_REVERSED 0x0200 +#define TBS_DOWNISLEFT 0x0400 + +/* UpDown Control */ +#define UDS_WRAP 0x0001 +#define UDS_SETBUDDYINT 0x0002 +#define UDS_ALIGNRIGHT 0x0004 +#define UDS_ALIGNLEFT 0x0008 +#define UDS_AUTOBUDDY 0x0010 +#define UDS_ARROWKEYS 0x0020 +#define UDS_HORZ 0x0040 +#define UDS_NOTHOUSANDS 0x0080 +#define UDS_HOTTRACK 0x0100 + +/* Progressbar Control */ +#define PBS_SMOOTH 0x01 +#define PBS_VERTICAL 0x04 +#define PBS_MARQUEE 0x08 +#define PBS_SMOOTHREVERSE 0x10 + +/* Common Control Styles */ +#define CCS_TOP __MSABI_LONG(0x00000001) +#define CCS_NOMOVEY __MSABI_LONG(0x00000002) +#define CCS_BOTTOM __MSABI_LONG(0x00000003) +#define CCS_NORESIZE __MSABI_LONG(0x00000004) +#define CCS_NOPARENTALIGN __MSABI_LONG(0x00000008) +#define CCS_ADJUSTABLE __MSABI_LONG(0x00000020) +#define CCS_NODIVIDER __MSABI_LONG(0x00000040) +#define CCS_VERT __MSABI_LONG(0x00000080) +#define CCS_LEFT (CCS_VERT | CCS_TOP) +#define CCS_RIGHT (CCS_VERT | CCS_BOTTOM) +#define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY) + +/* Listview Control */ +#define LVS_ICON 0x0000 +#define LVS_REPORT 0x0001 +#define LVS_SMALLICON 0x0002 +#define LVS_LIST 0x0003 +#define LVS_TYPEMASK 0x0003 +#define LVS_SINGLESEL 0x0004 +#define LVS_SHOWSELALWAYS 0x0008 +#define LVS_SORTASCENDING 0x0010 +#define LVS_SORTDESCENDING 0x0020 +#define LVS_SHAREIMAGELISTS 0x0040 +#define LVS_NOLABELWRAP 0x0080 +#define LVS_AUTOARRANGE 0x0100 +#define LVS_EDITLABELS 0x0200 +#define LVS_OWNERDATA 0x1000 +#define LVS_NOSCROLL 0x2000 +#define LVS_TYPESTYLEMASK 0xfc00 +#define LVS_ALIGNTOP 0x0000 +#define LVS_ALIGNLEFT 0x0800 +#define LVS_ALIGNMASK 0x0c00 +#define LVS_OWNERDRAWFIXED 0x0400 +#define LVS_NOCOLUMNHEADER 0x4000 +#define LVS_NOSORTHEADER 0x8000 + +/* Treeview Control */ +#define TVS_HASBUTTONS 0x0001 +#define TVS_HASLINES 0x0002 +#define TVS_LINESATROOT 0x0004 +#define TVS_EDITLABELS 0x0008 +#define TVS_DISABLEDRAGDROP 0x0010 +#define TVS_SHOWSELALWAYS 0x0020 +#define TVS_RTLREADING 0x0040 +#define TVS_NOTOOLTIPS 0x0080 +#define TVS_CHECKBOXES 0x0100 +#define TVS_TRACKSELECT 0x0200 +#define TVS_SINGLEEXPAND 0x0400 +#define TVS_INFOTIP 0x0800 +#define TVS_FULLROWSELECT 0x1000 +#define TVS_NOSCROLL 0x2000 +#define TVS_NONEVENHEIGHT 0x4000 +#define TVS_NOHSCROLL 0x8000 + +/* Tab Control */ +#define TCS_SCROLLOPPOSITE 0x0001 /* assumes multiline tab */ +#define TCS_BOTTOM 0x0002 +#define TCS_RIGHT 0x0002 +#define TCS_MULTISELECT 0x0004 /* allow multi-select in button mode */ +#define TCS_FLATBUTTONS 0x0008 +#define TCS_FORCEICONLEFT 0x0010 +#define TCS_FORCELABELLEFT 0x0020 +#define TCS_HOTTRACK 0x0040 +#define TCS_VERTICAL 0x0080 +#define TCS_TABS 0x0000 +#define TCS_BUTTONS 0x0100 +#define TCS_SINGLELINE 0x0000 +#define TCS_MULTILINE 0x0200 +#define TCS_RIGHTJUSTIFY 0x0000 +#define TCS_FIXEDWIDTH 0x0400 +#define TCS_RAGGEDRIGHT 0x0800 +#define TCS_FOCUSONBUTTONDOWN 0x1000 +#define TCS_OWNERDRAWFIXED 0x2000 +#define TCS_TOOLTIPS 0x4000 +#define TCS_FOCUSNEVER 0x8000 + +/* Animate Control */ +#define ACS_CENTER 0x0001 +#define ACS_TRANSPARENT 0x0002 +#define ACS_AUTOPLAY 0x0004 +#define ACS_TIMER 0x0008 /* no threads, just timers */ + +/* Month Calendar Control */ +#define MCS_DAYSTATE 0x0001 +#define MCS_MULTISELECT 0x0002 +#define MCS_WEEKNUMBERS 0x0004 +#define MCS_NOTODAY 0x0010 +#define MCS_NOTODAYCIRCLE 0x0008 +#define MCS_NOTRAILINGDATES 0x0040 + +/* Datetime Control */ +#define DTS_SHORTDATEFORMAT 0x0000 +#define DTS_UPDOWN 0x0001 +#define DTS_SHOWNONE 0x0002 +#define DTS_LONGDATEFORMAT 0x0004 +#define DTS_TIMEFORMAT 0x0009 +#define DTS_APPCANPARSE 0x0010 +#define DTS_RIGHTALIGN 0x0020 + +/* Pager Control */ +#define PGS_VERT 0x00000000 +#define PGS_HORZ 0x00000001 +#define PGS_AUTOSCROLL 0x00000002 +#define PGS_DRAGNDROP 0x00000004 + +/* Native Font Control */ +#define NFS_EDIT 0x0001 +#define NFS_STATIC 0x0002 +#define NFS_LISTCOMBO 0x0004 +#define NFS_BUTTON 0x0008 +#define NFS_ALL 0x0010 +#define NFS_USEFONTASSOC 0x0020 diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/commdlg.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/commdlg.h new file mode 100644 index 00000000..bf8b7d23 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/commdlg.h @@ -0,0 +1,851 @@ +/* + * COMMDLG - Common Wine Dialog ... :-) + * + * Copyright (C) the Wine project + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_COMMDLG_H +#define __WINE_COMMDLG_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#ifndef _WIN64 +#include +#endif + +#ifndef SNDMSG +#ifdef __cplusplus +#define SNDMSG ::SendMessage +#else /* __cplusplus */ +#define SNDMSG SendMessage +#endif /* __cplusplus */ +#endif /* SNDMSG */ + +#define OFN_READONLY 0x00000001 +#define OFN_OVERWRITEPROMPT 0x00000002 +#define OFN_HIDEREADONLY 0x00000004 +#define OFN_NOCHANGEDIR 0x00000008 +#define OFN_SHOWHELP 0x00000010 +#define OFN_ENABLEHOOK 0x00000020 +#define OFN_ENABLETEMPLATE 0x00000040 +#define OFN_ENABLETEMPLATEHANDLE 0x00000080 +#define OFN_NOVALIDATE 0x00000100 +#define OFN_ALLOWMULTISELECT 0x00000200 +#define OFN_EXTENSIONDIFFERENT 0x00000400 +#define OFN_PATHMUSTEXIST 0x00000800 +#define OFN_FILEMUSTEXIST 0x00001000 +#define OFN_CREATEPROMPT 0x00002000 +#define OFN_SHAREAWARE 0x00004000 +#define OFN_NOREADONLYRETURN 0x00008000 +#define OFN_NOTESTFILECREATE 0x00010000 +#define OFN_NONETWORKBUTTON 0x00020000 +#define OFN_NOLONGNAMES 0x00040000 +#define OFN_EXPLORER 0x00080000 +#define OFN_NODEREFERENCELINKS 0x00100000 +#define OFN_LONGNAMES 0x00200000 +#define OFN_ENABLEINCLUDENOTIFY 0x00400000 +#define OFN_ENABLESIZING 0x00800000 +#define OFN_DONTADDTORECENT 0x02000000 +#define OFN_FORCESHOWHIDDEN 0x10000000 + +#define OFN_SHAREFALLTHROUGH 2 +#define OFN_SHARENOWARN 1 +#define OFN_SHAREWARN 0 + +#define SAVE_DIALOG 1 +#define OPEN_DIALOG 2 + +typedef UINT_PTR (CALLBACK *LPOFNHOOKPROC)(HWND,UINT,WPARAM,LPARAM); + +typedef struct tagOFNA { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCSTR lpstrFilter; + LPSTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + LPSTR lpstrFile; + DWORD nMaxFile; + LPSTR lpstrFileTitle; + DWORD nMaxFileTitle; + LPCSTR lpstrInitialDir; + LPCSTR lpstrTitle; + DWORD Flags; + WORD nFileOffset; + WORD nFileExtension; + LPCSTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC lpfnHook; + LPCSTR lpTemplateName; + void *pvReserved; + DWORD dwReserved; + DWORD FlagsEx; +} OPENFILENAMEA,*LPOPENFILENAMEA; + +typedef struct tagOFNW { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCWSTR lpstrFilter; + LPWSTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + LPWSTR lpstrFile; + DWORD nMaxFile; + LPWSTR lpstrFileTitle; + DWORD nMaxFileTitle; + LPCWSTR lpstrInitialDir; + LPCWSTR lpstrTitle; + DWORD Flags; + WORD nFileOffset; + WORD nFileExtension; + LPCWSTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; + void *pvReserved; + DWORD dwReserved; + DWORD FlagsEx; +} OPENFILENAMEW,*LPOPENFILENAMEW; + +DECL_WINELIB_TYPE_AW(OPENFILENAME) +DECL_WINELIB_TYPE_AW(LPOPENFILENAME) + +#ifndef CDSIZEOF_STRUCT +#define CDSIZEOF_STRUCT(type,field) ((INT_PTR)&(((type *)0)->field) + sizeof(((type*)0)->field)) +#endif + +#define OPENFILENAME_SIZE_VERSION_400A CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName) +#define OPENFILENAME_SIZE_VERSION_400W CDSIZEOF_STRUCT(OPENFILENAMEW,lpTemplateName) +#define OPENFILENAME_SIZE_VERSION_400 WINELIB_NAME_AW(OPENFILENAME_SIZE_VERSION_400) + + +typedef struct +{ + NMHDR hdr; + LPOPENFILENAMEA lpOFN; + LPSTR pszFile; +} OFNOTIFYA, *LPOFNOTIFYA; + +typedef struct +{ + NMHDR hdr; + LPOPENFILENAMEW lpOFN; + LPWSTR pszFile; +} OFNOTIFYW, *LPOFNOTIFYW; + +DECL_WINELIB_TYPE_AW(OFNOTIFY) +DECL_WINELIB_TYPE_AW(LPOFNOTIFY) + +typedef struct _OFNOTIFYEXA +{ + NMHDR hdr; + LPOPENFILENAMEA lpOFN; + LPVOID psf; + LPVOID pidl; +} OFNOTIFYEXA, *LPOFNOTIFYEXA; + +typedef struct _OFNOTIFYEXW +{ + NMHDR hdr; + LPOPENFILENAMEW lpOFN; + LPVOID psf; + LPVOID pidl; +} OFNOTIFYEXW, *LPOFNOTIFYEXW; + +DECL_WINELIB_TYPE_AW(OFNOTIFYEX) +DECL_WINELIB_TYPE_AW(LPOFNOTIFYEX) + +typedef UINT_PTR (CALLBACK *LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + +typedef struct { + DWORD lStructSize; + HWND hwndOwner; + HWND hInstance; /* Should be an HINSTANCE but MS made a typo */ + DWORD rgbResult; + LPDWORD lpCustColors; + DWORD Flags; + DWORD lCustData; + LPCCHOOKPROC lpfnHook; + LPCSTR lpTemplateName; +} CHOOSECOLORA; +typedef CHOOSECOLORA *LPCHOOSECOLORA; + +typedef struct { + DWORD lStructSize; + HWND hwndOwner; + HWND hInstance; /* Should be an HINSTANCE but MS made a typo */ + DWORD rgbResult; + LPDWORD lpCustColors; + DWORD Flags; + DWORD lCustData; + LPCCHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; +} CHOOSECOLORW; +typedef CHOOSECOLORW *LPCHOOSECOLORW; + +DECL_WINELIB_TYPE_AW(CHOOSECOLOR) +DECL_WINELIB_TYPE_AW(LPCHOOSECOLOR) + + +#define CC_RGBINIT 0x00000001 +#define CC_FULLOPEN 0x00000002 +#define CC_PREVENTFULLOPEN 0x00000004 +#define CC_SHOWHELP 0x00000008 +#define CC_ENABLEHOOK 0x00000010 +#define CC_ENABLETEMPLATE 0x00000020 +#define CC_ENABLETEMPLATEHANDLE 0x00000040 +#define CC_SOLIDCOLOR 0x00000080 +#define CC_ANYCOLOR 0x00000100 + +typedef UINT_PTR (CALLBACK *LPFRHOOKPROC)(HWND,UINT,WPARAM,LPARAM); + +typedef struct { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + DWORD Flags; + LPSTR lpstrFindWhat; + LPSTR lpstrReplaceWith; + WORD wFindWhatLen; + WORD wReplaceWithLen; + LPARAM lCustData; + LPFRHOOKPROC lpfnHook; + LPCSTR lpTemplateName; +} FINDREPLACEA, *LPFINDREPLACEA; + +typedef struct { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + DWORD Flags; + LPWSTR lpstrFindWhat; + LPWSTR lpstrReplaceWith; + WORD wFindWhatLen; + WORD wReplaceWithLen; + LPARAM lCustData; + LPFRHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; +} FINDREPLACEW, *LPFINDREPLACEW; + +DECL_WINELIB_TYPE_AW(FINDREPLACE) +DECL_WINELIB_TYPE_AW(LPFINDREPLACE) + +#define FR_DOWN 0x00000001 +#define FR_WHOLEWORD 0x00000002 +#define FR_MATCHCASE 0x00000004 +#define FR_FINDNEXT 0x00000008 +#define FR_REPLACE 0x00000010 +#define FR_REPLACEALL 0x00000020 +#define FR_DIALOGTERM 0x00000040 +#define FR_SHOWHELP 0x00000080 +#define FR_ENABLEHOOK 0x00000100 +#define FR_ENABLETEMPLATE 0x00000200 +#define FR_NOUPDOWN 0x00000400 +#define FR_NOMATCHCASE 0x00000800 +#define FR_NOWHOLEWORD 0x00001000 +#define FR_ENABLETEMPLATEHANDLE 0x00002000 +#define FR_HIDEUPDOWN 0x00004000 +#define FR_HIDEMATCHCASE 0x00008000 +#define FR_HIDEWHOLEWORD 0x00010000 +#define FR_MATCHDIAC 0x20000000 +#define FR_MATCHKASHIDA 0x40000000 +#define FR_MATCHALEFHAMZA 0x80000000 + +typedef UINT_PTR (CALLBACK *LPCFHOOKPROC)(HWND,UINT,WPARAM,LPARAM); + +typedef struct tagCHOOSEFONTA +{ + UINT lStructSize; + HWND hwndOwner; + HDC hDC; + LPLOGFONTA lpLogFont; + INT iPointSize; + DWORD Flags; + COLORREF rgbColors; + LPARAM lCustData; + LPCFHOOKPROC lpfnHook; + LPCSTR lpTemplateName; + HINSTANCE hInstance; + LPSTR lpszStyle; + WORD nFontType; + WORD ___MISSING_ALIGNMENT__; + INT nSizeMin; + INT nSizeMax; +} CHOOSEFONTA, *LPCHOOSEFONTA; + +typedef struct tagCHOOSEFONTW +{ + UINT lStructSize; + HWND hwndOwner; + HDC hDC; + LPLOGFONTW lpLogFont; + INT iPointSize; + DWORD Flags; + COLORREF rgbColors; + LPARAM lCustData; + LPCFHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; + HINSTANCE hInstance; + LPWSTR lpszStyle; + WORD nFontType; + WORD ___MISSING_ALIGNMENT__; + INT nSizeMin; + INT nSizeMax; +} CHOOSEFONTW, *LPCHOOSEFONTW; + +DECL_WINELIB_TYPE_AW(CHOOSEFONT) +DECL_WINELIB_TYPE_AW(LPCHOOSEFONT) + +#define CF_SCREENFONTS 0x00000001 +#define CF_PRINTERFONTS 0x00000002 +#define CF_BOTH (CF_SCREENFONTS | CF_PRINTERFONTS) +#define CF_SHOWHELP __MSABI_LONG(0x00000004) +#define CF_ENABLEHOOK __MSABI_LONG(0x00000008) +#define CF_ENABLETEMPLATE __MSABI_LONG(0x00000010) +#define CF_ENABLETEMPLATEHANDLE __MSABI_LONG(0x00000020) +#define CF_INITTOLOGFONTSTRUCT __MSABI_LONG(0x00000040) +#define CF_USESTYLE __MSABI_LONG(0x00000080) +#define CF_EFFECTS __MSABI_LONG(0x00000100) +#define CF_APPLY __MSABI_LONG(0x00000200) +#define CF_ANSIONLY __MSABI_LONG(0x00000400) +#define CF_SCRIPTSONLY CF_ANSIONLY +#define CF_NOVECTORFONTS __MSABI_LONG(0x00000800) +#define CF_NOOEMFONTS CF_NOVECTORFONTS +#define CF_NOSIMULATIONS __MSABI_LONG(0x00001000) +#define CF_LIMITSIZE __MSABI_LONG(0x00002000) +#define CF_FIXEDPITCHONLY __MSABI_LONG(0x00004000) +#define CF_WYSIWYG __MSABI_LONG(0x00008000) /* use with CF_SCREENFONTS & CF_PRINTERFONTS */ +#define CF_FORCEFONTEXIST __MSABI_LONG(0x00010000) +#define CF_SCALABLEONLY __MSABI_LONG(0x00020000) +#define CF_TTONLY __MSABI_LONG(0x00040000) +#define CF_NOFACESEL __MSABI_LONG(0x00080000) +#define CF_NOSTYLESEL __MSABI_LONG(0x00100000) +#define CF_NOSIZESEL __MSABI_LONG(0x00200000) +#define CF_SELECTSCRIPT __MSABI_LONG(0x00400000) +#define CF_NOSCRIPTSEL __MSABI_LONG(0x00800000) +#define CF_NOVERTFONTS __MSABI_LONG(0x01000000) + +#define SIMULATED_FONTTYPE 0x8000 +#define PRINTER_FONTTYPE 0x4000 +#define SCREEN_FONTTYPE 0x2000 +#define BOLD_FONTTYPE 0x0100 +#define ITALIC_FONTTYPE 0x0200 +#define REGULAR_FONTTYPE 0x0400 + +#define WM_CHOOSEFONT_GETLOGFONT (WM_USER + 1) +#define WM_CHOOSEFONT_SETLOGFONT (WM_USER + 101) +#define WM_CHOOSEFONT_SETFLAGS (WM_USER + 102) + +#define LBSELCHSTRINGA "commdlg_LBSelChangedNotify" +#if defined(__GNUC__) +# define LBSELCHSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \ + 'L','B','S','e','l','C','h','a','n','g','e','d','N','o','t','i','f','y',0 } +#elif defined(_MSC_VER) +# define LBSELCHSTRINGW L"commdlg_LBSelChangedNotify" +#else +static const WCHAR LBSELCHSTRINGW[] = { 'c','o','m','m','d','l','g','_', + 'L','B','S','e','l','C','h','a','n','g','e','d','N','o','t','i','f','y',0 }; +#endif +#define LBSELCHSTRING WINELIB_NAME_AW(LBSELCHSTRING) + +#define SHAREVISTRINGA "commdlg_ShareViolation" +#if defined(__GNUC__) +# define SHAREVISTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \ + 'S','h','a','r','e','V','i','o','l','a','t','i','o','n',0 } +#elif defined(_MSC_VER) +# define SHAREVISTRINGW L"commdlg_ShareViolation" +#else +static const WCHAR SHAREVISTRINGW[] = { 'c','o','m','m','d','l','g','_', + 'S','h','a','r','e','V','i','o','l','a','t','i','o','n',0 }; +#endif +#define SHAREVISTRING WINELIB_NAME_AW(SHAREVISTRING) + +#define FILEOKSTRINGA "commdlg_FileNameOK" +#if defined(__GNUC__) +# define FILEOKSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \ + 'F','i','l','e','N','a','m','e','O','K',0 } +#elif defined(_MSC_VER) +# define FILEOKSTRINGW L"commdlg_FileNameOK" +#else +static const WCHAR FILEOKSTRINGW[] = { 'c','o','m','m','d','l','g','_', + 'F','i','l','e','N','a','m','e','O','K',0 }; +#endif +#define FILEOKSTRING WINELIB_NAME_AW(FILEOKSTRING) + +#define COLOROKSTRINGA "commdlg_ColorOK" +#if defined(__GNUC__) +# define COLOROKSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \ + 'C','o','l','o','r','O','K',0 } +#elif defined(_MSC_VER) +# define COLOROKSTRINGW L"commdlg_ColorOK" +#else +static const WCHAR COLOROKSTRINGW[] = { 'c','o','m','m','d','l','g','_', + 'C','o','l','o','r','O','K',0 }; +#endif +#define COLOROKSTRING WINELIB_NAME_AW(COLOROKSTRING) + +#define SETRGBSTRINGA "commdlg_SetRGBColor" +#if defined(__GNUC__) +# define SETRGBSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \ + 'S','e','t','R','G','B','C','o','l','o','r',0 } +#elif defined(_MSC_VER) +# define SETRGBSTRINGW L"commdlg_SetRGBColor" +#else +static const WCHAR SETRGBSTRINGW[] = { 'c','o','m','m','d','l','g','_', + 'S','e','t','R','G','B','C','o','l','o','r',0 }; +#endif +#define SETRGBSTRING WINELIB_NAME_AW(SETRGBSTRING) + +#define FINDMSGSTRINGA "commdlg_FindReplace" +#if defined(__GNUC__) +# define FINDMSGSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \ + 'F','i','n','d','R','e','p','l','a','c','e',0 } +#elif defined(_MSC_VER) +# define FINDMSGSTRINGW L"commdlg_FindReplace" +#else +static const WCHAR FINDMSGSTRINGW[] = { 'c','o','m','m','d','l','g','_', + 'F','i','n','d','R','e','p','l','a','c','e',0 }; +#endif +#define FINDMSGSTRING WINELIB_NAME_AW(FINDMSGSTRING) + +#define HELPMSGSTRINGA "commdlg_help" +#if defined(__GNUC__) +# define HELPMSGSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \ + 'H','e','l','p',0 } +#elif defined(_MSC_VER) +# define HELPMSGSTRINGW L"commdlg_help" +#else +static const WCHAR HELPMSGSTRINGW[] = { 'c','o','m','m','d','l','g','_', + 'H','e','l','p',0 }; +#endif +#define HELPMSGSTRING WINELIB_NAME_AW(HELPMSGSTRING) + +#define CD_LBSELNOITEMS -1 +#define CD_LBSELCHANGE 0 +#define CD_LBSELSUB 1 +#define CD_LBSELADD 2 + +#define CDN_FIRST (0U-601U) +#define CDN_LAST (0U-699U) + +#define CDN_INITDONE (CDN_FIRST - 0x0000) +#define CDN_SELCHANGE (CDN_FIRST - 0x0001) +#define CDN_FOLDERCHANGE (CDN_FIRST - 0x0002) +#define CDN_SHAREVIOLATION (CDN_FIRST - 0x0003) +#define CDN_HELP (CDN_FIRST - 0x0004) +#define CDN_FILEOK (CDN_FIRST - 0x0005) +#define CDN_TYPECHANGE (CDN_FIRST - 0x0006) +#define CDN_INCLUDEITEM (CDN_FIRST - 0x0007) + +#define CDM_FIRST (WM_USER + 100) +#define CDM_LAST (WM_USER + 200) + +#define CDM_GETSPEC (CDM_FIRST + 0x0000) +#define CDM_GETFILEPATH (CDM_FIRST + 0x0001) +#define CDM_GETFOLDERPATH (CDM_FIRST + 0x0002) +#define CDM_GETFOLDERIDLIST (CDM_FIRST + 0x0003) +#define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004) +#define CDM_HIDECONTROL (CDM_FIRST + 0x0005) +#define CDM_SETDEFEXT (CDM_FIRST + 0x0006) + + +/* Messages to query information from the open or save dialogs */ + +#define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz) +#define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz) +#define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec) + +#define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz) +#define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz) +#define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath) + +#define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz) +#define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz) +#define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath) + +#define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl) + +#define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \ + (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text) + +#define CommDlg_OpenSave_HideControl(_hdlg, _id) \ + (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0) + +#define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \ + (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext) + +#define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz) +#define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz) +#define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec) + +#define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz) +#define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz) +#define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath) + +#define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz) +#define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz) +#define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath) + +#define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl) + +#define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \ + (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text) + +#define CommDlg_OpenSave_HideControl(_hdlg, _id) \ + (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0) + +#define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \ + (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext) + + +typedef UINT_PTR (CALLBACK *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM); +typedef UINT_PTR (CALLBACK *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + +typedef struct tagPDA +{ + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + HDC hDC; + DWORD Flags; + WORD nFromPage; + WORD nToPage; + WORD nMinPage; + WORD nMaxPage; + WORD nCopies; + HINSTANCE hInstance; + LPARAM lCustData; + LPPRINTHOOKPROC lpfnPrintHook; + LPSETUPHOOKPROC lpfnSetupHook; + LPCSTR lpPrintTemplateName; + LPCSTR lpSetupTemplateName; + HGLOBAL hPrintTemplate; + HGLOBAL hSetupTemplate; +} PRINTDLGA, *LPPRINTDLGA; + +typedef struct tagPDW +{ + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + HDC hDC; + DWORD Flags; + WORD nFromPage; + WORD nToPage; + WORD nMinPage; + WORD nMaxPage; + WORD nCopies; + HINSTANCE hInstance; + LPARAM lCustData; + LPPRINTHOOKPROC lpfnPrintHook; + LPSETUPHOOKPROC lpfnSetupHook; + LPCWSTR lpPrintTemplateName; + LPCWSTR lpSetupTemplateName; + HGLOBAL hPrintTemplate; + HGLOBAL hSetupTemplate; +} PRINTDLGW, *LPPRINTDLGW; + +DECL_WINELIB_TYPE_AW(PRINTDLG) +DECL_WINELIB_TYPE_AW(LPPRINTDLG) + +#define PD_ALLPAGES 0x00000000 +#define PD_SELECTION 0x00000001 +#define PD_PAGENUMS 0x00000002 +#define PD_NOSELECTION 0x00000004 +#define PD_NOPAGENUMS 0x00000008 +#define PD_COLLATE 0x00000010 +#define PD_PRINTTOFILE 0x00000020 +#define PD_PRINTSETUP 0x00000040 +#define PD_NOWARNING 0x00000080 +#define PD_RETURNDC 0x00000100 +#define PD_RETURNIC 0x00000200 +#define PD_RETURNDEFAULT 0x00000400 +#define PD_SHOWHELP 0x00000800 +#define PD_ENABLEPRINTHOOK 0x00001000 +#define PD_ENABLESETUPHOOK 0x00002000 +#define PD_ENABLEPRINTTEMPLATE 0x00004000 +#define PD_ENABLESETUPTEMPLATE 0x00008000 +#define PD_ENABLEPRINTTEMPLATEHANDLE 0x00010000 +#define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000 +#define PD_USEDEVMODECOPIES 0x00040000 +#define PD_USEDEVMODECOPIESANDCOLLATE 0x00040000 +#define PD_DISABLEPRINTTOFILE 0x00080000 +#define PD_HIDEPRINTTOFILE 0x00100000 +#define PD_NONETWORKBUTTON 0x00200000 +#define PD_CURRENTPAGE 0x00400000 +#define PD_NOCURRENTPAGE 0x00800000 +#define PD_EXCLUSIONFLAGS 0x01000000 +#define PD_USELARGETEMPLATE 0x10000000 + + +#define PD_EXCL_COPIESANDCOLLATE (DM_COPIES | DM_COLLATE) + +#define START_PAGE_GENERAL 0xffffffff + +#define PD_RESULT_CANCEL 0 +#define PD_RESULT_PRINT 1 +#define PD_RESULT_APPLY 2 + +typedef struct +{ + WORD wDriverOffset; + WORD wDeviceOffset; + WORD wOutputOffset; + WORD wDefault; +} DEVNAMES; +typedef DEVNAMES * LPDEVNAMES; + +#define DN_DEFAULTPRN 0x0001 + +/* PageSetupDlg stuff ... */ +#define WM_PSD_PAGESETUPDLG (WM_USER ) +#define WM_PSD_FULLPAGERECT (WM_USER+1) +#define WM_PSD_MINMARGINRECT (WM_USER+2) +#define WM_PSD_MARGINRECT (WM_USER+3) +#define WM_PSD_GREEKTEXTRECT (WM_USER+4) +#define WM_PSD_ENVSTAMPRECT (WM_USER+5) +#define WM_PSD_YAFULLPAGERECT (WM_USER+6) + +typedef UINT (CALLBACK *LPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM ); +typedef UINT (CALLBACK *LPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM ); + +typedef struct tagPSDA +{ + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + DWORD Flags; + POINT ptPaperSize; + RECT rtMinMargin; + RECT rtMargin; + HINSTANCE hInstance; + LPARAM lCustData; + LPPAGESETUPHOOK lpfnPageSetupHook; + LPPAGEPAINTHOOK lpfnPagePaintHook; + LPCSTR lpPageSetupTemplateName; + HGLOBAL hPageSetupTemplate; +} PAGESETUPDLGA,*LPPAGESETUPDLGA; + +typedef struct tagPSDW +{ + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + DWORD Flags; + POINT ptPaperSize; + RECT rtMinMargin; + RECT rtMargin; + HINSTANCE hInstance; + LPARAM lCustData; + LPPAGESETUPHOOK lpfnPageSetupHook; + LPPAGEPAINTHOOK lpfnPagePaintHook; + LPCWSTR lpPageSetupTemplateName; + HGLOBAL hPageSetupTemplate; +} PAGESETUPDLGW,*LPPAGESETUPDLGW; +DECL_WINELIB_TYPE_AW(PAGESETUPDLG) +DECL_WINELIB_TYPE_AW(LPPAGESETUPDLG) + +#define PSD_DEFAULTMINMARGINS 0x00000000 +#define PSD_INWININIINTLMEASURE 0x00000000 + +#define PSD_MINMARGINS 0x00000001 +#define PSD_MARGINS 0x00000002 +#define PSD_INTHOUSANDTHSOFINCHES 0x00000004 +#define PSD_INHUNDREDTHSOFMILLIMETERS 0x00000008 +#define PSD_DISABLEMARGINS 0x00000010 +#define PSD_DISABLEPRINTER 0x00000020 +#define PSD_NOWARNING 0x00000080 +#define PSD_DISABLEORIENTATION 0x00000100 +#define PSD_RETURNDEFAULT 0x00000400 +#define PSD_DISABLEPAPER 0x00000200 +#define PSD_SHOWHELP 0x00000800 +#define PSD_ENABLEPAGESETUPHOOK 0x00002000 +#define PSD_ENABLEPAGESETUPTEMPLATE 0x00008000 +#define PSD_ENABLEPAGESETUPTEMPLATEHANDLE 0x00020000 +#define PSD_ENABLEPAGEPAINTHOOK 0x00040000 +#define PSD_DISABLEPAGEPAINTING 0x00080000 +#define PSD_NONETWORKBUTTON 0x00200000 + +typedef struct tagPRINTPAGERANGE +{ + DWORD nFromPage; + DWORD nToPage; +} PRINTPAGERANGE, *LPPRINTPAGERANGE; + +typedef struct tagPDEXA +{ + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + HDC hDC; + DWORD Flags; + DWORD Flags2; + DWORD ExclusionFlags; + DWORD nPageRanges; + DWORD nMaxPageRanges; + LPPRINTPAGERANGE lpPageRanges; + DWORD nMinPage; + DWORD nMaxPage; + DWORD nCopies; + HINSTANCE hInstance; + LPCSTR lpPrintTemplateName; + void* /*LPUNKNOWN*/ lpCallback; + DWORD nPropertyPages; + HPROPSHEETPAGE* lphPropertyPages; + DWORD nStartPage; + DWORD dwResultAction; +} PRINTDLGEXA, *LPPRINTDLGEXA; + +typedef struct tagPDEXW +{ + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + HDC hDC; + DWORD Flags; + DWORD Flags2; + DWORD ExclusionFlags; + DWORD nPageRanges; + DWORD nMaxPageRanges; + LPPRINTPAGERANGE lpPageRanges; + DWORD nMinPage; + DWORD nMaxPage; + DWORD nCopies; + HINSTANCE hInstance; + LPCWSTR lpPrintTemplateName; + void* /*LPUNKNOWN*/ lpCallback; + DWORD nPropertyPages; + HPROPSHEETPAGE* lphPropertyPages; + DWORD nStartPage; + DWORD dwResultAction; +} PRINTDLGEXW, *LPPRINTDLGEXW; + +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) +DWORD WINAPI CommDlgExtendedError(void); +HWND WINAPI FindTextA(LPFINDREPLACEA lpFind); +HWND WINAPI FindTextW(LPFINDREPLACEW lpFind); +#define FindText WINELIB_NAME_AW(FindText) +short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, WORD cbBuf); +short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, WORD cbBuf); +#define GetFileTitle WINELIB_NAME_AW(GetFileTitle) +BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA ofn); +BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW ofn); +#define GetOpenFileName WINELIB_NAME_AW(GetOpenFileName) +BOOL WINAPI GetSaveFileNameA(LPOPENFILENAMEA ofn); +BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW ofn); +#define GetSaveFileName WINELIB_NAME_AW(GetSaveFileName) +BOOL WINAPI PageSetupDlgA( LPPAGESETUPDLGA ); +BOOL WINAPI PageSetupDlgW( LPPAGESETUPDLGW ); +#define PageSetupDlg WINELIB_NAME_AW(PageSetupDlg) +BOOL WINAPI PrintDlgA( LPPRINTDLGA printdlg); +BOOL WINAPI PrintDlgW( LPPRINTDLGW printdlg); +#define PrintDlg WINELIB_NAME_AW(PrintDlg) +HRESULT WINAPI PrintDlgExA(LPPRINTDLGEXA); +HRESULT WINAPI PrintDlgExW(LPPRINTDLGEXW); +#define PrintDlgEx WINELIB_NAME_AW(PrintDlgEx) +HWND WINAPI ReplaceTextA( LPFINDREPLACEA lpFind); +HWND WINAPI ReplaceTextW( LPFINDREPLACEW lpFind); +#define ReplaceText WINELIB_NAME_AW(ReplaceText) +BOOL WINAPI ChooseFontA(LPCHOOSEFONTA); +BOOL WINAPI ChooseFontW(LPCHOOSEFONTW); +#define ChooseFont WINELIB_NAME_AW(ChooseFont) + +void COMDLG32_SetCommDlgExtendedError(DWORD err); + + +#ifndef _WIN64 +#include +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* __WINE_COMMDLG_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/commoncontrols.idl b/src/VBox/Devices/Graphics/shaderlib/wine/include/commoncontrols.idl new file mode 100644 index 00000000..da4255cf --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/commoncontrols.idl @@ -0,0 +1,223 @@ +/* + * Common controls v6 interface definitions + * + * Copyright 2009 Owen Rudge for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +import "oaidl.idl"; +import "ocidl.idl"; + +/* Definitions required for widl, but already defined in commctrl.h for C */ +cpp_quote("#if 0") +typedef DWORD RGBQUAD; +typedef IUnknown* HIMAGELIST; + +typedef struct +{ + HBITMAP hbmImage; + HBITMAP hbmMask; + int Unused1; + int Unused2; + RECT rcImage; +} IMAGEINFO; + +typedef IMAGEINFO* LPIMAGEINFO; + +typedef struct +{ + DWORD cbSize; + HIMAGELIST himl; + int i; + HDC hdcDst; + int x; + int y; + int cx; + int cy; + int xBitmap; + int yBitmap; + COLORREF rgbBk; + COLORREF rgbFg; + UINT fStyle; + DWORD dwRop; + DWORD fState; + DWORD Frame; + COLORREF crEffect; +} IMAGELISTDRAWPARAMS; + +typedef IMAGELISTDRAWPARAMS* LPIMAGELISTDRAWPARAMS; +cpp_quote("#endif") + +cpp_quote("HRESULT WINAPI ImageList_CoCreateInstance(REFCLSID,const IUnknown *, REFIID,void **);") + +const UINT ILIF_ALPHA = 1; + +[ + object, + uuid(46EB5926-582E-4017-9FDF-E8998DAA0950), + helpstring("Image List"), + local +] +interface IImageList : IUnknown +{ + HRESULT Add( + [in] HBITMAP hbmImage, + [in] HBITMAP hbmMask, + [out] int* pi); + + HRESULT ReplaceIcon( + [in] int i, + [in] HICON hicon, + [out] int* pi); + + HRESULT SetOverlayImage( + [in] int iImage, + [in] int iOverlay); + + HRESULT Replace( + [in] int i, + [in] HBITMAP hbmImage, + [in] HBITMAP hbmMask); + + HRESULT AddMasked( + [in] HBITMAP hbmImage, + [in] COLORREF crMask, + [out] int* pi); + + HRESULT Draw( + [in] IMAGELISTDRAWPARAMS* pimldp); + + HRESULT Remove( + [in] int i); + + HRESULT GetIcon( + [in] int i, + [in] UINT flags, + [out] HICON* picon); + + HRESULT GetImageInfo( + [in] int i, + [out] IMAGEINFO* pImageInfo); + + HRESULT Copy( + [in] int iDst, + [in] IUnknown* punkSrc, + [in] int iSrc, + [in] UINT uFlags); + + HRESULT Merge( + [in] int i1, + [in] IUnknown* punk2, + [in] int i2, + [in] int dx, + [in] int dy, + [out] REFIID riid, + [out] PVOID* ppv); + + HRESULT Clone( + [in] REFIID riid, + [out] PVOID* ppv); + + HRESULT GetImageRect( + [in] int i, + [out] RECT* prc); + + HRESULT GetIconSize( + [out] int* cx, + [out] int* cy); + + HRESULT SetIconSize( + [in] int cx, + [in] int cy); + + HRESULT GetImageCount( + [out] int* pi); + + HRESULT SetImageCount( + [in] UINT uNewCount); + + HRESULT SetBkColor( + [in] COLORREF clrBk, + [out] COLORREF* pclr); + + HRESULT GetBkColor( + [out] COLORREF* pclr); + + HRESULT BeginDrag( + [in] int iTrack, + [in] int dxHotspot, + [in] int dyHotspot); + + HRESULT EndDrag(); + + HRESULT DragEnter( + [in] HWND hwndLock, + [in] int x, + [in] int y); + + HRESULT DragLeave( + [in] HWND hwndLock); + + HRESULT DragMove( + [in] int x, + [in] int y); + + HRESULT SetDragCursorImage( + [in] IUnknown* punk, + [in] int iDrag, + [in] int dxHotspot, + [in] int dyHotspot); + + HRESULT DragShowNolock( + [in] BOOL fShow); + + HRESULT GetDragImage( + [out] POINT * ppt, + [out] POINT * pptHotspot, + [out] REFIID riid, + [out] PVOID* ppv); + + HRESULT GetItemFlags( + [in] int i, + [out] DWORD *dwFlags); + + HRESULT GetOverlayImage( + [in] int iOverlay, + [out] int* piIndex); +} + +[ + uuid(BCADA15B-B428-420c-8D28-023590924C9F) +] +library CommonControlObjects +{ + [ + uuid(7C476BA2-02B1-48f4-8048-B24619DDC058) + ] + coclass ImageList + { + interface IImageList; + } +} diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/compobj.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/compobj.h new file mode 100644 index 00000000..1d082cc2 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/compobj.h @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2000 Francois Gouget + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_COMPOBJ_H +#define __WINE_COMPOBJ_H + +/* compobj.h is just a synonym for objbase.h */ +#include + +#endif /* __WINE_COMPOBJ_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/config.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/config.h new file mode 100644 index 00000000..2cd8715b --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/config.h @@ -0,0 +1,1273 @@ +/* include/config.h. Generated from config.h.in by configure. */ +/* include/config.h.in. Generated from configure.ac by autoheader. */ + +#define __WINE_CONFIG_H + +/* Define to a function attribute for Microsoft hotpatch assembly prefix. */ +#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__)) + +/* Define to the file extension for executables. */ +#define EXEEXT "" + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ALIAS_H */ + +/* Define if you have ALSA 1.x including devel headers */ +/* #undef HAVE_ALSA */ + +/* Define to 1 if you have the header file. */ +#define HAVE_ALSA_ASOUNDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_AL_AL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ARPA_INET_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ARPA_NAMESER_H 1 + +/* Define to 1 if you have the `asctime_r' function. */ +#define HAVE_ASCTIME_R 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ASM_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_AUDIOUNIT_AUDIOUNIT_H */ + +/* Define to 1 if you have the