urlmon.idl 95 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135
  1. cpp_quote("/**")
  2. cpp_quote(" * This file is part of the mingw-w64 runtime package.")
  3. cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.")
  4. cpp_quote(" */")
  5. cpp_quote("")
  6. cpp_quote("#include <winapifamily.h>")
  7. cpp_quote("")
  8. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  9. cpp_quote("")
  10. import "objidl.idl";
  11. import "oleidl.idl";
  12. import "servprov.idl";
  13. import "msxml.idl";
  14. cpp_quote("")
  15. interface IPersistMoniker;
  16. interface IBindProtocol;
  17. interface IBinding;
  18. interface IBindStatusCallback;
  19. interface IBindStatusCallbackEx;
  20. interface IBindStatusCallbackMsg;
  21. interface IAuthenticate;
  22. interface IAuthenticateEx;
  23. interface IWindowForBindingUI;
  24. interface ICodeInstall;
  25. interface IHttpNegotiate;
  26. interface IHttpNegotiate2;
  27. interface IHttpNegotiate3;
  28. interface IWinInetFileStream;
  29. interface IXMLElement;
  30. cpp_quote("")
  31. cpp_quote("EXTERN_C const IID CLSID_SBS_StdURLMoniker;")
  32. cpp_quote("EXTERN_C const IID CLSID_SBS_HttpProtocol;")
  33. cpp_quote("EXTERN_C const IID CLSID_SBS_FtpProtocol;")
  34. cpp_quote("EXTERN_C const IID CLSID_SBS_GopherProtocol;")
  35. cpp_quote("EXTERN_C const IID CLSID_SBS_HttpSProtocol;")
  36. cpp_quote("EXTERN_C const IID CLSID_SBS_FileProtocol;")
  37. cpp_quote("EXTERN_C const IID CLSID_SBS_MkProtocol;")
  38. cpp_quote("EXTERN_C const IID CLSID_SBS_UrlMkBindCtx;")
  39. cpp_quote("EXTERN_C const IID CLSID_SBS_SoftDistExt;")
  40. cpp_quote("EXTERN_C const IID CLSID_SBS_CdlProtocol;")
  41. cpp_quote("EXTERN_C const IID CLSID_SBS_ClassInstallFilter;")
  42. cpp_quote("EXTERN_C const IID CLSID_SBS_InternetSecurityManager;")
  43. cpp_quote("EXTERN_C const IID CLSID_SBS_InternetZoneManager;")
  44. cpp_quote("")
  45. cpp_quote("#define BINDF_DONTUSECACHE BINDF_GETNEWESTVERSION")
  46. cpp_quote("#define BINDF_DONTPUTINCACHE BINDF_NOWRITECACHE")
  47. cpp_quote("#define BINDF_NOCOPYDATA BINDF_PULLDATA")
  48. cpp_quote("#define INVALID_P_ROOT_SECURITY_ID ((BYTE*)-1)")
  49. cpp_quote("")
  50. cpp_quote("#define PI_DOCFILECLSIDLOOKUP PI_CLSIDLOOKUP")
  51. cpp_quote("")
  52. cpp_quote("EXTERN_C const IID IID_IAsyncMoniker;")
  53. cpp_quote("EXTERN_C const IID CLSID_StdURLMoniker;")
  54. cpp_quote("EXTERN_C const IID CLSID_HttpProtocol;")
  55. cpp_quote("EXTERN_C const IID CLSID_FtpProtocol;")
  56. cpp_quote("EXTERN_C const IID CLSID_GopherProtocol;")
  57. cpp_quote("EXTERN_C const IID CLSID_HttpSProtocol;")
  58. cpp_quote("EXTERN_C const IID CLSID_FileProtocol;")
  59. cpp_quote("EXTERN_C const IID CLSID_MkProtocol;")
  60. cpp_quote("EXTERN_C const IID CLSID_StdURLProtocol;")
  61. cpp_quote("EXTERN_C const IID CLSID_UrlMkBindCtx;")
  62. cpp_quote("EXTERN_C const IID CLSID_CdlProtocol;")
  63. cpp_quote("EXTERN_C const IID CLSID_ClassInstallFilter;")
  64. cpp_quote("EXTERN_C const IID IID_IAsyncBindCtx;")
  65. cpp_quote("")
  66. cpp_quote("#define SZ_URLCONTEXT OLESTR(\"URL Context\")")
  67. cpp_quote("#define SZ_ASYNC_CALLEE OLESTR(\"AsyncCallee\")")
  68. cpp_quote("")
  69. cpp_quote("#define MKSYS_URLMONIKER 6")
  70. cpp_quote("#define URL_MK_LEGACY 0")
  71. cpp_quote("#define URL_MK_UNIFORM 1")
  72. cpp_quote("#define URL_MK_NO_CANONICALIZE 2")
  73. cpp_quote("")
  74. cpp_quote("STDAPI CreateURLMoniker(LPMONIKER pMkCtx, LPCWSTR szURL, LPMONIKER *ppmk);")
  75. cpp_quote("STDAPI CreateURLMonikerEx(LPMONIKER pMkCtx, LPCWSTR szURL, LPMONIKER *ppmk, DWORD dwFlags);")
  76. cpp_quote("STDAPI GetClassURL(LPCWSTR szURL, CLSID *pClsID);")
  77. cpp_quote("STDAPI CreateAsyncBindCtx(DWORD reserved, IBindStatusCallback *pBSCb, IEnumFORMATETC *pEFetc, IBindCtx **ppBC);")
  78. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  79. cpp_quote("STDAPI CreateURLMonikerEx2(LPMONIKER pMkCtx, IUri *pUri, LPMONIKER *ppmk, DWORD dwFlags);")
  80. cpp_quote("#endif")
  81. cpp_quote("STDAPI CreateAsyncBindCtxEx(IBindCtx *pbc, DWORD dwOptions, IBindStatusCallback *pBSCb, IEnumFORMATETC *pEnum, IBindCtx **ppBC, DWORD reserved);")
  82. cpp_quote("STDAPI MkParseDisplayNameEx(IBindCtx *pbc, LPCWSTR szDisplayName, ULONG *pchEaten, LPMONIKER *ppmk);")
  83. cpp_quote("STDAPI RegisterBindStatusCallback(LPBC pBC, IBindStatusCallback *pBSCb, IBindStatusCallback **ppBSCBPrev, DWORD dwReserved);")
  84. cpp_quote("STDAPI RevokeBindStatusCallback(LPBC pBC, IBindStatusCallback *pBSCb);")
  85. cpp_quote("STDAPI GetClassFileOrMime(LPBC pBC, LPCWSTR szFilename, LPVOID pBuffer, DWORD cbSize, LPCWSTR szMime, DWORD dwReserved, CLSID *pclsid);")
  86. cpp_quote("STDAPI IsValidURL(LPBC pBC, LPCWSTR szURL, DWORD dwReserved);")
  87. cpp_quote("STDAPI CoGetClassObjectFromURL(REFCLSID rCLASSID, LPCWSTR szCODE, DWORD dwFileVersionMS, DWORD dwFileVersionLS, LPCWSTR szTYPE, LPBINDCTX pBindCtx, DWORD dwClsContext, LPVOID pvReserved, REFIID riid, LPVOID *ppv);")
  88. cpp_quote("STDAPI IEInstallScope(LPDWORD pdwScope);")
  89. cpp_quote("STDAPI FaultInIEFeature(HWND hWnd, uCLSSPEC *pClassSpec, QUERYCONTEXT *pQuery, DWORD dwFlags);")
  90. cpp_quote("STDAPI GetComponentIDFromCLSSPEC(uCLSSPEC *pClassspec, LPSTR *ppszComponentID);")
  91. cpp_quote("")
  92. cpp_quote("#define FIEF_FLAG_FORCE_JITUI 0x1")
  93. cpp_quote("#define FIEF_FLAG_PEEK 0x2")
  94. cpp_quote("#define FIEF_FLAG_SKIP_INSTALLED_VERSION_CHECK 0x4")
  95. cpp_quote("")
  96. cpp_quote("STDAPI IsAsyncMoniker(IMoniker *pmk);")
  97. cpp_quote("STDAPI CreateURLBinding(LPCWSTR lpszUrl, IBindCtx *pbc, IBinding **ppBdg);")
  98. cpp_quote("STDAPI RegisterMediaTypes(UINT ctypes, const LPCSTR *rgszTypes, CLIPFORMAT *rgcfTypes);")
  99. cpp_quote("STDAPI FindMediaType(LPCSTR rgszTypes, CLIPFORMAT *rgcfTypes);")
  100. cpp_quote("STDAPI CreateFormatEnumerator(UINT cfmtetc, FORMATETC *rgfmtetc, IEnumFORMATETC **ppenumfmtetc);")
  101. cpp_quote("STDAPI RegisterFormatEnumerator(LPBC pBC, IEnumFORMATETC *pEFetc, DWORD reserved);")
  102. cpp_quote("STDAPI RevokeFormatEnumerator(LPBC pBC, IEnumFORMATETC *pEFetc);")
  103. cpp_quote("STDAPI RegisterMediaTypeClass(LPBC pBC,UINT ctypes, const LPCSTR *rgszTypes, CLSID *rgclsID, DWORD reserved);")
  104. cpp_quote("STDAPI FindMediaTypeClass(LPBC pBC, LPCSTR szType, CLSID *pclsID, DWORD reserved);")
  105. cpp_quote("STDAPI UrlMkSetSessionOption(DWORD dwOption, LPVOID pBuffer, DWORD dwBufferLength, DWORD dwReserved);")
  106. cpp_quote("STDAPI UrlMkGetSessionOption(DWORD dwOption, LPVOID pBuffer, DWORD dwBufferLength, DWORD *pdwBufferLengthOut, DWORD dwReserved);")
  107. cpp_quote("STDAPI FindMimeFromData(LPBC pBC, LPCWSTR pwzUrl, LPVOID pBuffer, DWORD cbSize, LPCWSTR pwzMimeProposed, DWORD dwMimeFlags, LPWSTR *ppwzMimeOut, DWORD dwReserved);")
  108. cpp_quote("")
  109. cpp_quote("#define FMFD_DEFAULT 0x0")
  110. cpp_quote("#define FMFD_URLASFILENAME 0x1")
  111. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  112. cpp_quote("#define FMFD_ENABLEMIMESNIFFING 0x2")
  113. cpp_quote("#define FMFD_IGNOREMIMETEXTPLAIN 0x4")
  114. cpp_quote("#endif")
  115. cpp_quote("")
  116. cpp_quote("#define FMFD_SERVERMIME 0x8")
  117. cpp_quote("#define FMFD_RESPECTTEXTPLAIN 0x10")
  118. cpp_quote("#define FMFD_RETURNUPDATEDIMGMIMES 0x20")
  119. cpp_quote("#define UAS_EXACTLEGACY 0x1000")
  120. cpp_quote("")
  121. cpp_quote("STDAPI ObtainUserAgentString(DWORD dwOption, LPSTR pszUAOut, DWORD *cbSize);")
  122. cpp_quote("STDAPI CompareSecurityIds(BYTE *pbSecurityId1, DWORD dwLen1, BYTE *pbSecurityId2, DWORD dwLen2, DWORD dwReserved);")
  123. cpp_quote("STDAPI CompatFlagsFromClsid(CLSID *pclsid, LPDWORD pdwCompatFlags, LPDWORD pdwMiscStatusFlags);")
  124. cpp_quote("")
  125. cpp_quote("#define URLMON_OPTION_USERAGENT 0x10000001")
  126. cpp_quote("#define URLMON_OPTION_USERAGENT_REFRESH 0x10000002")
  127. cpp_quote("#define URLMON_OPTION_URL_ENCODING 0x10000004")
  128. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  129. cpp_quote("#define URLMON_OPTION_USE_BINDSTRINGCREDS 0x10000008")
  130. cpp_quote("#endif")
  131. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  132. cpp_quote("#define URLMON_OPTION_USE_BROWSERAPPSDOCUMENTS 0x10000010")
  133. cpp_quote("#endif")
  134. cpp_quote("#endif")
  135. cpp_quote("")
  136. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
  137. cpp_quote("#define CF_NULL 0")
  138. cpp_quote("#define CFSTR_MIME_NULL NULL")
  139. cpp_quote("")
  140. cpp_quote("#define CFSTR_MIME_TEXT (TEXT(\"text/plain\"))")
  141. cpp_quote("#define CFSTR_MIME_RICHTEXT (TEXT(\"text/richtext\"))")
  142. cpp_quote("#define CFSTR_MIME_MANIFEST (TEXT(\"text/cache-manifest\"))")
  143. cpp_quote("#define CFSTR_MIME_WEBVTT (TEXT(\"text/vtt\"))")
  144. cpp_quote("#define CFSTR_MIME_X_BITMAP (TEXT(\"image/x-xbitmap\"))")
  145. cpp_quote("#define CFSTR_MIME_POSTSCRIPT (TEXT(\"application/postscript\"))")
  146. cpp_quote("#define CFSTR_MIME_AIFF (TEXT(\"audio/aiff\"))")
  147. cpp_quote("#define CFSTR_MIME_BASICAUDIO (TEXT(\"audio/basic\"))")
  148. cpp_quote("#define CFSTR_MIME_WAV (TEXT(\"audio/wav\"))")
  149. cpp_quote("#define CFSTR_MIME_X_WAV (TEXT(\"audio/x-wav\"))")
  150. cpp_quote("#define CFSTR_MIME_GIF (TEXT(\"image/gif\"))")
  151. cpp_quote("#define CFSTR_MIME_PJPEG (TEXT(\"image/pjpeg\"))")
  152. cpp_quote("#define CFSTR_MIME_JPEG (TEXT(\"image/jpeg\"))")
  153. cpp_quote("#define CFSTR_MIME_TIFF (TEXT(\"image/tiff\"))")
  154. cpp_quote("#define CFSTR_MIME_JPEG_XR (TEXT(\"image/vnd.ms-photo\"))")
  155. cpp_quote("#define CFSTR_MIME_PNG (TEXT(\"image/png\"))")
  156. cpp_quote("#define CFSTR_MIME_X_PNG (TEXT(\"image/x-png\"))")
  157. cpp_quote("#define CFSTR_MIME_X_ICON (TEXT(\"image/x-icon\"))")
  158. cpp_quote("#define CFSTR_MIME_SVG_XML (TEXT(\"image/svg+xml\"))")
  159. cpp_quote("#define CFSTR_MIME_BMP (TEXT(\"image/bmp\"))")
  160. cpp_quote("#define CFSTR_MIME_X_EMF (TEXT(\"image/x-emf\"))")
  161. cpp_quote("#define CFSTR_MIME_X_WMF (TEXT(\"image/x-wmf\"))")
  162. cpp_quote("#define CFSTR_MIME_AVI (TEXT(\"video/avi\"))")
  163. cpp_quote("#define CFSTR_MIME_MPEG (TEXT(\"video/mpeg\"))")
  164. cpp_quote("#define CFSTR_MIME_FRACTALS (TEXT(\"application/fractals\"))")
  165. cpp_quote("#define CFSTR_MIME_RAWDATA (TEXT(\"application/octet-stream\"))")
  166. cpp_quote("#define CFSTR_MIME_RAWDATASTRM (TEXT(\"application/octet-stream\"))")
  167. cpp_quote("#define CFSTR_MIME_PDF (TEXT(\"application/pdf\"))")
  168. cpp_quote("#define CFSTR_MIME_HTA (TEXT(\"application/hta\"))")
  169. cpp_quote("#define CFSTR_MIME_APP_XML (TEXT(\"application/xml\"))")
  170. cpp_quote("#define CFSTR_MIME_XHTML (TEXT(\"application/xhtml+xml\"))")
  171. cpp_quote("#define CFSTR_MIME_X_AIFF (TEXT(\"audio/x-aiff\"))")
  172. cpp_quote("#define CFSTR_MIME_X_REALAUDIO (TEXT(\"audio/x-pn-realaudio\"))")
  173. cpp_quote("#define CFSTR_MIME_XBM (TEXT(\"image/xbm\"))")
  174. cpp_quote("#define CFSTR_MIME_QUICKTIME (TEXT(\"video/quicktime\"))")
  175. cpp_quote("#define CFSTR_MIME_X_MSVIDEO (TEXT(\"video/x-msvideo\"))")
  176. cpp_quote("#define CFSTR_MIME_X_SGI_MOVIE (TEXT(\"video/x-sgi-movie\"))")
  177. cpp_quote("#define CFSTR_MIME_HTML (TEXT(\"text/html\"))")
  178. cpp_quote("#define CFSTR_MIME_XML (TEXT(\"text/xml\"))")
  179. cpp_quote("#define CFSTR_MIME_TTML (TEXT(\"application/ttml+xml\"))")
  180. cpp_quote("#define CFSTR_MIME_TTAF (TEXT(\"application/ttaf+xml\"))")
  181. cpp_quote("")
  182. cpp_quote("#define MK_S_ASYNCHRONOUS _HRESULT_TYPEDEF_(0x401E8L)")
  183. cpp_quote("#ifndef S_ASYNCHRONOUS")
  184. cpp_quote("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")
  185. cpp_quote("#endif")
  186. cpp_quote("")
  187. cpp_quote("#ifndef E_PENDING")
  188. cpp_quote("#define E_PENDING _HRESULT_TYPEDEF_(__MSABI_LONG(0x8000000a))")
  189. cpp_quote("#endif")
  190. cpp_quote("#define INET_E_INVALID_URL _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0002))")
  191. cpp_quote("#define INET_E_NO_SESSION _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0003))")
  192. cpp_quote("#define INET_E_CANNOT_CONNECT _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0004))")
  193. cpp_quote("#define INET_E_RESOURCE_NOT_FOUND _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0005))")
  194. cpp_quote("#define INET_E_OBJECT_NOT_FOUND _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0006))")
  195. cpp_quote("#define INET_E_DATA_NOT_AVAILABLE _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0007))")
  196. cpp_quote("#define INET_E_DOWNLOAD_FAILURE _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0008))")
  197. cpp_quote("#define INET_E_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0009))")
  198. cpp_quote("#define INET_E_NO_VALID_MEDIA _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C000A))")
  199. cpp_quote("#define INET_E_CONNECTION_TIMEOUT _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C000B))")
  200. cpp_quote("#define INET_E_INVALID_REQUEST _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C000C))")
  201. cpp_quote("#define INET_E_UNKNOWN_PROTOCOL _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C000D))")
  202. cpp_quote("#define INET_E_SECURITY_PROBLEM _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C000E))")
  203. cpp_quote("#define INET_E_CANNOT_LOAD_DATA _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C000F))")
  204. cpp_quote("#define INET_E_CANNOT_INSTANTIATE_OBJECT _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0010))")
  205. cpp_quote("#define INET_E_INVALID_CERTIFICATE _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0019))")
  206. cpp_quote("#define INET_E_REDIRECT_FAILED _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0014))")
  207. cpp_quote("#define INET_E_REDIRECT_TO_DIR _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0015))")
  208. cpp_quote("#define INET_E_CANNOT_LOCK_REQUEST _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0016))")
  209. cpp_quote("#define INET_E_USE_EXTEND_BINDING _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0017))")
  210. cpp_quote("#define INET_E_TERMINATED_BIND _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0018))")
  211. cpp_quote("#define INET_E_RESERVED_1 _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C001A))")
  212. cpp_quote("#define INET_E_BLOCKED_REDIRECT_XSECURITYID _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C001B))")
  213. cpp_quote("#define INET_E_DOMINJECTIONVALIDATION _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C001C))")
  214. cpp_quote("#define INET_E_ERROR_FIRST _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0002))")
  215. cpp_quote("#define INET_E_CODE_DOWNLOAD_DECLINED _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0100))")
  216. cpp_quote("#define INET_E_RESULT_DISPATCHED _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0200))")
  217. cpp_quote("#define INET_E_CANNOT_REPLACE_SFP_FILE _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0300))")
  218. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  219. cpp_quote("#define INET_E_CODE_INSTALL_SUPPRESSED _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0400))")
  220. cpp_quote("#endif")
  221. cpp_quote("#define INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0500))")
  222. cpp_quote("#define INET_E_DOWNLOAD_BLOCKED_BY_INPRIVATE _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0501))")
  223. cpp_quote("#define INET_E_CODE_INSTALL_BLOCKED_IMMERSIVE _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0502))")
  224. cpp_quote("#define INET_E_FORBIDFRAMING _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0503))")
  225. cpp_quote("#define INET_E_CODE_INSTALL_BLOCKED_ARM _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0504))")
  226. cpp_quote("#define INET_E_BLOCKED_PLUGGABLE_PROTOCOL _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0505))")
  227. cpp_quote("#define INET_E_ERROR_LAST INET_E_BLOCKED_PLUGGABLE_PROTOCOL")
  228. cpp_quote("#endif")
  229. cpp_quote("")
  230. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  231. cpp_quote("#ifndef _LPPERSISTMONIKER_DEFINED")
  232. cpp_quote("#define _LPPERSISTMONIKER_DEFINED")
  233. [object, uuid (79eac9c9-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  234. interface IPersistMoniker : IUnknown {
  235. typedef [unique] IPersistMoniker *LPPERSISTMONIKER;
  236. cpp_quote("")
  237. HRESULT GetClassID ([out] CLSID *pClassID);
  238. HRESULT IsDirty (void);
  239. HRESULT Load ([in] BOOL fFullyAvailable,[in] IMoniker *pimkName,[in] LPBC pibc,[in] DWORD grfMode);
  240. HRESULT Save ([in] IMoniker *pimkName,[in] LPBC pbc,[in] BOOL fRemember);
  241. HRESULT SaveCompleted ([in] IMoniker *pimkName,[in] LPBC pibc);
  242. HRESULT GetCurMoniker ([out] IMoniker **ppimkName);
  243. }
  244. cpp_quote("#endif")
  245. cpp_quote("")
  246. cpp_quote("#ifndef _LPMONIKERPROP_DEFINED")
  247. cpp_quote("#define _LPMONIKERPROP_DEFINED")
  248. [object, uuid (a5ca5f7f-1847-4d87-9c5b-918509f7511d), pointer_default (unique)]
  249. interface IMonikerProp : IUnknown {
  250. typedef [unique] IMonikerProp *LPMONIKERPROP;
  251. cpp_quote("")
  252. typedef enum {
  253. MIMETYPEPROP = 0x0,
  254. USE_SRC_URL = 0x1,
  255. CLASSIDPROP = 0x2,
  256. TRUSTEDDOWNLOADPROP = 0x3,
  257. POPUPLEVELPROP = 0x4,
  258. } MONIKERPROPERTY;
  259. cpp_quote("")
  260. HRESULT PutProperty ([in] MONIKERPROPERTY mkp,[in] LPCWSTR val);
  261. }
  262. cpp_quote("#endif")
  263. cpp_quote("")
  264. cpp_quote("#ifndef _LPBINDPROTOCOL_DEFINED")
  265. cpp_quote("#define _LPBINDPROTOCOL_DEFINED")
  266. cpp_quote("")
  267. [local, object, uuid (79eac9cd-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  268. interface IBindProtocol : IUnknown {
  269. typedef [unique] IBindProtocol *LPBINDPROTOCOL;
  270. cpp_quote("")
  271. HRESULT CreateBinding ([in] LPCWSTR szUrl,[in] IBindCtx *pbc,[out] IBinding **ppb);
  272. }
  273. cpp_quote("#endif")
  274. cpp_quote("")
  275. cpp_quote("#ifndef _LPBINDING_DEFINED")
  276. cpp_quote("#define _LPBINDING_DEFINED")
  277. cpp_quote("")
  278. [object, uuid (79eac9c0-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  279. interface IBinding: IUnknown {
  280. typedef [unique] IBinding *LPBINDING;
  281. cpp_quote("")
  282. HRESULT Abort ();
  283. HRESULT Suspend ();
  284. HRESULT Resume ();
  285. HRESULT SetPriority ([in] LONG nPriority);
  286. HRESULT GetPriority ([out] LONG *pnPriority);
  287. [local] HRESULT GetBindResult ([out] CLSID *pclsidProtocol,[out] DWORD *pdwResult,[out] LPOLESTR *pszResult,[in, out] DWORD *pdwReserved);
  288. [call_as (GetBindResult)] HRESULT RemoteGetBindResult ([out] CLSID *pclsidProtocol,[out] DWORD *pdwResult,[out] LPOLESTR *pszResult,[in] DWORD dwReserved);
  289. }
  290. cpp_quote("#endif")
  291. cpp_quote("#endif")
  292. cpp_quote("")
  293. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
  294. cpp_quote("#ifndef _LPBINDSTATUSCALLBACK_DEFINED")
  295. cpp_quote("#define _LPBINDSTATUSCALLBACK_DEFINED")
  296. cpp_quote("")
  297. [object, uuid (79eac9c1-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  298. interface IBindStatusCallback: IUnknown {
  299. typedef [unique] IBindStatusCallback *LPBINDSTATUSCALLBACK;
  300. cpp_quote("")
  301. typedef enum {
  302. BINDVERB_GET = 0x0,
  303. BINDVERB_POST = 0x1,
  304. BINDVERB_PUT = 0x2,
  305. BINDVERB_CUSTOM = 0x3,
  306. BINDVERB_RESERVED1 = 0x4,
  307. } BINDVERB;
  308. cpp_quote("")
  309. typedef enum {
  310. BINDINFOF_URLENCODESTGMEDDATA = 0x1,
  311. BINDINFOF_URLENCODEDEXTRAINFO = 0x2,
  312. } BINDINFOF;
  313. cpp_quote("")
  314. typedef enum {
  315. BINDF_ASYNCHRONOUS = 0x1,
  316. BINDF_ASYNCSTORAGE = 0x2,
  317. BINDF_NOPROGRESSIVERENDERING = 0x4,
  318. BINDF_OFFLINEOPERATION = 0x8,
  319. BINDF_GETNEWESTVERSION = 0x10,
  320. BINDF_NOWRITECACHE = 0x20,
  321. BINDF_NEEDFILE = 0x40,
  322. BINDF_PULLDATA = 0x80,
  323. BINDF_IGNORESECURITYPROBLEM = 0x100,
  324. BINDF_RESYNCHRONIZE = 0x200,
  325. BINDF_HYPERLINK = 0x400,
  326. BINDF_NO_UI = 0x800,
  327. BINDF_SILENTOPERATION = 0x1000,
  328. BINDF_PRAGMA_NO_CACHE = 0x2000,
  329. BINDF_GETCLASSOBJECT = 0x4000,
  330. BINDF_RESERVED_1 = 0x8000,
  331. BINDF_FREE_THREADED = 0x10000,
  332. BINDF_DIRECT_READ = 0x20000,
  333. BINDF_FORMS_SUBMIT = 0x40000,
  334. BINDF_GETFROMCACHE_IF_NET_FAIL = 0x80000,
  335. BINDF_FROMURLMON = 0x100000,
  336. BINDF_FWD_BACK = 0x200000,
  337. BINDF_PREFERDEFAULTHANDLER = 0x400000,
  338. BINDF_ENFORCERESTRICTED = 0x800000,
  339. BINDF_RESERVED_2 = 0x80000000,
  340. BINDF_RESERVED_3 = 0x1000000,
  341. BINDF_RESERVED_4 = 0x2000000,
  342. BINDF_RESERVED_5 = 0x4000000,
  343. BINDF_RESERVED_6 = 0x8000000,
  344. BINDF_RESERVED_7 = 0x40000000,
  345. BINDF_RESERVED_8 = 0x20000000
  346. } BINDF;
  347. cpp_quote("")
  348. typedef enum {
  349. URL_ENCODING_NONE = 0x0,
  350. URL_ENCODING_ENABLE_UTF8 = 0x10000000,
  351. URL_ENCODING_DISABLE_UTF8 = 0x20000000
  352. } URL_ENCODING;
  353. cpp_quote("")
  354. typedef struct _tagBINDINFO {
  355. ULONG cbSize;
  356. LPWSTR szExtraInfo;
  357. STGMEDIUM stgmedData;
  358. DWORD grfBindInfoF;
  359. DWORD dwBindVerb;
  360. LPWSTR szCustomVerb;
  361. DWORD cbstgmedData;
  362. DWORD dwOptions;
  363. DWORD dwOptionsFlags;
  364. DWORD dwCodePage;
  365. SECURITY_ATTRIBUTES securityAttributes;
  366. IID iid;
  367. IUnknown *pUnk;
  368. DWORD dwReserved;
  369. } BINDINFO;
  370. cpp_quote("")
  371. typedef struct _REMSECURITY_ATTRIBUTES {
  372. DWORD nLength;
  373. DWORD lpSecurityDescriptor;
  374. BOOL bInheritHandle;
  375. } REMSECURITY_ATTRIBUTES,*PREMSECURITY_ATTRIBUTES,*LPREMSECURITY_ATTRIBUTES;
  376. cpp_quote("")
  377. typedef struct _tagRemBINDINFO {
  378. ULONG cbSize;
  379. LPWSTR szExtraInfo;
  380. DWORD grfBindInfoF;
  381. DWORD dwBindVerb;
  382. LPWSTR szCustomVerb;
  383. DWORD cbstgmedData;
  384. DWORD dwOptions;
  385. DWORD dwOptionsFlags;
  386. DWORD dwCodePage;
  387. REMSECURITY_ATTRIBUTES securityAttributes;
  388. IID iid;
  389. IUnknown *pUnk;
  390. DWORD dwReserved;
  391. } RemBINDINFO;
  392. cpp_quote("")
  393. typedef struct tagRemFORMATETC {
  394. DWORD cfFormat;
  395. DWORD ptd;
  396. DWORD dwAspect;
  397. LONG lindex;
  398. DWORD tymed;
  399. } RemFORMATETC,*LPREMFORMATETC;
  400. cpp_quote("")
  401. typedef enum {
  402. BINDINFO_OPTIONS_WININETFLAG = 0x10000,
  403. BINDINFO_OPTIONS_ENABLE_UTF8 = 0x20000,
  404. BINDINFO_OPTIONS_DISABLE_UTF8 = 0x40000,
  405. BINDINFO_OPTIONS_USE_IE_ENCODING = 0x80000,
  406. BINDINFO_OPTIONS_BINDTOOBJECT = 0x100000,
  407. BINDINFO_OPTIONS_SECURITYOPTOUT = 0x200000,
  408. BINDINFO_OPTIONS_IGNOREMIMETEXTPLAIN = 0x400000,
  409. BINDINFO_OPTIONS_USEBINDSTRINGCREDS = 0x800000,
  410. BINDINFO_OPTIONS_IGNOREHTTPHTTPSREDIRECTS = 0x1000000,
  411. BINDINFO_OPTIONS_IGNORE_SSLERRORS_ONCE = 0x2000000,
  412. BINDINFO_WPC_DOWNLOADBLOCKED = 0x8000000,
  413. BINDINFO_WPC_LOGGING_ENABLED = 0x10000000,
  414. BINDINFO_OPTIONS_ALLOWCONNECTDATA = 0x20000000,
  415. BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS = 0x40000000,
  416. BINDINFO_OPTIONS_SHDOCVW_NAVIGATE = (int) 0x80000000
  417. } BINDINFO_OPTIONS;
  418. cpp_quote("")
  419. typedef enum {
  420. BSCF_FIRSTDATANOTIFICATION = 0x1,
  421. BSCF_INTERMEDIATEDATANOTIFICATION = 0x2,
  422. BSCF_LASTDATANOTIFICATION = 0x4,
  423. BSCF_DATAFULLYAVAILABLE = 0x8,
  424. BSCF_AVAILABLEDATASIZEUNKNOWN = 0x10,
  425. BSCF_SKIPDRAINDATAFORFILEURLS = 0x20,
  426. BSCF_64BITLENGTHDOWNLOAD = 0x40
  427. } BSCF;
  428. cpp_quote("")
  429. typedef enum tagBINDSTATUS {
  430. BINDSTATUS_FINDINGRESOURCE = 1,
  431. BINDSTATUS_CONNECTING,
  432. BINDSTATUS_REDIRECTING,
  433. BINDSTATUS_BEGINDOWNLOADDATA,
  434. BINDSTATUS_DOWNLOADINGDATA,
  435. BINDSTATUS_ENDDOWNLOADDATA,
  436. BINDSTATUS_BEGINDOWNLOADCOMPONENTS,
  437. BINDSTATUS_INSTALLINGCOMPONENTS,
  438. BINDSTATUS_ENDDOWNLOADCOMPONENTS,
  439. BINDSTATUS_USINGCACHEDCOPY,
  440. BINDSTATUS_SENDINGREQUEST,
  441. BINDSTATUS_CLASSIDAVAILABLE,
  442. BINDSTATUS_MIMETYPEAVAILABLE,
  443. BINDSTATUS_CACHEFILENAMEAVAILABLE,
  444. BINDSTATUS_BEGINSYNCOPERATION,
  445. BINDSTATUS_ENDSYNCOPERATION,
  446. BINDSTATUS_BEGINUPLOADDATA,
  447. BINDSTATUS_UPLOADINGDATA,
  448. BINDSTATUS_ENDUPLOADDATA,
  449. BINDSTATUS_PROTOCOLCLASSID,
  450. BINDSTATUS_ENCODING,
  451. BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE,
  452. BINDSTATUS_CLASSINSTALLLOCATION,
  453. BINDSTATUS_DECODING,
  454. BINDSTATUS_LOADINGMIMEHANDLER,
  455. BINDSTATUS_CONTENTDISPOSITIONATTACH,
  456. BINDSTATUS_FILTERREPORTMIMETYPE,
  457. BINDSTATUS_CLSIDCANINSTANTIATE,
  458. BINDSTATUS_IUNKNOWNAVAILABLE,
  459. BINDSTATUS_DIRECTBIND,
  460. BINDSTATUS_RAWMIMETYPE,
  461. BINDSTATUS_PROXYDETECTING,
  462. BINDSTATUS_ACCEPTRANGES,
  463. BINDSTATUS_COOKIE_SENT,
  464. BINDSTATUS_COMPACT_POLICY_RECEIVED,
  465. BINDSTATUS_COOKIE_SUPPRESSED,
  466. BINDSTATUS_COOKIE_STATE_UNKNOWN,
  467. BINDSTATUS_COOKIE_STATE_ACCEPT,
  468. BINDSTATUS_COOKIE_STATE_REJECT,
  469. BINDSTATUS_COOKIE_STATE_PROMPT,
  470. BINDSTATUS_COOKIE_STATE_LEASH,
  471. BINDSTATUS_COOKIE_STATE_DOWNGRADE,
  472. BINDSTATUS_POLICY_HREF,
  473. BINDSTATUS_P3P_HEADER,
  474. BINDSTATUS_SESSION_COOKIE_RECEIVED,
  475. BINDSTATUS_PERSISTENT_COOKIE_RECEIVED,
  476. BINDSTATUS_SESSION_COOKIES_ALLOWED,
  477. BINDSTATUS_CACHECONTROL,
  478. BINDSTATUS_CONTENTDISPOSITIONFILENAME,
  479. BINDSTATUS_MIMETEXTPLAINMISMATCH,
  480. BINDSTATUS_PUBLISHERAVAILABLE,
  481. BINDSTATUS_DISPLAYNAMEAVAILABLE,
  482. BINDSTATUS_SSLUX_NAVBLOCKED,
  483. BINDSTATUS_SERVER_MIMETYPEAVAILABLE,
  484. BINDSTATUS_SNIFFED_CLASSIDAVAILABLE,
  485. BINDSTATUS_64BIT_PROGRESS,
  486. BINDSTATUS_LAST = BINDSTATUS_64BIT_PROGRESS,
  487. BINDSTATUS_RESERVED_0,
  488. BINDSTATUS_RESERVED_1,
  489. BINDSTATUS_RESERVED_2,
  490. BINDSTATUS_RESERVED_3,
  491. BINDSTATUS_RESERVED_4,
  492. BINDSTATUS_RESERVED_5,
  493. BINDSTATUS_RESERVED_6,
  494. BINDSTATUS_RESERVED_7,
  495. BINDSTATUS_RESERVED_8,
  496. BINDSTATUS_RESERVED_9,
  497. BINDSTATUS_LAST_PRIVATE = BINDSTATUS_RESERVED_9
  498. } BINDSTATUS;
  499. cpp_quote("")
  500. HRESULT OnStartBinding ([in] DWORD dwReserved,[in] IBinding *pib);
  501. HRESULT GetPriority ([out] LONG *pnPriority);
  502. HRESULT OnLowResource ([in] DWORD reserved);
  503. HRESULT OnProgress ([in] ULONG ulProgress,[in] ULONG ulProgressMax,[in] ULONG ulStatusCode,[in, unique] LPCWSTR szStatusText);
  504. HRESULT OnStopBinding ([in] HRESULT hresult,[in, unique] LPCWSTR szError);
  505. [local] HRESULT GetBindInfo ([out] DWORD *grfBINDF,[in, out, unique] BINDINFO *pbindinfo);
  506. [call_as (GetBindInfo)] HRESULT RemoteGetBindInfo ([out] DWORD *grfBINDF,[in, out, unique] RemBINDINFO *pbindinfo,[in, out, unique] RemSTGMEDIUM *pstgmed);
  507. [local] HRESULT OnDataAvailable ([in] DWORD grfBSCF,[in] DWORD dwSize,[in] FORMATETC *pformatetc,[in] STGMEDIUM *pstgmed);
  508. [call_as (OnDataAvailable)] HRESULT RemoteOnDataAvailable ([in] DWORD grfBSCF,[in] DWORD dwSize,[in] RemFORMATETC *pformatetc,[in] RemSTGMEDIUM *pstgmed);
  509. HRESULT OnObjectAvailable ([in] REFIID riid,[in, iid_is (riid)] IUnknown *punk);
  510. }
  511. cpp_quote("#endif")
  512. cpp_quote("#endif")
  513. cpp_quote("")
  514. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  515. cpp_quote("#ifndef _LPBINDSTATUSCALLBACKEX_DEFINED")
  516. cpp_quote("#define _LPBINDSTATUSCALLBACKEX_DEFINED")
  517. cpp_quote("")
  518. [object, uuid (aaa74ef9-8ee7-4659-88d9-f8c504da73cc), pointer_default (unique)]
  519. interface IBindStatusCallbackEx: IBindStatusCallback {
  520. typedef [unique] IBindStatusCallbackEx *LPBINDSTATUSCALLBACKEX;
  521. cpp_quote("")
  522. typedef enum {
  523. BINDF2_DISABLEBASICOVERHTTP = 0x1,
  524. BINDF2_DISABLEAUTOCOOKIEHANDLING = 0x2,
  525. BINDF2_READ_DATA_GREATER_THAN_4GB = 0x4,
  526. BINDF2_DISABLE_HTTP_REDIRECT_XSECURITYID = 0x8,
  527. BINDF2_SETDOWNLOADMODE = 0x20,
  528. BINDF2_DISABLE_HTTP_REDIRECT_CACHING = 0x40,
  529. BINDF2_KEEP_CALLBACK_MODULE_LOADED = 0x80,
  530. BINDF2_ALLOW_PROXY_CRED_PROMPT = 0x100,
  531. BINDF2_RESERVED_F = 0x20000,
  532. BINDF2_RESERVED_E = 0x40000,
  533. BINDF2_RESERVED_D = 0x80000,
  534. BINDF2_RESERVED_C = 0x100000,
  535. BINDF2_RESERVED_B = 0x200000,
  536. BINDF2_RESERVED_A = 0x400000,
  537. BINDF2_RESERVED_9 = 0x800000,
  538. BINDF2_RESERVED_8 = 0x1000000,
  539. BINDF2_RESERVED_7 = 0x2000000,
  540. BINDF2_RESERVED_6 = 0x4000000,
  541. BINDF2_RESERVED_5 = 0x8000000,
  542. BINDF2_RESERVED_4 = 0x10000000,
  543. BINDF2_RESERVED_3 = 0x20000000,
  544. BINDF2_RESERVED_2 = 0x40000000,
  545. BINDF2_RESERVED_1 = 0x80000000,
  546. } BINDF2;
  547. cpp_quote("")
  548. [local] HRESULT GetBindInfoEx ([out] DWORD *grfBINDF,[in, out, unique] BINDINFO *pbindinfo,[out] DWORD *grfBINDF2,[out] DWORD *pdwReserved);
  549. [call_as (GetBindInfoEx)] HRESULT RemoteGetBindInfoEx ([out] DWORD *grfBINDF,[in, out, unique] RemBINDINFO *pbindinfo,[in, out, unique] RemSTGMEDIUM *pstgmed,[out] DWORD *grfBINDF2,[out] DWORD *pdwReserved);
  550. }
  551. cpp_quote("#endif")
  552. cpp_quote("")
  553. cpp_quote("#ifndef _LPAUTHENTICATION_DEFINED")
  554. cpp_quote("#define _LPAUTHENTICATION_DEFINED")
  555. cpp_quote("")
  556. [object, uuid (79eac9d0-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  557. interface IAuthenticate : IUnknown {
  558. typedef [unique] IAuthenticate *LPAUTHENTICATION;
  559. cpp_quote("")
  560. HRESULT Authenticate ([out] HWND *phwnd,[out] LPWSTR *pszUsername,[out] LPWSTR *pszPassword);
  561. }
  562. cpp_quote("#endif")
  563. cpp_quote("")
  564. cpp_quote("#ifndef _LPAUTHENTICATIONEX_DEFINED")
  565. cpp_quote("#define _LPAUTHENTICATIONEX_DEFINED")
  566. cpp_quote("")
  567. [object, uuid (2ad1edaf-d83d-48b5-9adf-03dbe19f53bd), pointer_default (unique)]
  568. interface IAuthenticateEx : IAuthenticate {
  569. typedef [unique] IAuthenticateEx *LPAUTHENTICATIONEX;
  570. cpp_quote("")
  571. typedef enum {
  572. AUTHENTICATEF_PROXY = 0x1,
  573. AUTHENTICATEF_BASIC = 0x2,
  574. AUTHENTICATEF_HTTP = 0x4,
  575. } AUTHENTICATEF;
  576. cpp_quote("")
  577. typedef struct _tagAUTHENTICATEINFO {
  578. DWORD dwFlags;
  579. DWORD dwReserved;
  580. } AUTHENTICATEINFO;
  581. cpp_quote("")
  582. HRESULT AuthenticateEx ([out] HWND *phwnd,[out] LPWSTR *pszUsername,[out] LPWSTR *pszPassword,[in] AUTHENTICATEINFO *pauthinfo);
  583. }
  584. cpp_quote("#endif")
  585. cpp_quote("")
  586. cpp_quote("#ifndef _LPHTTPNEGOTIATE_DEFINED")
  587. cpp_quote("#define _LPHTTPNEGOTIATE_DEFINED")
  588. cpp_quote("")
  589. [object, uuid (79eac9d2-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  590. interface IHttpNegotiate : IUnknown {
  591. typedef [unique] IHttpNegotiate *LPHTTPNEGOTIATE;
  592. cpp_quote("")
  593. HRESULT BeginningTransaction ([in] LPCWSTR szURL,[in, unique] LPCWSTR szHeaders,[in] DWORD dwReserved,[out] LPWSTR *pszAdditionalHeaders);
  594. HRESULT OnResponse ([in] DWORD dwResponseCode,[in, unique] LPCWSTR szResponseHeaders,[in, unique] LPCWSTR szRequestHeaders,[out] LPWSTR *pszAdditionalRequestHeaders);
  595. }
  596. cpp_quote("#endif")
  597. cpp_quote("")
  598. cpp_quote("#ifndef _LPHTTPNEGOTIATE2_DEFINED")
  599. cpp_quote("#define _LPHTTPNEGOTIATE2_DEFINED")
  600. cpp_quote("")
  601. [object, uuid (4f9f9fcb-E0F4-48eb-B7AB-FA2EA9365CB4), pointer_default (unique)]
  602. interface IHttpNegotiate2 : IHttpNegotiate {
  603. typedef [unique] IHttpNegotiate2 *LPHTTPNEGOTIATE2;
  604. cpp_quote("")
  605. HRESULT GetRootSecurityId ([out, size_is (*pcbSecurityId)]BYTE *pbSecurityId,[in, out]DWORD *pcbSecurityId,[in] DWORD_PTR dwReserved);
  606. }
  607. cpp_quote("#endif")
  608. cpp_quote("")
  609. cpp_quote("#ifndef _LPHTTPNEGOTIATE3_DEFINED")
  610. cpp_quote("#define _LPHTTPNEGOTIATE3_DEFINED")
  611. cpp_quote("")
  612. [object, uuid (57b6c80a-34c2-4602-bc26-66a02fc57153), pointer_default (unique)]
  613. interface IHttpNegotiate3 : IHttpNegotiate2 {
  614. typedef [unique] IHttpNegotiate3 *LPHTTPNEGOTIATE3;
  615. cpp_quote("")
  616. HRESULT GetSerializedClientCertContext ([out, size_is (,*pcbCert)]BYTE **ppbCert,[out] DWORD *pcbCert);
  617. }
  618. cpp_quote("#endif")
  619. cpp_quote("")
  620. cpp_quote("#ifndef _LPWININETFILESTREAM_DEFINED")
  621. cpp_quote("#define _LPWININETFILESTREAM_DEFINED")
  622. cpp_quote("")
  623. [object, uuid (F134C4B7-B1F8-4e75-B886-74b90943becb), pointer_default (unique)]
  624. interface IWinInetFileStream : IUnknown {
  625. typedef [unique] IWinInetFileStream *LPWININETFILESTREAM;
  626. cpp_quote("")
  627. HRESULT SetHandleForUnlock ([in] DWORD_PTR hWinInetLockHandle,[in] DWORD_PTR dwReserved);
  628. HRESULT SetDeleteFile ([in] DWORD_PTR dwReserved);
  629. }
  630. cpp_quote("#endif")
  631. cpp_quote("")
  632. cpp_quote("#ifndef _LPWINDOWFORBINDINGUI_DEFINED")
  633. cpp_quote("#define _LPWINDOWFORBINDINGUI_DEFINED")
  634. cpp_quote("")
  635. [local, object, uuid (79eac9d5-bafa-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  636. interface IWindowForBindingUI : IUnknown {
  637. typedef [unique] IWindowForBindingUI *LPWINDOWFORBINDINGUI;
  638. cpp_quote("")
  639. HRESULT GetWindow ([in] REFGUID rguidReason,[out] HWND *phwnd);
  640. }
  641. cpp_quote("#endif")
  642. cpp_quote("")
  643. cpp_quote("#ifndef _LPCODEINSTALL_DEFINED")
  644. cpp_quote("#define _LPCODEINSTALL_DEFINED")
  645. cpp_quote("")
  646. [local, object, uuid (79eac9d1-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  647. interface ICodeInstall : IWindowForBindingUI {
  648. typedef [unique] ICodeInstall *LPCODEINSTALL;
  649. cpp_quote("")
  650. typedef enum {
  651. CIP_DISK_FULL,
  652. CIP_ACCESS_DENIED,
  653. CIP_NEWER_VERSION_EXISTS,
  654. CIP_OLDER_VERSION_EXISTS,
  655. CIP_NAME_CONFLICT,
  656. CIP_TRUST_VERIFICATION_COMPONENT_MISSING,
  657. CIP_EXE_SELF_REGISTERATION_TIMEOUT,
  658. CIP_UNSAFE_TO_ABORT,
  659. CIP_NEED_REBOOT,
  660. CIP_NEED_REBOOT_UI_PERMISSION
  661. } CIP_STATUS;
  662. cpp_quote("")
  663. HRESULT OnCodeInstallProblem ([in] ULONG ulStatusCode,[in, unique] LPCWSTR szDestination,[in, unique] LPCWSTR szSource,[in] DWORD dwReserved);
  664. }
  665. cpp_quote("#endif")
  666. cpp_quote("#endif")
  667. cpp_quote("")
  668. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  669. cpp_quote("#ifndef _LPUri_DEFINED")
  670. cpp_quote("#define _LPUri_DEFINED")
  671. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
  672. [object, uuid (A39EE748-6a27-4817-A6F2-13914bef5890), pointer_default (unique)]
  673. interface IUri : IUnknown {
  674. typedef enum {
  675. Uri_PROPERTY_ABSOLUTE_URI = 0,
  676. Uri_PROPERTY_STRING_START = Uri_PROPERTY_ABSOLUTE_URI,
  677. Uri_PROPERTY_AUTHORITY = 1,
  678. Uri_PROPERTY_DISPLAY_URI = 2,
  679. Uri_PROPERTY_DOMAIN = 3,
  680. Uri_PROPERTY_EXTENSION = 4,
  681. Uri_PROPERTY_FRAGMENT = 5,
  682. Uri_PROPERTY_HOST = 6,
  683. Uri_PROPERTY_PASSWORD = 7,
  684. Uri_PROPERTY_PATH = 8,
  685. Uri_PROPERTY_PATH_AND_QUERY = 9,
  686. Uri_PROPERTY_QUERY = 10,
  687. Uri_PROPERTY_RAW_URI = 11,
  688. Uri_PROPERTY_SCHEME_NAME = 12,
  689. Uri_PROPERTY_USER_INFO = 13,
  690. Uri_PROPERTY_USER_NAME = 14,
  691. Uri_PROPERTY_STRING_LAST = Uri_PROPERTY_USER_NAME,
  692. Uri_PROPERTY_HOST_TYPE = 15,
  693. Uri_PROPERTY_DWORD_START = Uri_PROPERTY_HOST_TYPE,
  694. Uri_PROPERTY_PORT = 16,
  695. Uri_PROPERTY_SCHEME = 17,
  696. Uri_PROPERTY_ZONE = 18,
  697. Uri_PROPERTY_DWORD_LAST = Uri_PROPERTY_ZONE,
  698. } Uri_PROPERTY;
  699. cpp_quote("")
  700. typedef enum {
  701. Uri_HOST_UNKNOWN,
  702. Uri_HOST_DNS,
  703. Uri_HOST_IPV4,
  704. Uri_HOST_IPV6,
  705. Uri_HOST_IDN,
  706. } Uri_HOST_TYPE;
  707. cpp_quote("")
  708. HRESULT GetPropertyBSTR ([in, range (Uri_PROPERTY_STRING_START, Uri_PROPERTY_STRING_LAST)] Uri_PROPERTY uriProp,[out] BSTR *pbstrProperty,[in] DWORD dwFlags);
  709. HRESULT GetPropertyLength ([in, range (Uri_PROPERTY_STRING_START, Uri_PROPERTY_STRING_LAST)] Uri_PROPERTY uriProp,[out] DWORD *pcchProperty,[in] DWORD dwFlags);
  710. HRESULT GetPropertyDWORD ([in, range (Uri_PROPERTY_DWORD_START, Uri_PROPERTY_DWORD_LAST)] Uri_PROPERTY uriProp,[out] DWORD *pdwProperty,[in] DWORD dwFlags);
  711. HRESULT HasProperty ([in, range (Uri_PROPERTY_STRING_START, Uri_PROPERTY_DWORD_LAST)] Uri_PROPERTY uriProp,[out] BOOL *pfHasProperty);
  712. HRESULT GetAbsoluteUri ([out] BSTR *pbstrAbsoluteUri);
  713. HRESULT GetAuthority ([out] BSTR *pbstrAuthority);
  714. HRESULT GetDisplayUri ([out] BSTR *pbstrDisplayString);
  715. HRESULT GetDomain ([out] BSTR *pbstrDomain);
  716. HRESULT GetExtension ([out] BSTR *pbstrExtension);
  717. HRESULT GetFragment ([out] BSTR *pbstrFragment);
  718. HRESULT GetHost ([out] BSTR *pbstrHost);
  719. HRESULT GetPassword ([out] BSTR *pbstrPassword);
  720. HRESULT GetPath ([out] BSTR *pbstrPath);
  721. HRESULT GetPathAndQuery ([out] BSTR *pbstrPathAndQuery);
  722. HRESULT GetQuery ([out] BSTR *pbstrQuery);
  723. HRESULT GetRawUri ([out] BSTR *pbstrRawUri);
  724. HRESULT GetSchemeName ([out] BSTR *pbstrSchemeName);
  725. HRESULT GetUserInfo ([out] BSTR *pbstrUserInfo);
  726. HRESULT GetUserName ([out] BSTR *pbstrUserName);
  727. HRESULT GetHostType ([out] DWORD *pdwHostType);
  728. HRESULT GetPort ([out] DWORD *pdwPort);
  729. HRESULT GetScheme ([out] DWORD *pdwScheme);
  730. HRESULT GetZone ([out] DWORD *pdwZone);
  731. HRESULT GetProperties ([out] LPDWORD pdwFlags);
  732. HRESULT IsEqual ([in] IUri *pUri,[out] BOOL *pfEqual);
  733. }
  734. cpp_quote("")
  735. cpp_quote("STDAPI CreateUri(LPCWSTR pwzURI, DWORD dwFlags, DWORD_PTR dwReserved, IUri **ppURI);")
  736. cpp_quote("STDAPI CreateUriWithFragment(")
  737. cpp_quote("LPCWSTR pwzURI, LPCWSTR pwzFragment, DWORD dwFlags, DWORD_PTR dwReserved, IUri **ppURI);")
  738. cpp_quote("#endif")
  739. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  740. cpp_quote("STDAPI CreateUriFromMultiByteString(LPCSTR pszANSIInputUri, DWORD dwEncodingFlags, DWORD dwCodePage, DWORD dwCreateFlags, DWORD_PTR dwReserved, IUri **ppUri);")
  741. cpp_quote("#endif")
  742. cpp_quote("")
  743. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
  744. cpp_quote("#define Uri_HAS_ABSOLUTE_URI (1 << Uri_PROPERTY_ABSOLUTE_URI)")
  745. cpp_quote("#define Uri_HAS_AUTHORITY (1 << Uri_PROPERTY_AUTHORITY)")
  746. cpp_quote("#define Uri_HAS_DISPLAY_URI (1 << Uri_PROPERTY_DISPLAY_URI)")
  747. cpp_quote("#define Uri_HAS_DOMAIN (1 << Uri_PROPERTY_DOMAIN)")
  748. cpp_quote("#define Uri_HAS_EXTENSION (1 << Uri_PROPERTY_EXTENSION)")
  749. cpp_quote("#define Uri_HAS_FRAGMENT (1 << Uri_PROPERTY_FRAGMENT)")
  750. cpp_quote("#define Uri_HAS_HOST (1 << Uri_PROPERTY_HOST)")
  751. cpp_quote("#define Uri_HAS_PASSWORD (1 << Uri_PROPERTY_PASSWORD)")
  752. cpp_quote("#define Uri_HAS_PATH (1 << Uri_PROPERTY_PATH)")
  753. cpp_quote("#define Uri_HAS_QUERY (1 << Uri_PROPERTY_QUERY)")
  754. cpp_quote("#define Uri_HAS_RAW_URI (1 << Uri_PROPERTY_RAW_URI)")
  755. cpp_quote("#define Uri_HAS_SCHEME_NAME (1 << Uri_PROPERTY_SCHEME_NAME)")
  756. cpp_quote("#define Uri_HAS_USER_NAME (1 << Uri_PROPERTY_USER_NAME)")
  757. cpp_quote("#define Uri_HAS_PATH_AND_QUERY (1 << Uri_PROPERTY_PATH_AND_QUERY)")
  758. cpp_quote("#define Uri_HAS_USER_INFO (1 << Uri_PROPERTY_USER_INFO)")
  759. cpp_quote("#define Uri_HAS_HOST_TYPE (1 << Uri_PROPERTY_HOST_TYPE)")
  760. cpp_quote("#define Uri_HAS_PORT (1 << Uri_PROPERTY_PORT)")
  761. cpp_quote("#define Uri_HAS_SCHEME (1 << Uri_PROPERTY_SCHEME)")
  762. cpp_quote("#define Uri_HAS_ZONE (1 << Uri_PROPERTY_ZONE)")
  763. cpp_quote("")
  764. cpp_quote("#define Uri_CREATE_ALLOW_RELATIVE 0x1")
  765. cpp_quote("#define Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME 0x2")
  766. cpp_quote("#define Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME 0x4")
  767. cpp_quote("#define Uri_CREATE_NOFRAG 0x8")
  768. cpp_quote("#define Uri_CREATE_NO_CANONICALIZE 0x10")
  769. cpp_quote("#define Uri_CREATE_CANONICALIZE 0x100")
  770. cpp_quote("#define Uri_CREATE_FILE_USE_DOS_PATH 0x20")
  771. cpp_quote("#define Uri_CREATE_DECODE_EXTRA_INFO 0x40")
  772. cpp_quote("#define Uri_CREATE_NO_DECODE_EXTRA_INFO 0x80")
  773. cpp_quote("#define Uri_CREATE_CRACK_UNKNOWN_SCHEMES 0x200")
  774. cpp_quote("#define Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES 0x400")
  775. cpp_quote("#define Uri_CREATE_PRE_PROCESS_HTML_URI 0x800")
  776. cpp_quote("#define Uri_CREATE_NO_PRE_PROCESS_HTML_URI 0x1000")
  777. cpp_quote("#define Uri_CREATE_IE_SETTINGS 0x2000")
  778. cpp_quote("#define Uri_CREATE_NO_IE_SETTINGS 0x4000")
  779. cpp_quote("#define Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS 0x8000")
  780. cpp_quote("#define Uri_CREATE_NORMALIZE_INTL_CHARACTERS 0x10000")
  781. cpp_quote("#define Uri_CREATE_CANONICALIZE_ABSOLUTE 0x20000")
  782. cpp_quote("")
  783. cpp_quote("#define Uri_DISPLAY_NO_FRAGMENT 0x1")
  784. cpp_quote("#define Uri_PUNYCODE_IDN_HOST 0x2")
  785. cpp_quote("#define Uri_DISPLAY_IDN_HOST 0x4")
  786. cpp_quote("#define Uri_DISPLAY_NO_PUNYCODE 0x8")
  787. cpp_quote("")
  788. cpp_quote("#define Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 0x1")
  789. cpp_quote("#define Uri_ENCODING_USER_INFO_AND_PATH_IS_CP 0x2")
  790. cpp_quote("#define Uri_ENCODING_HOST_IS_IDN 0x4")
  791. cpp_quote("#define Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 0x8")
  792. cpp_quote("#define Uri_ENCODING_HOST_IS_PERCENT_ENCODED_CP 0x10")
  793. cpp_quote("#define Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8 0x20")
  794. cpp_quote("#define Uri_ENCODING_QUERY_AND_FRAGMENT_IS_CP 0x40")
  795. cpp_quote("")
  796. cpp_quote("#define Uri_ENCODING_RFC (Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 | Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 | Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8)")
  797. cpp_quote("")
  798. cpp_quote("#define UriBuilder_USE_ORIGINAL_FLAGS 0x1")
  799. cpp_quote("#endif")
  800. cpp_quote("#endif")
  801. cpp_quote("")
  802. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  803. [object, local, uuid (a158a630-ed6f-45fb-b987-f68676f57752), pointer_default (unique)]
  804. interface IUriContainer : IUnknown {
  805. HRESULT GetIUri ([out] IUri **ppIUri);
  806. }
  807. cpp_quote("")
  808. [local, object, uuid (4221b2e1-8955-46c0-BD5B-DE9897565DE7), pointer_default (unique)]
  809. interface IUriBuilder: IUnknown {
  810. HRESULT CreateUriSimple ([in] DWORD dwAllowEncodingPropertyMask,[in] DWORD_PTR dwReserved,[out] IUri **ppIUri);
  811. HRESULT CreateUri ([in] DWORD dwCreateFlags,[in] DWORD dwAllowEncodingPropertyMask,[in] DWORD_PTR dwReserved,[out] IUri **ppIUri);
  812. HRESULT CreateUriWithFlags ([in] DWORD dwCreateFlags,[in] DWORD dwUriBuilderFlags,[in] DWORD dwAllowEncodingPropertyMask,[in] DWORD_PTR dwReserved,[out] IUri **ppIUri);
  813. HRESULT GetIUri ([out]IUri **ppIUri);
  814. HRESULT SetIUri ([in, unique]IUri *pIUri);
  815. HRESULT GetFragment ([out] DWORD *pcchFragment,[out] LPCWSTR *ppwzFragment);
  816. HRESULT GetHost ([out] DWORD *pcchHost,[out] LPCWSTR *ppwzHost);
  817. HRESULT GetPassword ([out] DWORD *pcchPassword,[out] LPCWSTR *ppwzPassword);
  818. HRESULT GetPath ([out] DWORD *pcchPath,[out] LPCWSTR *ppwzPath);
  819. HRESULT GetPort ([out] BOOL *pfHasPort,[out]DWORD *pdwPort);
  820. HRESULT GetQuery ([out] DWORD *pcchQuery,[out] LPCWSTR *ppwzQuery);
  821. HRESULT GetSchemeName ([out] DWORD *pcchSchemeName,[out] LPCWSTR *ppwzSchemeName);
  822. HRESULT GetUserName ([out] DWORD *pcchUserName,[out] LPCWSTR *ppwzUserName);
  823. HRESULT SetFragment ([in]LPCWSTR pwzNewValue);
  824. HRESULT SetHost ([in]LPCWSTR pwzNewValue);
  825. HRESULT SetPassword ([in]LPCWSTR pwzNewValue);
  826. HRESULT SetPath ([in]LPCWSTR pwzNewValue);
  827. HRESULT SetPort ([in]BOOL fHasPort,[in]DWORD dwNewValue);
  828. HRESULT SetQuery ([in]LPCWSTR pwzNewValue);
  829. HRESULT SetSchemeName ([in]LPCWSTR pwzNewValue);
  830. HRESULT SetUserName ([in]LPCWSTR pwzNewValue);
  831. HRESULT RemoveProperties ([in]DWORD dwPropertyMask);
  832. HRESULT HasBeenModified ([out]BOOL *pfModified);
  833. };
  834. cpp_quote("")
  835. [local, object, uuid (E982CE48-0b96-440c-BC37-0c869b27a29e), pointer_default (unique)]
  836. interface IUriBuilderFactory: IUnknown {
  837. HRESULT CreateIUriBuilder ([in] DWORD dwFlags,[in] DWORD_PTR dwReserved,[out] IUriBuilder **ppIUriBuilder);
  838. HRESULT CreateInitializedIUriBuilder ([in] DWORD dwFlags,[in] DWORD_PTR dwReserved,[out] IUriBuilder **ppIUriBuilder);
  839. };
  840. cpp_quote("")
  841. cpp_quote("STDAPI CreateIUriBuilder(IUri *pIUri, DWORD dwFlags, DWORD_PTR dwReserved, IUriBuilder **ppIUriBuilder);")
  842. cpp_quote("#endif")
  843. cpp_quote("#endif")
  844. cpp_quote("")
  845. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  846. cpp_quote("#ifndef _LPWININETINFO_DEFINED")
  847. cpp_quote("#define _LPWININETINFO_DEFINED")
  848. cpp_quote("")
  849. [object, uuid (79eac9d6-bafa-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  850. interface IWinInetInfo : IUnknown {
  851. typedef [unique] IWinInetInfo *LPWININETINFO;
  852. [local] HRESULT QueryOption ([in] DWORD dwOption,[in, out, size_is (*pcbBuf)] LPVOID pBuffer,[in, out] DWORD *pcbBuf);
  853. [call_as (QueryOption)] HRESULT RemoteQueryOption ([in] DWORD dwOption,[in, out, size_is (*pcbBuf)] BYTE *pBuffer,[in, out] DWORD *pcbBuf);
  854. }
  855. cpp_quote("#endif")
  856. cpp_quote("")
  857. cpp_quote("#define WININETINFO_OPTION_LOCK_HANDLE 65534")
  858. cpp_quote("")
  859. cpp_quote("#ifndef _LPHTTPSECURITY_DEFINED")
  860. cpp_quote("#define _LPHTTPSECURITY_DEFINED")
  861. cpp_quote("")
  862. [local, object, uuid (79eac9d7-bafa-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  863. interface IHttpSecurity : IWindowForBindingUI {
  864. typedef [unique] IHttpSecurity *LPHTTPSECURITY;
  865. cpp_quote("")
  866. HRESULT OnSecurityProblem ([in] DWORD dwProblem);
  867. }
  868. cpp_quote("#endif")
  869. cpp_quote("")
  870. cpp_quote("#ifndef _LPWININETHTTPINFO_DEFINED")
  871. cpp_quote("#define _LPWININETHTTPINFO_DEFINED")
  872. cpp_quote("")
  873. [object, uuid (79eac9d8-bafa-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  874. interface IWinInetHttpInfo : IWinInetInfo {
  875. typedef [unique] IWinInetHttpInfo *LPWININETHTTPINFO;
  876. cpp_quote("")
  877. [local] HRESULT QueryInfo ([in] DWORD dwOption,[in, out, size_is (*pcbBuf)] LPVOID pBuffer,[in, out] DWORD *pcbBuf,[in, out] DWORD *pdwFlags,[in, out] DWORD *pdwReserved);
  878. [call_as (QueryInfo)] HRESULT RemoteQueryInfo ([in] DWORD dwOption,[in, out, size_is (*pcbBuf)] BYTE *pBuffer,[in, out] DWORD *pcbBuf,[in, out] DWORD *pdwFlags,[in, out] DWORD *pdwReserved);
  879. }
  880. cpp_quote("#endif")
  881. cpp_quote("")
  882. cpp_quote("#ifndef _LPWININETHTTPTIMEOUTS_DEFINED")
  883. cpp_quote("#define _LPWININETHTTPTIMEOUTS_DEFINED")
  884. [local, object, uuid (F286FA56-C1FD-4270-8e67-B3EB790A81E8), pointer_default (unique)]
  885. interface IWinInetHttpTimeouts : IUnknown {
  886. HRESULT GetRequestTimeouts ([out] DWORD *pdwConnectTimeout,[out] DWORD *pdwSendTimeout,[out] DWORD *pdwReceiveTimeout);
  887. }
  888. cpp_quote("#endif")
  889. cpp_quote("")
  890. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  891. cpp_quote("#ifndef _LPWININETCACHEHINTS_DEFINED")
  892. cpp_quote("#define _LPWININETCACHEHINTS_DEFINED")
  893. cpp_quote("")
  894. [local, object, uuid (DD1EC3B3-8391-4fdb-A9E6-347c3caaa7dd), pointer_default (unique)]
  895. interface IWinInetCacheHints : IUnknown {
  896. typedef [unique] IWinInetCacheHints *LPWININETCACHEHINTS;
  897. cpp_quote("")
  898. HRESULT SetCacheExtension ([in] LPCWSTR pwzExt,[in, out, size_is (*pcbCacheFile)] LPVOID pszCacheFile,[in, out] DWORD *pcbCacheFile,[in, out] DWORD *pdwWinInetError,[in, out] DWORD *pdwReserved);
  899. }
  900. cpp_quote("#endif")
  901. cpp_quote("#endif")
  902. cpp_quote("")
  903. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  904. cpp_quote("#ifndef _LPWININETCACHEHINTS2_DEFINED")
  905. cpp_quote("#define _LPWININETCACHEHINTS2_DEFINED")
  906. cpp_quote("")
  907. [local, object, uuid (7857aeac-D31F-49bf-884e-DD46DF36780A), pointer_default (unique)]
  908. interface IWinInetCacheHints2 : IWinInetCacheHints {
  909. typedef [unique] IWinInetCacheHints2 *LPWININETCACHEHINTS2;
  910. cpp_quote("")
  911. HRESULT SetCacheExtension2 ([in] LPCWSTR pwzExt,[out, size_is (sizeof (WCHAR) *(*pcchCacheFile))]WCHAR *pwzCacheFile,[in, out] DWORD *pcchCacheFile,[out] DWORD *pdwWinInetError,[out] DWORD *pdwReserved);
  912. }
  913. cpp_quote("#endif")
  914. cpp_quote("#endif")
  915. cpp_quote("")
  916. cpp_quote("#define SID_IBindHost IID_IBindHost")
  917. cpp_quote("#define SID_SBindHost IID_IBindHost")
  918. cpp_quote("")
  919. cpp_quote("#ifndef _LPBINDHOST_DEFINED")
  920. cpp_quote("#define _LPBINDHOST_DEFINED")
  921. cpp_quote("")
  922. cpp_quote("EXTERN_C const GUID SID_BindHost;")
  923. cpp_quote("")
  924. [object, uuid (fc4801a1-2ba9-11cf-a229-00aa003d7352), pointer_default (unique)]
  925. interface IBindHost : IUnknown {
  926. typedef [unique] IBindHost *LPBINDHOST;
  927. cpp_quote("")
  928. HRESULT CreateMoniker ([in] LPOLESTR szName,[in] IBindCtx *pBC,[out] IMoniker **ppmk,[in] DWORD dwReserved);
  929. [local] HRESULT MonikerBindToStorage ([in] IMoniker *pMk,[in] IBindCtx *pBC,[in] IBindStatusCallback *pBSC,[in] REFIID riid,[out] void **ppvObj);
  930. [call_as (MonikerBindToStorage)] HRESULT RemoteMonikerBindToStorage ([in, unique] IMoniker *pMk,[in, unique] IBindCtx *pBC,[in, unique] IBindStatusCallback *pBSC,[in] REFIID riid,[out, iid_is (riid)] IUnknown **ppvObj);
  931. [local] HRESULT MonikerBindToObject ([in] IMoniker *pMk,[in] IBindCtx *pBC,[in] IBindStatusCallback *pBSC,[in] REFIID riid,[out] void **ppvObj);
  932. [call_as (MonikerBindToObject)] HRESULT RemoteMonikerBindToObject ([in, unique] IMoniker *pMk,[in, unique] IBindCtx *pBC,[in, unique] IBindStatusCallback *pBSC,[in] REFIID riid,[out, iid_is (riid)] IUnknown **ppvObj);
  933. }
  934. cpp_quote("#endif")
  935. cpp_quote("")
  936. cpp_quote("#define URLOSTRM_USECACHEDCOPY_ONLY 0x1")
  937. cpp_quote("#define URLOSTRM_USECACHEDCOPY 0x2")
  938. cpp_quote("#define URLOSTRM_GETNEWESTVERSION 0x3")
  939. cpp_quote("")
  940. cpp_quote("struct IBindStatusCallback;")
  941. cpp_quote("STDAPI HlinkSimpleNavigateToString(LPCWSTR szTarget, LPCWSTR szLocation, LPCWSTR szTargetFrameName, IUnknown *pUnk, IBindCtx *pbc, IBindStatusCallback *, DWORD grfHLNF, DWORD dwReserved);")
  942. cpp_quote("STDAPI HlinkSimpleNavigateToMoniker(IMoniker *pmkTarget, LPCWSTR szLocation, LPCWSTR szTargetFrameName, IUnknown *pUnk, IBindCtx *pbc, IBindStatusCallback *, DWORD grfHLNF, DWORD dwReserved);")
  943. cpp_quote("STDAPI URLOpenStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
  944. cpp_quote("STDAPI URLOpenStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
  945. cpp_quote("STDAPI URLOpenPullStreamA(LPUNKNOWN,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
  946. cpp_quote("STDAPI URLOpenPullStreamW(LPUNKNOWN,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
  947. cpp_quote("STDAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);")
  948. cpp_quote("STDAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);")
  949. cpp_quote("STDAPI URLDownloadToCacheFileA(LPUNKNOWN, LPCSTR, LPSTR, DWORD, DWORD, LPBINDSTATUSCALLBACK);")
  950. cpp_quote("STDAPI URLDownloadToCacheFileW(LPUNKNOWN, LPCWSTR, LPWSTR, DWORD, DWORD, LPBINDSTATUSCALLBACK);")
  951. cpp_quote("STDAPI URLOpenBlockingStreamA(LPUNKNOWN,LPCSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
  952. cpp_quote("STDAPI URLOpenBlockingStreamW(LPUNKNOWN,LPCWSTR,LPSTREAM*,DWORD,LPBINDSTATUSCALLBACK);")
  953. cpp_quote("")
  954. cpp_quote("#define URLOpenStream __MINGW_NAME_AW(URLOpenStream)")
  955. cpp_quote("#define URLOpenPullStream __MINGW_NAME_AW(URLOpenPullStream)")
  956. cpp_quote("#define URLDownloadToFile __MINGW_NAME_AW(URLDownloadToFile)")
  957. cpp_quote("#define URLDownloadToCacheFile __MINGW_NAME_AW(URLDownloadToCacheFile)")
  958. cpp_quote("#define URLOpenBlockingStream __MINGW_NAME_AW(URLOpenBlockingStream)")
  959. cpp_quote("")
  960. cpp_quote("STDAPI HlinkGoBack(IUnknown *pUnk);")
  961. cpp_quote("STDAPI HlinkGoForward(IUnknown *pUnk);")
  962. cpp_quote("STDAPI HlinkNavigateString(IUnknown *pUnk, LPCWSTR szTarget);")
  963. cpp_quote("STDAPI HlinkNavigateMoniker(IUnknown *pUnk, IMoniker *pmkTarget);")
  964. cpp_quote("")
  965. cpp_quote("#ifndef _URLMON_NO_ASYNC_PLUGABLE_PROTOCOLS_")
  966. interface IInternet;
  967. interface IInternetBindInfo;
  968. interface IInternetBindInfoEx;
  969. interface IInternetProtocolRoot;
  970. interface IInternetProtocol;
  971. interface IInternetProtocolEx;
  972. interface IInternetProtocolSink;
  973. interface IInternetProtocolInfo;
  974. interface IInternetSession;
  975. interface IInternetProtocolSinkStackable;
  976. cpp_quote("")
  977. cpp_quote("#ifndef _LPIINTERNET")
  978. cpp_quote("#define _LPIINTERNET")
  979. cpp_quote("")
  980. [local, object, uuid (79eac9e0-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  981. interface IInternet : IUnknown {
  982. typedef [unique] IInternet *LPIINTERNET;
  983. }
  984. cpp_quote("#endif")
  985. cpp_quote("")
  986. cpp_quote("#ifndef _LPIINTERNETBINDINFO")
  987. cpp_quote("#define _LPIINTERNETBINDINFO")
  988. cpp_quote("")
  989. [local, object, uuid (79eac9e1-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  990. interface IInternetBindInfo : IUnknown {
  991. typedef [unique] IInternetBindInfo *LPIINTERNETBINDINFO;
  992. cpp_quote("")
  993. typedef enum tagBINDSTRING {
  994. BINDSTRING_HEADERS = 1,
  995. BINDSTRING_ACCEPT_MIMES,
  996. BINDSTRING_EXTRA_URL,
  997. BINDSTRING_LANGUAGE,
  998. BINDSTRING_USERNAME,
  999. BINDSTRING_PASSWORD,
  1000. BINDSTRING_UA_PIXELS,
  1001. BINDSTRING_UA_COLOR,
  1002. BINDSTRING_OS,
  1003. BINDSTRING_USER_AGENT,
  1004. BINDSTRING_ACCEPT_ENCODINGS,
  1005. BINDSTRING_POST_COOKIE,
  1006. BINDSTRING_POST_DATA_MIME,
  1007. BINDSTRING_URL,BINDSTRING_IID,
  1008. BINDSTRING_FLAG_BIND_TO_OBJECT,
  1009. BINDSTRING_PTR_BIND_CONTEXT,
  1010. BINDSTRING_XDR_ORIGIN,
  1011. BINDSTRING_DOWNLOADPATH,
  1012. BINDSTRING_ROOTDOC_URL,
  1013. BINDSTRING_INITIAL_FILENAME,
  1014. BINDSTRING_PROXY_USERNAME,
  1015. BINDSTRING_PROXY_PASSWORD
  1016. } BINDSTRING;
  1017. cpp_quote("")
  1018. HRESULT GetBindInfo ([out] DWORD *grfBINDF,[in, out, unique] BINDINFO *pbindinfo);
  1019. HRESULT GetBindString ([in] ULONG ulStringType,[in, out] LPOLESTR *ppwzStr,[in] ULONG cEl,[in, out] ULONG *pcElFetched);
  1020. }
  1021. cpp_quote("#endif")
  1022. cpp_quote("")
  1023. cpp_quote("#ifndef _LPIINTERNETBINDINFOEX")
  1024. cpp_quote("#define _LPIINTERNETBINDINFOEX")
  1025. cpp_quote("")
  1026. [local, object, uuid (a3e015b7-a82c-4dcd-a150-569aeeed36ab), pointer_default (unique)]
  1027. interface IInternetBindInfoEx : IInternetBindInfo {
  1028. typedef [unique] IInternetBindInfoEx *LPIINTERNETBINDINFOEX;
  1029. cpp_quote("")
  1030. HRESULT GetBindInfoEx ([out] DWORD *grfBINDF,[in, out, unique] BINDINFO *pbindinfo,[out] DWORD *grfBINDF2,[out] DWORD *pdwReserved);
  1031. }
  1032. cpp_quote("#endif")
  1033. cpp_quote("")
  1034. cpp_quote("#ifndef _LPIINTERNETPROTOCOLROOT_DEFINED")
  1035. cpp_quote("#define _LPIINTERNETPROTOCOLROOT_DEFINED")
  1036. cpp_quote("")
  1037. [local, object, uuid (79eac9e3-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  1038. interface IInternetProtocolRoot : IUnknown {
  1039. typedef [unique] IInternetProtocolRoot *LPIINTERNETPROTOCOLROOT;
  1040. cpp_quote("")
  1041. typedef enum _tagPI_FLAGS {
  1042. PI_PARSE_URL = 0x1,
  1043. PI_FILTER_MODE = 0x2,
  1044. PI_FORCE_ASYNC = 0x4,
  1045. PI_USE_WORKERTHREAD = 0x8,
  1046. PI_MIMEVERIFICATION = 0x10,
  1047. PI_CLSIDLOOKUP = 0x20,
  1048. PI_DATAPROGRESS = 0x40,
  1049. PI_SYNCHRONOUS = 0x80,
  1050. PI_APARTMENTTHREADED = 0x100,
  1051. PI_CLASSINSTALL = 0x200,
  1052. PI_PASSONBINDCTX = 0x2000,
  1053. PI_NOMIMEHANDLER = 0x8000,
  1054. PI_LOADAPPDIRECT = 0x4000,
  1055. PD_FORCE_SWITCH = 0x10000,
  1056. PI_PREFERDEFAULTHANDLER = 0x20000
  1057. } PI_FLAGS;
  1058. typedef struct _tagPROTOCOLDATA {
  1059. DWORD grfFlags;
  1060. DWORD dwState;
  1061. LPVOID pData;
  1062. ULONG cbData;
  1063. } PROTOCOLDATA;
  1064. cpp_quote("")
  1065. typedef struct _tagStartParam {
  1066. IID iid;
  1067. IBindCtx *pIBindCtx;
  1068. IUnknown *pItf;
  1069. } StartParam;
  1070. cpp_quote("")
  1071. HRESULT Start ([in] LPCWSTR szUrl,[in] IInternetProtocolSink *pOIProtSink,[in] IInternetBindInfo *pOIBindInfo,[in] DWORD grfPI,[in] HANDLE_PTR dwReserved);
  1072. HRESULT Continue ([in] PROTOCOLDATA *pProtocolData);
  1073. HRESULT Abort ([in] HRESULT hrReason,[in] DWORD dwOptions);
  1074. HRESULT Terminate ([in] DWORD dwOptions);
  1075. HRESULT Suspend ();
  1076. HRESULT Resume ();
  1077. }
  1078. cpp_quote("#endif")
  1079. cpp_quote("")
  1080. cpp_quote("#ifndef _LPIINTERNETPROTOCOL_DEFINED")
  1081. cpp_quote("#define _LPIINTERNETPROTOCOL_DEFINED")
  1082. cpp_quote("")
  1083. [local, object, uuid (79eac9e4-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  1084. interface IInternetProtocol : IInternetProtocolRoot {
  1085. typedef [unique] IInternetProtocol *LPIINTERNETPROTOCOL;
  1086. cpp_quote("")
  1087. HRESULT Read ([in, out, size_is (cb), length_is (*pcbRead)]void *pv,[in] ULONG cb,[out] ULONG *pcbRead);
  1088. HRESULT Seek ([in] LARGE_INTEGER dlibMove,[in] DWORD dwOrigin,[out] ULARGE_INTEGER *plibNewPosition);
  1089. HRESULT LockRequest ([in] DWORD dwOptions);
  1090. HRESULT UnlockRequest ();
  1091. }
  1092. cpp_quote("#endif")
  1093. cpp_quote("")
  1094. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1095. cpp_quote("#ifndef _LPIINTERNETPROTOCOLEX_DEFINED")
  1096. cpp_quote("#define _LPIINTERNETPROTOCOLEX_DEFINED")
  1097. cpp_quote("")
  1098. [local, object, uuid (C7A98E66-1010-492c-A1C8-C809E1F75905), pointer_default (unique)]
  1099. interface IInternetProtocolEx: IInternetProtocol {
  1100. HRESULT StartEx ([in] IUri *pUri,[in] IInternetProtocolSink *pOIProtSink,[in] IInternetBindInfo *pOIBindInfo,[in] DWORD grfPI,[in] HANDLE_PTR dwReserved);
  1101. }
  1102. cpp_quote("#endif")
  1103. cpp_quote("#endif")
  1104. cpp_quote("")
  1105. cpp_quote("#ifndef _LPIINTERNETPROTOCOLSINK_DEFINED")
  1106. cpp_quote("#define _LPIINTERNETPROTOCOLSINK_DEFINED")
  1107. [local, object, uuid (79eac9e5-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  1108. interface IInternetProtocolSink : IUnknown {
  1109. typedef [unique] IInternetProtocolSink *LPIINTERNETPROTOCOLSINK;
  1110. cpp_quote("")
  1111. HRESULT Switch ([in] PROTOCOLDATA *pProtocolData);
  1112. HRESULT ReportProgress ([in] ULONG ulStatusCode,[in] LPCWSTR szStatusText);
  1113. HRESULT ReportData ([in] DWORD grfBSCF,[in] ULONG ulProgress,[in] ULONG ulProgressMax);
  1114. HRESULT ReportResult ([in] HRESULT hrResult,[in] DWORD dwError,[in] LPCWSTR szResult);
  1115. }
  1116. cpp_quote("#endif")
  1117. cpp_quote("")
  1118. cpp_quote("#ifndef _LPIINTERNETPROTOCOLSINKSTACKABLE_DEFINED")
  1119. cpp_quote("#define _LPIINTERNETPROTOCOLSINKSTACKABLE_DEFINED")
  1120. cpp_quote("")
  1121. [local, object, uuid (79eac9f0-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  1122. interface IInternetProtocolSinkStackable : IUnknown {
  1123. typedef [unique] IInternetProtocolSinkStackable *LPIINTERNETPROTOCOLSINKStackable;
  1124. cpp_quote("")
  1125. HRESULT SwitchSink ([in] IInternetProtocolSink *pOIProtSink);
  1126. HRESULT CommitSwitch ();
  1127. HRESULT RollbackSwitch ();
  1128. }
  1129. cpp_quote("#endif")
  1130. cpp_quote("")
  1131. cpp_quote("#ifndef _LPIINTERNETSESSION_DEFINED")
  1132. cpp_quote("#define _LPIINTERNETSESSION_DEFINED")
  1133. cpp_quote("")
  1134. [local, object, uuid (79eac9e7-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  1135. interface IInternetSession : IUnknown {
  1136. typedef [unique] IInternetSession *LPIINTERNETSESSION;
  1137. cpp_quote("")
  1138. typedef enum _tagOIBDG_FLAGS {
  1139. OIBDG_APARTMENTTHREADED = 0x100,
  1140. OIBDG_DATAONLY = 0x1000
  1141. } OIBDG_FLAGS;
  1142. cpp_quote("")
  1143. HRESULT RegisterNameSpace ([in] IClassFactory *pCF,[in] REFCLSID rclsid,[in] LPCWSTR pwzProtocol,[in] ULONG cPatterns,[in] const LPCWSTR *ppwzPatterns,[in] DWORD dwReserved);
  1144. HRESULT UnregisterNameSpace ([in] IClassFactory *pCF,[in] LPCWSTR pszProtocol);
  1145. HRESULT RegisterMimeFilter ([in] IClassFactory *pCF,[in] REFCLSID rclsid,[in] LPCWSTR pwzType);
  1146. HRESULT UnregisterMimeFilter ([in] IClassFactory *pCF,[in] LPCWSTR pwzType);
  1147. HRESULT CreateBinding ([in] LPBC pBC,[in] LPCWSTR szUrl,[in] IUnknown *pUnkOuter,[out, unique] IUnknown **ppUnk,[out, unique] IInternetProtocol **ppOInetProt,[in] DWORD dwOption);
  1148. HRESULT SetSessionOption ([in] DWORD dwOption,[in] LPVOID pBuffer,[in] DWORD dwBufferLength,[in] DWORD dwReserved);
  1149. HRESULT GetSessionOption ([in] DWORD dwOption,[in, out] LPVOID pBuffer,[in, out] DWORD *pdwBufferLength,[in] DWORD dwReserved);
  1150. }
  1151. cpp_quote("#endif")
  1152. cpp_quote("")
  1153. cpp_quote("#ifndef _LPIINTERNETTHREADSWITCH_DEFINED")
  1154. cpp_quote("#define _LPIINTERNETTHREADSWITCH_DEFINED")
  1155. cpp_quote("")
  1156. [local, object, uuid (79eac9e8-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  1157. interface IInternetThreadSwitch : IUnknown {
  1158. typedef [unique] IInternetThreadSwitch *LPIINTERNETTHREADSWITCH;
  1159. cpp_quote("")
  1160. HRESULT Prepare ();
  1161. HRESULT Continue ();
  1162. }
  1163. cpp_quote("#endif")
  1164. cpp_quote("")
  1165. cpp_quote("#ifndef _LPIINTERNETPRIORITY_DEFINED")
  1166. cpp_quote("#define _LPIINTERNETPRIORITY_DEFINED")
  1167. cpp_quote("")
  1168. [local, object, uuid (79eac9eb-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  1169. interface IInternetPriority : IUnknown {
  1170. typedef [unique] IInternetPriority *LPIINTERNETPRIORITY;
  1171. cpp_quote("")
  1172. HRESULT SetPriority ([in] LONG nPriority);
  1173. HRESULT GetPriority ([out] LONG *pnPriority);
  1174. }
  1175. cpp_quote("#endif")
  1176. cpp_quote("")
  1177. cpp_quote("#ifndef _LPIINTERNETPROTOCOLINFO_DEFINED")
  1178. cpp_quote("#define _LPIINTERNETPROTOCOLINFO_DEFINED")
  1179. cpp_quote("")
  1180. [local, object, uuid (79eac9ec-baf9-11ce-8c82-00aa004ba90b), pointer_default (unique)]
  1181. interface IInternetProtocolInfo : IUnknown {
  1182. typedef [unique] IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO;
  1183. cpp_quote("")
  1184. typedef enum _tagPARSEACTION {
  1185. PARSE_CANONICALIZE = 1,
  1186. PARSE_FRIENDLY,
  1187. PARSE_SECURITY_URL,
  1188. PARSE_ROOTDOCUMENT,
  1189. PARSE_DOCUMENT,
  1190. PARSE_ANCHOR,
  1191. PARSE_ENCODE_IS_UNESCAPE,
  1192. PARSE_DECODE_IS_ESCAPE,
  1193. PARSE_PATH_FROM_URL,
  1194. PARSE_URL_FROM_PATH,
  1195. PARSE_MIME,
  1196. PARSE_SERVER,
  1197. PARSE_SCHEMA,
  1198. PARSE_SITE,
  1199. PARSE_DOMAIN,
  1200. PARSE_LOCATION,
  1201. PARSE_SECURITY_DOMAIN,
  1202. PARSE_ESCAPE,
  1203. PARSE_UNESCAPE
  1204. } PARSEACTION;
  1205. cpp_quote("")
  1206. typedef enum _tagPSUACTION {
  1207. PSU_DEFAULT = 1,
  1208. PSU_SECURITY_URL_ONLY
  1209. } PSUACTION;
  1210. cpp_quote("")
  1211. typedef enum _tagQUERYOPTION {
  1212. QUERY_EXPIRATION_DATE = 1,
  1213. QUERY_TIME_OF_LAST_CHANGE,
  1214. QUERY_CONTENT_ENCODING,
  1215. QUERY_CONTENT_TYPE,
  1216. QUERY_REFRESH,
  1217. QUERY_RECOMBINE,
  1218. QUERY_CAN_NAVIGATE,
  1219. QUERY_USES_NETWORK,
  1220. QUERY_IS_CACHED,
  1221. QUERY_IS_INSTALLEDENTRY,
  1222. QUERY_IS_CACHED_OR_MAPPED,
  1223. QUERY_USES_CACHE,
  1224. QUERY_IS_SECURE,
  1225. QUERY_IS_SAFE,
  1226. QUERY_USES_HISTORYFOLDER,
  1227. QUERY_IS_CACHED_AND_USABLE_OFFLINE
  1228. } QUERYOPTION;
  1229. cpp_quote("")
  1230. HRESULT ParseUrl ([in] LPCWSTR pwzUrl,[in] PARSEACTION ParseAction,[in] DWORD dwParseFlags,[out] LPWSTR pwzResult,[in] DWORD cchResult,[out] DWORD *pcchResult,[in] DWORD dwReserved);
  1231. HRESULT CombineUrl ([in] LPCWSTR pwzBaseUrl,[in] LPCWSTR pwzRelativeUrl,[in] DWORD dwCombineFlags,[out] LPWSTR pwzResult,[in] DWORD cchResult,[out] DWORD *pcchResult,[in] DWORD dwReserved);
  1232. HRESULT CompareUrl ([in] LPCWSTR pwzUrl1,[in] LPCWSTR pwzUrl2,[in] DWORD dwCompareFlags);
  1233. HRESULT QueryInfo ([in] LPCWSTR pwzUrl,[in] QUERYOPTION OueryOption,[in] DWORD dwQueryFlags,[in, out, size_is (*pcbBuf)] LPVOID pBuffer,[in] DWORD cbBuffer,[in, out] DWORD *pcbBuf,[in] DWORD dwReserved);
  1234. }
  1235. cpp_quote("")
  1236. cpp_quote("#ifndef URLMON_STRICT")
  1237. cpp_quote("#define PARSE_ENCODE PARSE_ENCODE_IS_UNESCAPE")
  1238. cpp_quote("#define PARSE_DECODE PARSE_DECODE_IS_ESCAPE")
  1239. cpp_quote("#endif")
  1240. cpp_quote("#endif")
  1241. cpp_quote("")
  1242. cpp_quote("#define IOInet IInternet")
  1243. cpp_quote("#define IOInetBindInfo IInternetBindInfo")
  1244. cpp_quote("#define IOInetBindInfoEx IInternetBindInfoEx")
  1245. cpp_quote("#define IOInetProtocolRoot IInternetProtocolRoot")
  1246. cpp_quote("#define IOInetProtocol IInternetProtocol")
  1247. cpp_quote("")
  1248. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1249. cpp_quote("#define IOInetProtocolEx IInternetProtocolEx")
  1250. cpp_quote("#endif")
  1251. cpp_quote("#define IOInetProtocolSink IInternetProtocolSink")
  1252. cpp_quote("#define IOInetProtocolInfo IInternetProtocolInfo")
  1253. cpp_quote("#define IOInetSession IInternetSession")
  1254. cpp_quote("#define IOInetPriority IInternetPriority")
  1255. cpp_quote("#define IOInetThreadSwitch IInternetThreadSwitch")
  1256. cpp_quote("#define IOInetProtocolSinkStackable IInternetProtocolSinkStackable")
  1257. cpp_quote("")
  1258. cpp_quote("#define LPOINET LPIINTERNET")
  1259. cpp_quote("#define LPOINETPROTOCOLINFO LPIINTERNETPROTOCOLINFO")
  1260. cpp_quote("#define LPOINETBINDINFO LPIINTERNETBINDINFO")
  1261. cpp_quote("#define LPOINETPROTOCOLROOT LPIINTERNETPROTOCOLROOT")
  1262. cpp_quote("#define LPOINETPROTOCOL LPIINTERNETPROTOCOL")
  1263. cpp_quote("")
  1264. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1265. cpp_quote("#define LPOINETPROTOCOLEX LPIINTERNETPROTOCOLEX")
  1266. cpp_quote("#endif")
  1267. cpp_quote("#define LPOINETPROTOCOLSINK LPIINTERNETPROTOCOLSINK")
  1268. cpp_quote("#define LPOINETSESSION LPIINTERNETSESSION")
  1269. cpp_quote("#define LPOINETTHREADSWITCH LPIINTERNETTHREADSWITCH")
  1270. cpp_quote("#define LPOINETPRIORITY LPIINTERNETPRIORITY")
  1271. cpp_quote("#define LPOINETPROTOCOLINFO LPIINTERNETPROTOCOLINFO")
  1272. cpp_quote("#define LPOINETPROTOCOLSINKSTACKABLE LPIINTERNETPROTOCOLSINKSTACKABLE")
  1273. cpp_quote("")
  1274. cpp_quote("#define IID_IOInet IID_IInternet")
  1275. cpp_quote("#define IID_IOInetBindInfo IID_IInternetBindInfo")
  1276. cpp_quote("#define IID_IOInetBindInfoEx IID_IInternetBindInfoEx")
  1277. cpp_quote("#define IID_IOInetProtocolRoot IID_IInternetProtocolRoot")
  1278. cpp_quote("#define IID_IOInetProtocol IID_IInternetProtocol")
  1279. cpp_quote("")
  1280. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1281. cpp_quote("#define IID_IOInetProtocolEx IID_IInternetProtocolEx")
  1282. cpp_quote("#endif")
  1283. cpp_quote("#define IID_IOInetProtocolSink IID_IInternetProtocolSink")
  1284. cpp_quote("#define IID_IOInetProtocolInfo IID_IInternetProtocolInfo")
  1285. cpp_quote("#define IID_IOInetSession IID_IInternetSession")
  1286. cpp_quote("#define IID_IOInetPriority IID_IInternetPriority")
  1287. cpp_quote("#define IID_IOInetThreadSwitch IID_IInternetThreadSwitch")
  1288. cpp_quote("#define IID_IOInetProtocolSinkStackable IID_IInternetProtocolSinkStackable")
  1289. cpp_quote("")
  1290. cpp_quote("STDAPI CoInternetParseUrl(LPCWSTR pwzUrl, PARSEACTION ParseAction, DWORD dwFlags, LPWSTR pszResult, DWORD cchResult, DWORD *pcchResult, DWORD dwReserved);")
  1291. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1292. cpp_quote("STDAPI CoInternetParseIUri(IUri *pIUri, PARSEACTION ParseAction, DWORD dwFlags, LPWSTR pwzResult, DWORD cchResult, DWORD *pcchResult, DWORD_PTR dwReserved);")
  1293. cpp_quote("#endif")
  1294. cpp_quote("STDAPI CoInternetCombineUrl(LPCWSTR pwzBaseUrl, LPCWSTR pwzRelativeUrl, DWORD dwCombineFlags, LPWSTR pszResult, DWORD cchResult, DWORD *pcchResult, DWORD dwReserved);")
  1295. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1296. cpp_quote("STDAPI CoInternetCombineUrlEx(IUri *pBaseUri, LPCWSTR pwzRelativeUrl, DWORD dwCombineFlags, IUri **ppCombinedUri, DWORD_PTR dwReserved);")
  1297. cpp_quote("STDAPI CoInternetCombineIUri (IUri *pBaseUri, IUri *pRelativeUri, DWORD dwCombineFlags, IUri **ppCombinedUri, DWORD_PTR dwReserved);")
  1298. cpp_quote("#endif")
  1299. cpp_quote("STDAPI CoInternetCompareUrl(LPCWSTR pwzUrl1, LPCWSTR pwzUrl2, DWORD dwFlags);")
  1300. cpp_quote("STDAPI CoInternetGetProtocolFlags(LPCWSTR pwzUrl, DWORD *pdwFlags, DWORD dwReserved);")
  1301. cpp_quote("STDAPI CoInternetQueryInfo(LPCWSTR pwzUrl, QUERYOPTION QueryOptions, DWORD dwQueryFlags, LPVOID pvBuffer, DWORD cbBuffer, DWORD *pcbBuffer, DWORD dwReserved);")
  1302. cpp_quote("STDAPI CoInternetGetSession(DWORD dwSessionMode, IInternetSession **ppIInternetSession, DWORD dwReserved);")
  1303. cpp_quote("STDAPI CoInternetGetSecurityUrl(LPCWSTR pwszUrl, LPWSTR *ppwszSecUrl, PSUACTION psuAction, DWORD dwReserved);")
  1304. cpp_quote("STDAPI AsyncInstallDistributionUnit(LPCWSTR szDistUnit, LPCWSTR szTYPE, LPCWSTR szExt, DWORD dwFileVersionMS, DWORD dwFileVersionLS, LPCWSTR szURL,IBindCtx *pbc, LPVOID pvReserved,DWORD flags);")
  1305. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1306. cpp_quote("STDAPI CoInternetGetSecurityUrlEx(IUri *pUri, IUri **ppSecUri, PSUACTION psuAction, DWORD_PTR dwReserved);")
  1307. cpp_quote("#endif")
  1308. cpp_quote("")
  1309. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  1310. cpp_quote("#ifndef _INTERNETFEATURELIST_DEFINED")
  1311. cpp_quote("#define _INTERNETFEATURELIST_DEFINED")
  1312. cpp_quote("")
  1313. typedef enum _tagINTERNETFEATURELIST {
  1314. FEATURE_OBJECT_CACHING = 0,
  1315. FEATURE_ZONE_ELEVATION,
  1316. FEATURE_MIME_HANDLING,
  1317. FEATURE_MIME_SNIFFING,
  1318. FEATURE_WINDOW_RESTRICTIONS,
  1319. FEATURE_WEBOC_POPUPMANAGEMENT,
  1320. FEATURE_BEHAVIORS,
  1321. FEATURE_DISABLE_MK_PROTOCOL,
  1322. FEATURE_LOCALMACHINE_LOCKDOWN,
  1323. FEATURE_SECURITYBAND,
  1324. FEATURE_RESTRICT_ACTIVEXINSTALL,
  1325. FEATURE_VALIDATE_NAVIGATE_URL,
  1326. FEATURE_RESTRICT_FILEDOWNLOAD,
  1327. FEATURE_ADDON_MANAGEMENT,
  1328. FEATURE_PROTOCOL_LOCKDOWN,
  1329. FEATURE_HTTP_USERNAME_PASSWORD_DISABLE,
  1330. FEATURE_SAFE_BINDTOOBJECT,
  1331. FEATURE_UNC_SAVEDFILECHECK,
  1332. FEATURE_GET_URL_DOM_FILEPATH_UNENCODED,
  1333. FEATURE_TABBED_BROWSING,
  1334. FEATURE_SSLUX,
  1335. FEATURE_DISABLE_NAVIGATION_SOUNDS,
  1336. FEATURE_DISABLE_LEGACY_COMPRESSION,
  1337. FEATURE_FORCE_ADDR_AND_STATUS,
  1338. FEATURE_XMLHTTP,
  1339. FEATURE_DISABLE_TELNET_PROTOCOL,
  1340. FEATURE_FEEDS,
  1341. FEATURE_BLOCK_INPUT_PROMPTS,
  1342. FEATURE_ENTRY_COUNT,
  1343. } INTERNETFEATURELIST;
  1344. cpp_quote("")
  1345. cpp_quote("#define SET_FEATURE_ON_THREAD 0x1")
  1346. cpp_quote("#define SET_FEATURE_ON_PROCESS 0x2")
  1347. cpp_quote("#define SET_FEATURE_IN_REGISTRY 0x4")
  1348. cpp_quote("#define SET_FEATURE_ON_THREAD_LOCALMACHINE 0x8")
  1349. cpp_quote("#define SET_FEATURE_ON_THREAD_INTRANET 0x10")
  1350. cpp_quote("#define SET_FEATURE_ON_THREAD_TRUSTED 0x20")
  1351. cpp_quote("#define SET_FEATURE_ON_THREAD_INTERNET 0x40")
  1352. cpp_quote("#define SET_FEATURE_ON_THREAD_RESTRICTED 0x80")
  1353. cpp_quote("")
  1354. cpp_quote("#define GET_FEATURE_FROM_THREAD 0x1")
  1355. cpp_quote("#define GET_FEATURE_FROM_PROCESS 0x2")
  1356. cpp_quote("#define GET_FEATURE_FROM_REGISTRY 0x4")
  1357. cpp_quote("#define GET_FEATURE_FROM_THREAD_LOCALMACHINE 0x8")
  1358. cpp_quote("#define GET_FEATURE_FROM_THREAD_INTRANET 0x10")
  1359. cpp_quote("#define GET_FEATURE_FROM_THREAD_TRUSTED 0x20")
  1360. cpp_quote("#define GET_FEATURE_FROM_THREAD_INTERNET 0x40")
  1361. cpp_quote("#define GET_FEATURE_FROM_THREAD_RESTRICTED 0x80")
  1362. cpp_quote("#endif")
  1363. cpp_quote("")
  1364. cpp_quote("STDAPI CoInternetSetFeatureEnabled(INTERNETFEATURELIST FeatureEntry, DWORD dwFlags, WINBOOL fEnable);")
  1365. cpp_quote("STDAPI CoInternetIsFeatureEnabled(INTERNETFEATURELIST FeatureEntry, DWORD dwFlags);")
  1366. cpp_quote("STDAPI CoInternetIsFeatureEnabledForUrl(INTERNETFEATURELIST FeatureEntry, DWORD dwFlags, LPCWSTR szURL, IInternetSecurityManager *pSecMgr);")
  1367. cpp_quote("STDAPI CoInternetIsFeatureEnabledForIUri(INTERNETFEATURELIST FeatureEntry, DWORD dwFlags, IUri *pIUri, IInternetSecurityManagerEx2 *pSecMgr);")
  1368. cpp_quote("STDAPI CoInternetIsFeatureZoneElevationEnabled(LPCWSTR szFromURL, LPCWSTR szToURL, IInternetSecurityManager *pSecMgr, DWORD dwFlags);")
  1369. cpp_quote("#endif")
  1370. cpp_quote("STDAPI CopyStgMedium(const STGMEDIUM *pcstgmedSrc, STGMEDIUM *pstgmedDest);")
  1371. cpp_quote("STDAPI CopyBindInfo(const BINDINFO *pcbiSrc, BINDINFO *pbiDest);")
  1372. cpp_quote("STDAPI_(void) ReleaseBindInfo(BINDINFO *pbindinfo);")
  1373. cpp_quote("")
  1374. cpp_quote("#define INET_E_USE_DEFAULT_PROTOCOLHANDLER _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0011))")
  1375. cpp_quote("#define INET_E_USE_DEFAULT_SETTING _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0012))")
  1376. cpp_quote("#define INET_E_DEFAULT_ACTION INET_E_USE_DEFAULT_PROTOCOLHANDLER")
  1377. cpp_quote("#define INET_E_QUERYOPTION_UNKNOWN _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0013))")
  1378. cpp_quote("#define INET_E_REDIRECTING _HRESULT_TYPEDEF_(__MSABI_LONG(0x800C0014))")
  1379. cpp_quote("")
  1380. cpp_quote("#define OInetParseUrl CoInternetParseUrl")
  1381. cpp_quote("#define OInetCombineUrl CoInternetCombineUrl")
  1382. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1383. cpp_quote("#define OInetCombineUrlEx CoInternetCombineUrlEx")
  1384. cpp_quote("#define OInetCombineIUri CoInternetCombineIUri")
  1385. cpp_quote("#endif")
  1386. cpp_quote("#define OInetCompareUrl CoInternetCompareUrl")
  1387. cpp_quote("#define OInetQueryInfo CoInternetQueryInfo")
  1388. cpp_quote("#define OInetGetSession CoInternetGetSession")
  1389. cpp_quote("#endif")
  1390. cpp_quote("")
  1391. cpp_quote("#define PROTOCOLFLAG_NO_PICS_CHECK 0x1")
  1392. cpp_quote("")
  1393. cpp_quote("STDAPI CoInternetCreateSecurityManager(IServiceProvider *pSP, IInternetSecurityManager **ppSM, DWORD dwReserved);")
  1394. cpp_quote("STDAPI CoInternetCreateZoneManager(IServiceProvider *pSP, IInternetZoneManager **ppZM, DWORD dwReserved);")
  1395. cpp_quote("")
  1396. cpp_quote("EXTERN_C const IID CLSID_InternetSecurityManager;")
  1397. cpp_quote("EXTERN_C const IID CLSID_InternetZoneManager;")
  1398. cpp_quote("")
  1399. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  1400. cpp_quote("EXTERN_C const IID CLSID_PersistentZoneIdentifier;")
  1401. cpp_quote("#endif")
  1402. cpp_quote("")
  1403. cpp_quote("#define SID_SInternetSecurityManager IID_IInternetSecurityManager")
  1404. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  1405. cpp_quote("#define SID_SInternetSecurityManagerEx IID_IInternetSecurityManagerEx")
  1406. cpp_quote("#endif")
  1407. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1408. cpp_quote("#define SID_SInternetSecurityManagerEx2 IID_IInternetSecurityManagerEx2")
  1409. cpp_quote("#endif")
  1410. cpp_quote("#define SID_SInternetHostSecurityManager IID_IInternetHostSecurityManager")
  1411. cpp_quote("")
  1412. cpp_quote("#ifndef _LPINTERNETSECURITYMGRSITE_DEFINED")
  1413. cpp_quote("#define _LPINTERNETSECURITYMGRSITE_DEFINED")
  1414. cpp_quote("")
  1415. [local, object, uuid (79eac9ed-baf9-11ce-8c82-00aa004ba90b), helpstring ("IInternetSecurityMgrSite Interface"), pointer_default (unique)]
  1416. interface IInternetSecurityMgrSite : IUnknown {
  1417. HRESULT GetWindow ([out] HWND *phwnd);
  1418. HRESULT EnableModeless ([in] BOOL fEnable);
  1419. };
  1420. cpp_quote("#endif")
  1421. cpp_quote("")
  1422. cpp_quote("#ifndef _LPINTERNETSECURITYMANANGER_DEFINED")
  1423. cpp_quote("#define _LPINTERNETSECURITYMANANGER_DEFINED")
  1424. cpp_quote("")
  1425. [uuid (79eac9ee-baf9-11ce-8c82-00aa004ba90b), helpstring ("IInternetSecurityManager Interface"), pointer_default (unique)]
  1426. interface IInternetSecurityManager : IUnknown {
  1427. HRESULT SetSecuritySite ([in, unique] IInternetSecurityMgrSite *pSite);
  1428. HRESULT GetSecuritySite ([out] IInternetSecurityMgrSite **ppSite);
  1429. cpp_quote("")
  1430. cpp_quote("#define MUTZ_NOSAVEDFILECHECK 0x1")
  1431. cpp_quote("#define MUTZ_ISFILE 0x2")
  1432. cpp_quote("#define MUTZ_ACCEPT_WILDCARD_SCHEME 0x80")
  1433. cpp_quote("#define MUTZ_ENFORCERESTRICTED 0x100")
  1434. cpp_quote("#define MUTZ_RESERVED 0x200")
  1435. cpp_quote("#define MUTZ_REQUIRESAVEDFILECHECK 0x400")
  1436. cpp_quote("#define MUTZ_DONT_UNESCAPE 0x800")
  1437. cpp_quote("#define MUTZ_DONT_USE_CACHE 0x1000")
  1438. cpp_quote("#define MUTZ_FORCE_INTRANET_FLAGS 0x2000")
  1439. cpp_quote("#define MUTZ_IGNORE_ZONE_MAPPINGS 0x4000")
  1440. cpp_quote("")
  1441. HRESULT MapUrlToZone ([in] LPCWSTR pwszUrl,[out] DWORD *pdwZone,[in] DWORD dwFlags);
  1442. cpp_quote("")
  1443. cpp_quote("#define MAX_SIZE_SECURITY_ID 512")
  1444. cpp_quote("")
  1445. HRESULT GetSecurityId ([in] LPCWSTR pwszUrl,[out, size_is (*pcbSecurityId)]BYTE *pbSecurityId,[in, out]DWORD *pcbSecurityId,[in] DWORD_PTR dwReserved);
  1446. cpp_quote("")
  1447. typedef enum {
  1448. PUAF_DEFAULT = 0x0,
  1449. PUAF_NOUI = 0x1,
  1450. PUAF_ISFILE = 0x2,
  1451. PUAF_WARN_IF_DENIED = 0x4,
  1452. PUAF_FORCEUI_FOREGROUND = 0x8,
  1453. PUAF_CHECK_TIFS = 0x10,
  1454. PUAF_DONTCHECKBOXINDIALOG = 0x20,
  1455. PUAF_TRUSTED = 0x40,
  1456. PUAF_ACCEPT_WILDCARD_SCHEME = 0x80,
  1457. PUAF_ENFORCERESTRICTED = 0x100,
  1458. PUAF_NOSAVEDFILECHECK = 0x200,
  1459. PUAF_REQUIRESAVEDFILECHECK = 0x400,
  1460. PUAF_DONT_USE_CACHE = 0x1000,
  1461. PUAF_RESERVED1 = 0x2000,
  1462. PUAF_RESERVED2 = 0x4000,
  1463. PUAF_LMZ_UNLOCKED = 0x10000,
  1464. PUAF_LMZ_LOCKED = 0x20000,
  1465. PUAF_DEFAULTZONEPOL = 0x40000,
  1466. PUAF_NPL_USE_LOCKED_IF_RESTRICTED = 0x80000,
  1467. PUAF_NOUIIFLOCKED = 0x100000,
  1468. PUAF_DRAGPROTOCOLCHECK = 0x200000
  1469. } PUAF;
  1470. typedef enum {
  1471. PUAFOUT_DEFAULT = 0x0,
  1472. PUAFOUT_ISLOCKZONEPOLICY = 0x1
  1473. } PUAFOUT;
  1474. cpp_quote("")
  1475. HRESULT ProcessUrlAction ([in] LPCWSTR pwszUrl,[in] DWORD dwAction,[out, size_is (cbPolicy)]BYTE *pPolicy,[in] DWORD cbPolicy,[in, unique]BYTE *pContext,[in] DWORD cbContext,[in] DWORD dwFlags,[in] DWORD dwReserved);
  1476. HRESULT QueryCustomPolicy ([in] LPCWSTR pwszUrl,[in] REFGUID guidKey,[out, size_is (,*pcbPolicy)]BYTE **ppPolicy,[out] DWORD *pcbPolicy,[in] BYTE *pContext,[in] DWORD cbContext,[in] DWORD dwReserved);
  1477. cpp_quote("")
  1478. typedef enum {
  1479. SZM_CREATE = 0x0,
  1480. SZM_DELETE = 0x1
  1481. } SZM_FLAGS;
  1482. cpp_quote("")
  1483. HRESULT SetZoneMapping ([in] DWORD dwZone,[in] LPCWSTR lpszPattern,[in] DWORD dwFlags);
  1484. HRESULT GetZoneMappings ([in] DWORD dwZone,[out] IEnumString **ppenumString,[in] DWORD dwFlags);
  1485. };
  1486. cpp_quote("#endif")
  1487. cpp_quote("")
  1488. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  1489. cpp_quote("#ifndef _LPINTERNETSECURITYMANANGEREX_DEFINED")
  1490. cpp_quote("#define _LPINTERNETSECURITYMANANGEREX_DEFINED")
  1491. cpp_quote("")
  1492. [uuid (F164EDF1-CC7C-4f0d-9a94-34222625c393), helpstring ("IInternetSecurityManagerEx Interface"), pointer_default (unique)]
  1493. interface IInternetSecurityManagerEx : IInternetSecurityManager {
  1494. HRESULT ProcessUrlActionEx ([in] LPCWSTR pwszUrl,[in] DWORD dwAction,[out, size_is (cbPolicy)]BYTE *pPolicy,[in] DWORD cbPolicy,[in] BYTE *pContext,[in] DWORD cbContext,[in] DWORD dwFlags,[in] DWORD dwReserved,[out] DWORD *pdwOutFlags);
  1495. }
  1496. cpp_quote("#endif")
  1497. cpp_quote("#endif")
  1498. cpp_quote("")
  1499. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1500. cpp_quote("#ifndef _LPINTERNETSECURITYMANANGEREx2_DEFINED")
  1501. cpp_quote("#define _LPINTERNETSECURITYMANANGEREx2_DEFINED")
  1502. cpp_quote("")
  1503. [uuid (F1E50292-A795-4117-8e09-2b560a72ac60), helpstring ("IInternetSecurityManagerEx2 Interface"), pointer_default (unique)]
  1504. interface IInternetSecurityManagerEx2 : IInternetSecurityManagerEx {
  1505. HRESULT MapUrlToZoneEx2 ([in]IUri *pUri,[out] DWORD *pdwZone,[in] DWORD dwFlags,[out]LPWSTR *ppwszMappedUrl,[out]DWORD *pdwOutFlags);
  1506. HRESULT ProcessUrlActionEx2 ([in]IUri *pUri,[in] DWORD dwAction,[out, size_is (cbPolicy)]BYTE *pPolicy,[in] DWORD cbPolicy,[in, unique]BYTE *pContext,[in] DWORD cbContext,[in] DWORD dwFlags,[in] DWORD_PTR dwReserved,[out] DWORD *pdwOutFlags);
  1507. HRESULT GetSecurityIdEx2 ([in]IUri *pUri,[out, size_is (*pcbSecurityId)]BYTE *pbSecurityId,[in, out]DWORD *pcbSecurityId,[in] DWORD_PTR dwReserved);
  1508. HRESULT QueryCustomPolicyEx2 ([in]IUri *pUri,[in] REFGUID guidKey,[out, size_is (,*pcbPolicy)]BYTE **ppPolicy,[out] DWORD *pcbPolicy,[in] BYTE *pContext,[in] DWORD cbContext,[in] DWORD_PTR dwReserved);
  1509. }
  1510. cpp_quote("#endif")
  1511. cpp_quote("#endif")
  1512. cpp_quote("")
  1513. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  1514. [object, uuid (cd45f185-1b21-48e2-967b-ead743a8914e), pointer_default (unique)]
  1515. interface IZoneIdentifier : IUnknown {
  1516. HRESULT GetId ([out] DWORD *pdwZone);
  1517. HRESULT SetId ([in] DWORD dwZone);
  1518. HRESULT Remove ();
  1519. };
  1520. cpp_quote("#endif")
  1521. cpp_quote("")
  1522. cpp_quote("#ifndef _LPINTERNETHOSTSECURITYMANANGER_DEFINED")
  1523. cpp_quote("#define _LPINTERNETHOSTSECURITYMANANGER_DEFINED")
  1524. cpp_quote("")
  1525. [local, object, uuid (3af280b6-cb3f-11d0-891e-00c04fb6bfc4), helpstring ("IInternetHostSecurityManager Interface"), pointer_default (unique)]
  1526. interface IInternetHostSecurityManager : IUnknown {
  1527. HRESULT GetSecurityId ([out, size_is (*pcbSecurityId)]BYTE *pbSecurityId,[in, out]DWORD *pcbSecurityId,[in] DWORD_PTR dwReserved);
  1528. HRESULT ProcessUrlAction ([in] DWORD dwAction,[out, size_is (cbPolicy)]BYTE *pPolicy,[in] DWORD cbPolicy,[in] BYTE *pContext,[in] DWORD cbContext,[in] DWORD dwFlags,[in] DWORD dwReserved);
  1529. HRESULT QueryCustomPolicy ([in] REFGUID guidKey,[out, size_is (,*pcbPolicy)]BYTE **ppPolicy,[out] DWORD *pcbPolicy,[in] BYTE *pContext,[in] DWORD cbContext,[in] DWORD dwReserved);
  1530. };
  1531. cpp_quote("#endif")
  1532. cpp_quote("")
  1533. cpp_quote("#define URLACTION_MIN 0x1000")
  1534. cpp_quote("")
  1535. cpp_quote("#define URLACTION_DOWNLOAD_MIN 0x1000")
  1536. cpp_quote("#define URLACTION_DOWNLOAD_SIGNED_ACTIVEX 0x1001")
  1537. cpp_quote("#define URLACTION_DOWNLOAD_UNSIGNED_ACTIVEX 0x1004")
  1538. cpp_quote("#define URLACTION_DOWNLOAD_CURR_MAX 0x1004")
  1539. cpp_quote("#define URLACTION_DOWNLOAD_MAX 0x11FF")
  1540. cpp_quote("")
  1541. cpp_quote("#define URLACTION_ACTIVEX_MIN 0x1200")
  1542. cpp_quote("#define URLACTION_ACTIVEX_RUN 0x1200")
  1543. cpp_quote("#define URLPOLICY_ACTIVEX_CHECK_LIST 0x10000")
  1544. cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY 0x1201")
  1545. cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_DATA_SAFETY 0x1202")
  1546. cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY 0x1203")
  1547. cpp_quote("#define URLACTION_SCRIPT_OVERRIDE_SAFETY 0x1401")
  1548. cpp_quote("#define URLACTION_ACTIVEX_CONFIRM_NOOBJECTSAFETY 0x1204")
  1549. cpp_quote("#define URLACTION_ACTIVEX_TREATASUNTRUSTED 0x1205")
  1550. cpp_quote("#define URLACTION_ACTIVEX_NO_WEBOC_SCRIPT 0x1206")
  1551. cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION 0x1207")
  1552. cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_OPTIN 0x1208")
  1553. cpp_quote("#define URLACTION_ACTIVEX_SCRIPTLET_RUN 0x1209")
  1554. cpp_quote("#define URLACTION_ACTIVEX_DYNSRC_VIDEO_AND_ANIMATION 0x120A")
  1555. cpp_quote("#define URLACTION_ACTIVEX_OVERRIDE_DOMAINLIST 0x120B")
  1556. cpp_quote("#define URLACTION_ACTIVEX_CURR_MAX 0x120B")
  1557. cpp_quote("#define URLACTION_ACTIVEX_MAX 0x13ff")
  1558. cpp_quote("")
  1559. cpp_quote("#define URLACTION_SCRIPT_MIN 0x1400")
  1560. cpp_quote("#define URLACTION_SCRIPT_RUN 0x1400")
  1561. cpp_quote("#define URLACTION_SCRIPT_JAVA_USE 0x1402")
  1562. cpp_quote("#define URLACTION_SCRIPT_SAFE_ACTIVEX 0x1405")
  1563. cpp_quote("#define URLACTION_CROSS_DOMAIN_DATA 0x1406")
  1564. cpp_quote("#define URLACTION_SCRIPT_PASTE 0x1407")
  1565. cpp_quote("#define URLACTION_ALLOW_XDOMAIN_SUBFRAME_RESIZE 0x1408")
  1566. cpp_quote("#define URLACTION_SCRIPT_XSSFILTER 0x1409")
  1567. cpp_quote("#define URLACTION_SCRIPT_NAVIGATE 0x140A")
  1568. cpp_quote("#define URLACTION_PLUGGABLE_PROTOCOL_XHR 0x140B")
  1569. cpp_quote("#define URLACTION_SCRIPT_CURR_MAX 0x140B")
  1570. cpp_quote("#define URLACTION_SCRIPT_MAX 0x15ff")
  1571. cpp_quote("")
  1572. cpp_quote("#define URLACTION_HTML_MIN 0x1600")
  1573. cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS 0x1601")
  1574. cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS_FROM 0x1602")
  1575. cpp_quote("#define URLACTION_HTML_SUBMIT_FORMS_TO 0x1603")
  1576. cpp_quote("#define URLACTION_HTML_FONT_DOWNLOAD 0x1604")
  1577. cpp_quote("#define URLACTION_HTML_JAVA_RUN 0x1605")
  1578. cpp_quote("#define URLACTION_HTML_USERDATA_SAVE 0x1606")
  1579. cpp_quote("#define URLACTION_HTML_SUBFRAME_NAVIGATE 0x1607")
  1580. cpp_quote("#define URLACTION_HTML_META_REFRESH 0x1608")
  1581. cpp_quote("#define URLACTION_HTML_MIXED_CONTENT 0x1609")
  1582. cpp_quote("#define URLACTION_HTML_INCLUDE_FILE_PATH 0x160A")
  1583. cpp_quote("#define URLACTION_HTML_ALLOW_INJECTED_DYNAMIC_HTML 0x160B")
  1584. cpp_quote("#define URLACTION_HTML_REQUIRE_UTF8_DOCUMENT_CODEPAGE 0x160C")
  1585. cpp_quote("#define URLACTION_HTML_ALLOW_CROSS_DOMAIN_CANVAS 0x160D")
  1586. cpp_quote("#define URLACTION_HTML_ALLOW_WINDOW_CLOSE 0x160E")
  1587. cpp_quote("#define URLACTION_HTML_ALLOW_CROSS_DOMAIN_WEBWORKER 0x160F")
  1588. cpp_quote("#define URLACTION_HTML_ALLOW_CROSS_DOMAIN_TEXTTRACK 0x1610")
  1589. cpp_quote("#define URLACTION_HTML_ALLOW_INDEXEDDB 0x1611")
  1590. cpp_quote("")
  1591. cpp_quote("#define URLACTION_HTML_MAX 0x17ff")
  1592. cpp_quote("")
  1593. cpp_quote("#define URLACTION_SHELL_MIN 0x1800")
  1594. cpp_quote("#define URLACTION_SHELL_INSTALL_DTITEMS 0x1800")
  1595. cpp_quote("#define URLACTION_SHELL_MOVE_OR_COPY 0x1802")
  1596. cpp_quote("#define URLACTION_SHELL_FILE_DOWNLOAD 0x1803")
  1597. cpp_quote("#define URLACTION_SHELL_VERB 0x1804")
  1598. cpp_quote("#define URLACTION_SHELL_WEBVIEW_VERB 0x1805")
  1599. cpp_quote("#define URLACTION_SHELL_SHELLEXECUTE 0x1806")
  1600. cpp_quote("")
  1601. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  1602. cpp_quote("#define URLACTION_SHELL_EXECUTE_HIGHRISK 0x1806")
  1603. cpp_quote("#define URLACTION_SHELL_EXECUTE_MODRISK 0x1807")
  1604. cpp_quote("#define URLACTION_SHELL_EXECUTE_LOWRISK 0x1808")
  1605. cpp_quote("#define URLACTION_SHELL_POPUPMGR 0x1809")
  1606. cpp_quote("#define URLACTION_SHELL_RTF_OBJECTS_LOAD 0x180A")
  1607. cpp_quote("#define URLACTION_SHELL_ENHANCED_DRAGDROP_SECURITY 0x180B")
  1608. cpp_quote("#define URLACTION_SHELL_EXTENSIONSECURITY 0x180C")
  1609. cpp_quote("#define URLACTION_SHELL_SECURE_DRAGSOURCE 0x180D")
  1610. cpp_quote("#endif")
  1611. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_WIN7)")
  1612. cpp_quote("#define URLACTION_SHELL_REMOTEQUERY 0x180E")
  1613. cpp_quote("#define URLACTION_SHELL_PREVIEW 0x180F")
  1614. cpp_quote("#define URLACTION_SHELL_SHARE 0x1810")
  1615. cpp_quote("#define URLACTION_SHELL_ALLOW_CROSS_SITE_SHARE 0x1811")
  1616. cpp_quote("#endif")
  1617. cpp_quote("#define URLACTION_SHELL_CURR_MAX 0x1811")
  1618. cpp_quote("#define URLACTION_SHELL_MAX 0x19ff")
  1619. cpp_quote("")
  1620. cpp_quote("#define URLACTION_NETWORK_MIN 0x1A00")
  1621. cpp_quote("")
  1622. cpp_quote("#define URLACTION_CREDENTIALS_USE 0x1A00")
  1623. cpp_quote("#define URLPOLICY_CREDENTIALS_SILENT_LOGON_OK 0x0")
  1624. cpp_quote("#define URLPOLICY_CREDENTIALS_MUST_PROMPT_USER 0x10000")
  1625. cpp_quote("#define URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT 0x20000")
  1626. cpp_quote("#define URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY 0x30000")
  1627. cpp_quote("")
  1628. cpp_quote("#define URLACTION_AUTHENTICATE_CLIENT 0x1A01")
  1629. cpp_quote("#define URLPOLICY_AUTHENTICATE_CLEARTEXT_OK 0x0")
  1630. cpp_quote("#define URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE 0x10000")
  1631. cpp_quote("#define URLPOLICY_AUTHENTICATE_MUTUAL_ONLY 0x30000")
  1632. cpp_quote("")
  1633. cpp_quote("#define URLACTION_COOKIES 0x1A02")
  1634. cpp_quote("#define URLACTION_COOKIES_SESSION 0x1A03")
  1635. cpp_quote("")
  1636. cpp_quote("#define URLACTION_CLIENT_CERT_PROMPT 0x1A04")
  1637. cpp_quote("")
  1638. cpp_quote("#define URLACTION_COOKIES_THIRD_PARTY 0x1A05")
  1639. cpp_quote("#define URLACTION_COOKIES_SESSION_THIRD_PARTY 0x1A06")
  1640. cpp_quote("")
  1641. cpp_quote("#define URLACTION_COOKIES_ENABLED 0x1A10")
  1642. cpp_quote("")
  1643. cpp_quote("#define URLACTION_NETWORK_CURR_MAX 0x1A10")
  1644. cpp_quote("#define URLACTION_NETWORK_MAX 0x1Bff")
  1645. cpp_quote("")
  1646. cpp_quote("#define URLACTION_JAVA_MIN 0x1C00")
  1647. cpp_quote("#define URLACTION_JAVA_PERMISSIONS 0x1C00")
  1648. cpp_quote("#define URLPOLICY_JAVA_PROHIBIT 0x0")
  1649. cpp_quote("#define URLPOLICY_JAVA_HIGH 0x10000")
  1650. cpp_quote("#define URLPOLICY_JAVA_MEDIUM 0x20000")
  1651. cpp_quote("#define URLPOLICY_JAVA_LOW 0x30000")
  1652. cpp_quote("#define URLPOLICY_JAVA_CUSTOM 0x800000")
  1653. cpp_quote("#define URLACTION_JAVA_CURR_MAX 0x1C00")
  1654. cpp_quote("#define URLACTION_JAVA_MAX 0x1Cff")
  1655. cpp_quote("")
  1656. cpp_quote("#define URLACTION_INFODELIVERY_MIN 0x1D00")
  1657. cpp_quote("#define URLACTION_INFODELIVERY_NO_ADDING_CHANNELS 0x1D00")
  1658. cpp_quote("#define URLACTION_INFODELIVERY_NO_EDITING_CHANNELS 0x1D01")
  1659. cpp_quote("#define URLACTION_INFODELIVERY_NO_REMOVING_CHANNELS 0x1D02")
  1660. cpp_quote("#define URLACTION_INFODELIVERY_NO_ADDING_SUBSCRIPTIONS 0x1D03")
  1661. cpp_quote("#define URLACTION_INFODELIVERY_NO_EDITING_SUBSCRIPTIONS 0x1D04")
  1662. cpp_quote("#define URLACTION_INFODELIVERY_NO_REMOVING_SUBSCRIPTIONS 0x1D05")
  1663. cpp_quote("#define URLACTION_INFODELIVERY_NO_CHANNEL_LOGGING 0x1D06")
  1664. cpp_quote("#define URLACTION_INFODELIVERY_CURR_MAX 0x1D06")
  1665. cpp_quote("#define URLACTION_INFODELIVERY_MAX 0x1Dff")
  1666. cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_MIN 0x1E00")
  1667. cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_PERMISSIONS 0x1E05")
  1668. cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT 0x10000")
  1669. cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_PRECACHE 0x20000")
  1670. cpp_quote("#define URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL 0x30000")
  1671. cpp_quote("#define URLACTION_CHANNEL_SOFTDIST_MAX 0x1Eff")
  1672. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE80)")
  1673. cpp_quote("#define URLACTION_DOTNET_USERCONTROLS 0x2005")
  1674. cpp_quote("#endif")
  1675. cpp_quote("")
  1676. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  1677. cpp_quote("#define URLACTION_BEHAVIOR_MIN 0x2000")
  1678. cpp_quote("#define URLACTION_BEHAVIOR_RUN 0x2000")
  1679. cpp_quote("#define URLPOLICY_BEHAVIOR_CHECK_LIST 0x10000")
  1680. cpp_quote("")
  1681. cpp_quote("#define URLACTION_FEATURE_MIN 0x2100")
  1682. cpp_quote("#define URLACTION_FEATURE_MIME_SNIFFING 0x2100")
  1683. cpp_quote("#define URLACTION_FEATURE_ZONE_ELEVATION 0x2101")
  1684. cpp_quote("#define URLACTION_FEATURE_WINDOW_RESTRICTIONS 0x2102")
  1685. cpp_quote("#define URLACTION_FEATURE_SCRIPT_STATUS_BAR 0x2103")
  1686. cpp_quote("#define URLACTION_FEATURE_FORCE_ADDR_AND_STATUS 0x2104")
  1687. cpp_quote("#define URLACTION_FEATURE_BLOCK_INPUT_PROMPTS 0x2105")
  1688. cpp_quote("#define URLACTION_FEATURE_DATA_BINDING 0x2106")
  1689. cpp_quote("#define URLACTION_FEATURE_CROSSDOMAIN_FOCUS_CHANGE 0x2107")
  1690. cpp_quote("")
  1691. cpp_quote("#define URLACTION_AUTOMATIC_DOWNLOAD_UI_MIN 0x2200")
  1692. cpp_quote("#define URLACTION_AUTOMATIC_DOWNLOAD_UI 0x2200")
  1693. cpp_quote("#define URLACTION_AUTOMATIC_ACTIVEX_UI 0x2201")
  1694. cpp_quote("")
  1695. cpp_quote("#define URLACTION_ALLOW_RESTRICTEDPROTOCOLS 0x2300")
  1696. cpp_quote("#endif")
  1697. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1698. cpp_quote("#define URLACTION_ALLOW_APEVALUATION 0x2301")
  1699. cpp_quote("#define URLACTION_ALLOW_XHR_EVALUATION 0x2302")
  1700. cpp_quote("#define URLACTION_WINDOWS_BROWSER_APPLICATIONS 0x2400")
  1701. cpp_quote("#define URLACTION_XPS_DOCUMENTS 0x2401")
  1702. cpp_quote("#define URLACTION_LOOSE_XAML 0x2402")
  1703. cpp_quote("#define URLACTION_LOWRIGHTS 0x2500")
  1704. cpp_quote("#define URLACTION_WINFX_SETUP 0x2600")
  1705. cpp_quote("#define URLACTION_INPRIVATE_BLOCKING 0x2700")
  1706. cpp_quote("#endif")
  1707. cpp_quote("#define URLACTION_ALLOW_AUDIO_VIDEO 0x2701")
  1708. cpp_quote("#define URLACTION_ALLOW_ACTIVEX_FILTERING 0x2702")
  1709. cpp_quote("#define URLACTION_ALLOW_STRUCTURED_STORAGE_SNIFFING 0x2703")
  1710. cpp_quote("#define URLACTION_ALLOW_AUDIO_VIDEO_PLUGINS 0x2704")
  1711. cpp_quote("#define URLACTION_ALLOW_ZONE_ELEVATION_VIA_OPT_OUT 0x2705")
  1712. cpp_quote("#define URLACTION_ALLOW_ZONE_ELEVATION_OPT_OUT_ADDITION 0x2706")
  1713. cpp_quote("#define URLACTION_ALLOW_CROSSDOMAIN_DROP_WITHIN_WINDOW 0x2708")
  1714. cpp_quote("#define URLACTION_ALLOW_CROSSDOMAIN_DROP_ACROSS_WINDOWS 0x2709")
  1715. cpp_quote("#define URLACTION_ALLOW_CROSSDOMAIN_APPCACHE_MANIFEST 0x270A")
  1716. cpp_quote("#define URLACTION_ALLOW_RENDER_LEGACY_DXTFILTERS 0x270B")
  1717. cpp_quote("")
  1718. cpp_quote("#define URLPOLICY_ALLOW 0x0")
  1719. cpp_quote("#define URLPOLICY_QUERY 0x1")
  1720. cpp_quote("#define URLPOLICY_DISALLOW 0x3")
  1721. cpp_quote("#define URLPOLICY_NOTIFY_ON_ALLOW 0x10")
  1722. cpp_quote("#define URLPOLICY_NOTIFY_ON_DISALLOW 0x20")
  1723. cpp_quote("#define URLPOLICY_LOG_ON_ALLOW 0x40")
  1724. cpp_quote("#define URLPOLICY_LOG_ON_DISALLOW 0x80")
  1725. cpp_quote("")
  1726. cpp_quote("#define URLPOLICY_MASK_PERMISSIONS 0x0f")
  1727. cpp_quote("#define GetUrlPolicyPermissions(dw) (dw & URLPOLICY_MASK_PERMISSIONS)")
  1728. cpp_quote("#define SetUrlPolicyPermissions(dw,dw2) ((dw) = ((dw) & ~(URLPOLICY_MASK_PERMISSIONS)) | (dw2))")
  1729. cpp_quote("")
  1730. cpp_quote("#define URLPOLICY_DONTCHECKDLGBOX 0x100")
  1731. cpp_quote("")
  1732. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  1733. cpp_quote("EXTERN_C const GUID GUID_CUSTOM_LOCALMACHINEZONEUNLOCKED;")
  1734. cpp_quote("#endif")
  1735. cpp_quote("")
  1736. cpp_quote("#ifndef _LPINTERNETZONEMANAGER_DEFINED")
  1737. cpp_quote("#define _LPINTERNETZONEMANAGER_DEFINED")
  1738. cpp_quote("")
  1739. [local, object, uuid (79eac9ef-baf9-11ce-8c82-00aa004ba90b), helpstring ("IInternetZoneManager Interface"), pointer_default (unique)]
  1740. interface IInternetZoneManager : IUnknown {
  1741. typedef [unique] IInternetZoneManager *LPURLZONEMANAGER;
  1742. cpp_quote("")
  1743. typedef enum tagURLZONE {
  1744. URLZONE_INVALID = -1,
  1745. URLZONE_PREDEFINED_MIN = 0,
  1746. URLZONE_LOCAL_MACHINE = 0,
  1747. URLZONE_INTRANET,
  1748. URLZONE_TRUSTED,
  1749. URLZONE_INTERNET,
  1750. URLZONE_UNTRUSTED,
  1751. URLZONE_PREDEFINED_MAX = 999,
  1752. URLZONE_USER_MIN = 1000,
  1753. URLZONE_USER_MAX = 10000,
  1754. } URLZONE;
  1755. cpp_quote("")
  1756. cpp_quote("#define URLZONE_ESC_FLAG 0x100")
  1757. cpp_quote("")
  1758. typedef enum tagURLTEMPLATE {
  1759. URLTEMPLATE_CUSTOM = 0x0,
  1760. URLTEMPLATE_PREDEFINED_MIN = 0x10000,
  1761. URLTEMPLATE_LOW = 0x10000,
  1762. URLTEMPLATE_MEDLOW = 0x10500,
  1763. URLTEMPLATE_MEDIUM = 0x11000,
  1764. URLTEMPLATE_MEDHIGH = 0x11500,
  1765. URLTEMPLATE_HIGH = 0x12000,
  1766. URLTEMPLATE_PREDEFINED_MAX = 0x20000
  1767. } URLTEMPLATE;
  1768. cpp_quote("")
  1769. enum { MAX_ZONE_PATH = 260, MAX_ZONE_DESCRIPTION = 200 };
  1770. cpp_quote("")
  1771. typedef enum {
  1772. ZAFLAGS_CUSTOM_EDIT = 0x1,
  1773. ZAFLAGS_ADD_SITES = 0x2,
  1774. ZAFLAGS_REQUIRE_VERIFICATION = 0x4,
  1775. ZAFLAGS_INCLUDE_PROXY_OVERRIDE = 0x8,
  1776. ZAFLAGS_INCLUDE_INTRANET_SITES = 0x10,
  1777. ZAFLAGS_NO_UI = 0x20,
  1778. ZAFLAGS_SUPPORTS_VERIFICATION = 0x40,
  1779. ZAFLAGS_UNC_AS_INTRANET = 0x80,
  1780. ZAFLAGS_DETECT_INTRANET = 0x100,
  1781. ZAFLAGS_USE_LOCKED_ZONES = 0x10000,
  1782. ZAFLAGS_VERIFY_TEMPLATE_SETTINGS = 0x20000,
  1783. ZAFLAGS_NO_CACHE = 0x40000,
  1784. } ZAFLAGS;
  1785. cpp_quote("")
  1786. typedef struct _ZONEATTRIBUTES {
  1787. ULONG cbSize;
  1788. WCHAR szDisplayName[MAX_ZONE_PATH];
  1789. WCHAR szDescription[MAX_ZONE_DESCRIPTION];
  1790. WCHAR szIconPath[MAX_ZONE_PATH];
  1791. DWORD dwTemplateMinLevel;
  1792. DWORD dwTemplateRecommended;
  1793. DWORD dwTemplateCurrentLevel;
  1794. DWORD dwFlags;
  1795. } ZONEATTRIBUTES,*LPZONEATTRIBUTES;
  1796. cpp_quote("")
  1797. HRESULT GetZoneAttributes ([in] DWORD dwZone,[in, out, unique]ZONEATTRIBUTES *pZoneAttributes);
  1798. HRESULT SetZoneAttributes ([in] DWORD dwZone,[in] ZONEATTRIBUTES *pZoneAttributes);
  1799. cpp_quote("")
  1800. typedef enum _URLZONEREG {
  1801. URLZONEREG_DEFAULT=0,
  1802. URLZONEREG_HKLM,
  1803. URLZONEREG_HKCU
  1804. } URLZONEREG;
  1805. cpp_quote("")
  1806. HRESULT GetZoneCustomPolicy ([in] DWORD dwZone,[in] REFGUID guidKey,[out, size_is (,*pcbPolicy)]BYTE **ppPolicy,[out] DWORD *pcbPolicy,[in] URLZONEREG urlZoneReg);
  1807. HRESULT SetZoneCustomPolicy ([in] DWORD dwZone,[in] REFGUID guidKey,[in, size_is (cbPolicy)]BYTE *pPolicy,[in] DWORD cbPolicy,[in] URLZONEREG urlZoneReg);
  1808. HRESULT GetZoneActionPolicy ([in] DWORD dwZone,[in] DWORD dwAction,[out, size_is (cbPolicy)]BYTE *pPolicy,[in] DWORD cbPolicy,[in] URLZONEREG urlZoneReg);
  1809. HRESULT SetZoneActionPolicy ([in] DWORD dwZone,[in] DWORD dwAction,[in, size_is (cbPolicy)]BYTE *pPolicy,[in] DWORD cbPolicy,[in] URLZONEREG urlZoneReg);
  1810. HRESULT PromptAction ([in] DWORD dwAction,[in] HWND hwndParent,[in] LPCWSTR pwszUrl,[in] LPCWSTR pwszText,[in] DWORD dwPromptFlags);
  1811. HRESULT LogAction ([in] DWORD dwAction,[in] LPCWSTR pwszUrl,[in] LPCWSTR pwszText,[in] DWORD dwLogFlags);
  1812. HRESULT CreateZoneEnumerator ([out] DWORD *pdwEnum,[out] DWORD *pdwCount,[in] DWORD dwFlags);
  1813. HRESULT GetZoneAt ([in] DWORD dwEnum,[in] DWORD dwIndex,[out] DWORD *pdwZone);
  1814. HRESULT DestroyZoneEnumerator ([in] DWORD dwEnum);
  1815. HRESULT CopyTemplatePoliciesToZone ([in] DWORD dwTemplate,[in] DWORD dwZone,[in] DWORD dwReserved);
  1816. }
  1817. cpp_quote("#endif")
  1818. cpp_quote("")
  1819. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE60SP2)")
  1820. cpp_quote("#ifndef _LPINTERNETZONEMANAGEREX_DEFINED")
  1821. cpp_quote("#define _LPINTERNETZONEMANAGEREX_DEFINED")
  1822. cpp_quote("")
  1823. [local, object, uuid (A4C23339-8e06-431e-9bf4-7e711c085648), helpstring ("IInternetZoneManagerEx Interface"), pointer_default (unique)]
  1824. interface IInternetZoneManagerEx : IInternetZoneManager {
  1825. HRESULT GetZoneActionPolicyEx ([in] DWORD dwZone,[in] DWORD dwAction,[out, size_is (cbPolicy)]BYTE *pPolicy,[in] DWORD cbPolicy,[in] URLZONEREG urlZoneReg,[in] DWORD dwFlags);
  1826. HRESULT SetZoneActionPolicyEx ([in] DWORD dwZone,[in] DWORD dwAction,[in, size_is (cbPolicy)]BYTE *pPolicy,[in] DWORD cbPolicy,[in] URLZONEREG urlZoneReg,[in] DWORD dwFlags);
  1827. }
  1828. cpp_quote("#endif")
  1829. cpp_quote("#endif")
  1830. cpp_quote("")
  1831. cpp_quote("#if (_WIN32_IE >= _WIN32_IE_IE70)")
  1832. cpp_quote("#ifndef _LPINTERNETZONEMANAGEREX2_DEFINED")
  1833. cpp_quote("#define _LPINTERNETZONEMANAGEREX2_DEFINED")
  1834. cpp_quote("")
  1835. cpp_quote("#define SECURITY_IE_STATE_GREEN 0x0")
  1836. cpp_quote("#define SECURITY_IE_STATE_RED 0x1")
  1837. cpp_quote("")
  1838. [local, object, uuid (EDC17559-DD5D-4846-8eef-8becba5a4abf), helpstring ("IInternetZoneManagerEx2 Interface"), pointer_default (unique)]
  1839. interface IInternetZoneManagerEx2 : IInternetZoneManagerEx {
  1840. HRESULT GetZoneAttributesEx ([in] DWORD dwZone,[in, out, unique]ZONEATTRIBUTES *pZoneAttributes,[in] DWORD dwFlags);
  1841. HRESULT GetZoneSecurityState ([in] DWORD dwZoneIndex,[in] BOOL fRespectPolicy,[in, out] LPDWORD pdwState,[in, out] BOOL *pfPolicyEncountered);
  1842. HRESULT GetIESecurityState ([in] BOOL fRespectPolicy,[in, out] LPDWORD pdwState,[in, out] BOOL *pfPolicyEncountered,[in] BOOL fNoCache);
  1843. HRESULT FixUnsecureSettings ();
  1844. }
  1845. cpp_quote("#endif")
  1846. cpp_quote("#endif")
  1847. cpp_quote("")
  1848. cpp_quote("EXTERN_C const IID CLSID_SoftDistExt;")
  1849. cpp_quote("")
  1850. cpp_quote("#ifndef _LPSOFTDISTEXT_DEFINED")
  1851. cpp_quote("#define _LPSOFTDISTEXT_DEFINED")
  1852. cpp_quote("")
  1853. cpp_quote("#define SOFTDIST_FLAG_USAGE_EMAIL 0x1")
  1854. cpp_quote("#define SOFTDIST_FLAG_USAGE_PRECACHE 0x2")
  1855. cpp_quote("#define SOFTDIST_FLAG_USAGE_AUTOINSTALL 0x4")
  1856. cpp_quote("#define SOFTDIST_FLAG_DELETE_SUBSCRIPTION 0x8")
  1857. cpp_quote("")
  1858. cpp_quote("#define SOFTDIST_ADSTATE_NONE 0x0")
  1859. cpp_quote("#define SOFTDIST_ADSTATE_AVAILABLE 0x1")
  1860. cpp_quote("#define SOFTDIST_ADSTATE_DOWNLOADED 0x2")
  1861. cpp_quote("#define SOFTDIST_ADSTATE_INSTALLED 0x3")
  1862. cpp_quote("")
  1863. typedef struct _tagCODEBASEHOLD {
  1864. ULONG cbSize;
  1865. LPWSTR szDistUnit;
  1866. LPWSTR szCodeBase;
  1867. DWORD dwVersionMS;
  1868. DWORD dwVersionLS;
  1869. DWORD dwStyle;
  1870. } CODEBASEHOLD,*LPCODEBASEHOLD;
  1871. cpp_quote("")
  1872. typedef struct _tagSOFTDISTINFO {
  1873. ULONG cbSize;
  1874. DWORD dwFlags;
  1875. DWORD dwAdState;
  1876. LPWSTR szTitle;
  1877. LPWSTR szAbstract;
  1878. LPWSTR szHREF;
  1879. DWORD dwInstalledVersionMS;
  1880. DWORD dwInstalledVersionLS;
  1881. DWORD dwUpdateVersionMS;
  1882. DWORD dwUpdateVersionLS;
  1883. DWORD dwAdvertisedVersionMS;
  1884. DWORD dwAdvertisedVersionLS;
  1885. DWORD dwReserved;
  1886. } SOFTDISTINFO, *LPSOFTDISTINFO;
  1887. cpp_quote("")
  1888. [local, object, uuid (B15B8DC1-C7E1-11d0-8680-00aa00bdcb71), helpstring ("ISoftDistExt Interface"), pointer_default (unique)]
  1889. interface ISoftDistExt : IUnknown {
  1890. HRESULT ProcessSoftDist ([in] LPCWSTR szCDFURL, [in] IXMLElement *pSoftDistElement, [in, out] LPSOFTDISTINFO lpsdi);
  1891. HRESULT GetFirstCodeBase ([in] LPWSTR *szCodeBase,[in] LPDWORD dwMaxSize);
  1892. HRESULT GetNextCodeBase ([in] LPWSTR *szCodeBase,[in] LPDWORD dwMaxSize);
  1893. HRESULT AsyncInstallDistributionUnit ([in] IBindCtx *pbc,[in] LPVOID pvReserved,[in] DWORD flags,[in] LPCODEBASEHOLD lpcbh);
  1894. }
  1895. cpp_quote("")
  1896. cpp_quote("STDAPI GetSoftwareUpdateInfo(LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
  1897. cpp_quote("STDAPI SetSoftwareUpdateAdvertisementState(LPCWSTR szDistUnit, DWORD dwAdState, DWORD dwAdvertisedVersionMS, DWORD dwAdvertisedVersionLS);")
  1898. cpp_quote("#endif")
  1899. cpp_quote("")
  1900. cpp_quote("#ifndef _LPCATALOGFILEINFO_DEFINED")
  1901. cpp_quote("#define _LPCATALOGFILEINFO_DEFINED")
  1902. cpp_quote("")
  1903. [local, object, uuid (711c7600-6b48-11d1-B403-00aa00b92af1), pointer_default (unique)]
  1904. interface ICatalogFileInfo : IUnknown {
  1905. typedef [unique] ICatalogFileInfo *LPCATALOGFILEINFO;
  1906. cpp_quote("")
  1907. HRESULT GetCatalogFile ([out] LPSTR *ppszCatalogFile);
  1908. HRESULT GetJavaTrust ([out] void **ppJavaTrust);
  1909. }
  1910. cpp_quote("#endif")
  1911. cpp_quote("")
  1912. cpp_quote("#ifndef _LPDATAFILTER_DEFINED")
  1913. cpp_quote("#define _LPDATAFILTER_DEFINED")
  1914. cpp_quote("")
  1915. [object, uuid (69d14c80-c18e-11d0-a9ce-006097942311), pointer_default (unique)]
  1916. interface IDataFilter: IUnknown {
  1917. typedef [unique] IDataFilter *LPDATAFILTER;
  1918. cpp_quote("")
  1919. HRESULT DoEncode ([in] DWORD dwFlags,[in] LONG lInBufferSize,[in, size_is (lInBufferSize)]BYTE *pbInBuffer,[in] LONG lOutBufferSize,[out, size_is (lOutBufferSize)]BYTE *pbOutBuffer,[in] LONG lInBytesAvailable,[out] LONG *plInBytesRead,[out] LONG *plOutBytesWritten,[in] DWORD dwReserved);
  1920. HRESULT DoDecode ([in] DWORD dwFlags,[in] LONG lInBufferSize,[in, size_is (lInBufferSize)]BYTE *pbInBuffer,[in] LONG lOutBufferSize,[out, size_is (lOutBufferSize)]BYTE *pbOutBuffer,[in] LONG lInBytesAvailable,[out] LONG *plInBytesRead,[out] LONG *plOutBytesWritten,[in] DWORD dwReserved);
  1921. HRESULT SetEncodingLevel ([in] DWORD dwEncLevel);
  1922. }
  1923. cpp_quote("#endif")
  1924. cpp_quote("")
  1925. cpp_quote("#ifndef _LPENCODINGFILTERFACTORY_DEFINED")
  1926. cpp_quote("#define _LPENCODINGFILTERFACTORY_DEFINED")
  1927. cpp_quote("")
  1928. typedef struct _tagPROTOCOLFILTERDATA {
  1929. DWORD cbSize;
  1930. IInternetProtocolSink *pProtocolSink;
  1931. IInternetProtocol *pProtocol;
  1932. IUnknown *pUnk;
  1933. DWORD dwFilterFlags;
  1934. } PROTOCOLFILTERDATA;
  1935. cpp_quote("")
  1936. [local, object, uuid (70bdde00-c18e-11d0-a9ce-006097942311), pointer_default (unique)]
  1937. interface IEncodingFilterFactory : IUnknown {
  1938. typedef [unique] IEncodingFilterFactory *LPENCODINGFILTERFACTORY;
  1939. cpp_quote("")
  1940. typedef struct _tagDATAINFO {
  1941. ULONG ulTotalSize;
  1942. ULONG ulavrPacketSize;
  1943. ULONG ulConnectSpeed;
  1944. ULONG ulProcessorSpeed;
  1945. } DATAINFO;
  1946. cpp_quote("")
  1947. HRESULT FindBestFilter ([in] LPCWSTR pwzCodeIn,[in] LPCWSTR pwzCodeOut,[in] DATAINFO info,[out] IDataFilter **ppDF);
  1948. HRESULT GetDefaultFilter ([in] LPCWSTR pwzCodeIn,[in] LPCWSTR pwzCodeOut,[out] IDataFilter **ppDF);
  1949. }
  1950. cpp_quote("#endif")
  1951. cpp_quote("")
  1952. cpp_quote("#ifndef _HITLOGGING_DEFINED")
  1953. cpp_quote("#define _HITLOGGING_DEFINED")
  1954. cpp_quote("")
  1955. cpp_quote("WINBOOL WINAPI IsLoggingEnabledA(LPCSTR pszUrl);")
  1956. cpp_quote("WINBOOL WINAPI IsLoggingEnabledW(LPCWSTR pwszUrl);")
  1957. cpp_quote("")
  1958. cpp_quote("#define IsLoggingEnabled __MINGW_NAME_AW(IsLoggingEnabled)")
  1959. typedef struct _tagHIT_LOGGING_INFO {
  1960. DWORD dwStructSize;
  1961. LPSTR lpszLoggedUrlName;
  1962. SYSTEMTIME StartTime;
  1963. SYSTEMTIME EndTime;
  1964. LPSTR lpszExtendedInfo;
  1965. } HIT_LOGGING_INFO,*LPHIT_LOGGING_INFO;
  1966. cpp_quote("")
  1967. cpp_quote("WINBOOL WINAPI WriteHitLogging(LPHIT_LOGGING_INFO lpLogginginfo);")
  1968. cpp_quote("")
  1969. cpp_quote("#define CONFIRMSAFETYACTION_LOADOBJECT 0x1")
  1970. cpp_quote("")
  1971. struct CONFIRMSAFETY {
  1972. CLSID clsid;
  1973. IUnknown *pUnk;
  1974. DWORD dwFlags;
  1975. };
  1976. cpp_quote("")
  1977. cpp_quote("EXTERN_C const GUID GUID_CUSTOM_CONFIRMOBJECTSAFETY;")
  1978. cpp_quote("#endif")
  1979. cpp_quote("")
  1980. cpp_quote("#ifndef _LPIWRAPPEDPROTOCOL_DEFINED")
  1981. cpp_quote("#define _LPIWRAPPEDPROTOCOL_DEFINED")
  1982. cpp_quote("")
  1983. [local, object, uuid (53c84785-8425-4dc5-971b-e58d9c19f9b6), pointer_default (unique)]
  1984. interface IWrappedProtocol : IUnknown {
  1985. typedef [unique] IWrappedProtocol *LPIWRAPPEDPROTOCOL;
  1986. cpp_quote("")
  1987. HRESULT GetWrapperCode ([out] LONG *pnCode,[in] DWORD_PTR dwReserved);
  1988. }
  1989. cpp_quote("#endif")
  1990. cpp_quote("")
  1991. cpp_quote("#ifndef _LPGETBINDHANDLE_DEFINED")
  1992. cpp_quote("#define _LPGETBINDHANDLE_DEFINED")
  1993. cpp_quote("")
  1994. [local, object, uuid (AF0FF408-129d-4b20-91f0-02bd23d88352), pointer_default (unique)]
  1995. interface IGetBindHandle: IUnknown {
  1996. typedef [unique] IGetBindHandle *LPGETBINDHANDLE;
  1997. cpp_quote("")
  1998. typedef enum {
  1999. BINDHANDLETYPES_APPCACHE = 0x0,
  2000. BINDHANDLETYPES_DEPENDENCY = 0x1,
  2001. BINDHANDLETYPES_COUNT
  2002. } BINDHANDLETYPES;
  2003. cpp_quote("")
  2004. HRESULT GetBindHandle ([in] BINDHANDLETYPES enumRequestedHandle,[out] HANDLE *pRetHandle);
  2005. }
  2006. cpp_quote("#endif")
  2007. cpp_quote("")
  2008. cpp_quote("#ifndef _XHRPLUGGABLEPROTOCOL_DEFINED")
  2009. cpp_quote("#define _XHRPLUGGABLEPROTOCOL_DEFINED")
  2010. cpp_quote("")
  2011. typedef struct _tagPROTOCOL_ARGUMENT {
  2012. LPCWSTR szMethod;
  2013. LPCWSTR szTargetUrl;
  2014. } PROTOCOL_ARGUMENT,*LPPROTOCOL_ARGUMENT;
  2015. cpp_quote("#endif")
  2016. cpp_quote("")
  2017. cpp_quote("#ifndef _LPBINDCALLBACKREDIRECT_DEFINED")
  2018. cpp_quote("#define _LPBINDCALLBACKREDIRECT_DEFINED")
  2019. cpp_quote("")
  2020. [local, object, uuid (11c81bc2-121e-4ed5-B9C4-B430BD54F2C0), pointer_default (unique)]
  2021. interface IBindCallbackRedirect : IUnknown {
  2022. typedef [unique] IBindCallbackRedirect *LPBINDCALLBACKREDIRECT;
  2023. cpp_quote("")
  2024. HRESULT Redirect ([in] LPCWSTR lpcUrl,[out] VARIANT_BOOL *vbCancel);
  2025. }
  2026. cpp_quote("#endif")
  2027. cpp_quote("")
  2028. cpp_quote("#endif")