Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
7.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: urlmon.idl
  7. //
  8. // Contents: async moniker interfaces
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 11-02-95 JohannP (Johann Posch) Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #include "urlmon.idl"
  18. cpp_quote("#define IID_IOInetBindClient IID_IInternetBindClient ")
  19. cpp_quote("#define IOInetBindClient IInternetBindClient ")
  20. interface IInternetBindClient;
  21. interface IInternetCache;
  22. //cpp_quote("#define IOInetCache IInternetCache ")
  23. //+---------------------------------------------------------------------------
  24. //
  25. // Copyright (C) Microsoft Corporation, 1995 - 1996.
  26. //
  27. // Contents: IInternetCache interface definition
  28. //
  29. //----------------------------------------------------------------------------
  30. cpp_quote("#ifndef _LPIINTERNETCACHE_DEFINED")
  31. cpp_quote("#define _LPIINTERNETCACHE_DEFINED")
  32. [
  33. local,
  34. object,
  35. uuid(79eac9ea-baf9-11ce-8c82-00aa004ba90b),
  36. pointer_default(unique)
  37. ]
  38. interface IInternetCache : IUnknown
  39. {
  40. typedef [unique] IInternetCache *LPIINTERNETCACHE;
  41. }
  42. cpp_quote("#endif")
  43. //+---------------------------------------------------------------------------
  44. //
  45. // Copyright (C) Microsoft Corporation, 1995 - 1996.
  46. //
  47. // Contents: IInternetBindClient interface definition
  48. //
  49. //----------------------------------------------------------------------------
  50. cpp_quote("#ifndef _LPIINTERNETBINDCLIENT")
  51. cpp_quote("#define _LPIINTERNETBINDCLIENT")
  52. [
  53. local,
  54. object,
  55. uuid(79eac9e2-baf9-11ce-8c82-00aa004ba90b),
  56. pointer_default(unique)
  57. ]
  58. interface IInternetBindClient : IInternetBindInfo
  59. {
  60. typedef [unique] IInternetBindClient *LPIINTERNETBINDCLIENT;
  61. HRESULT GetClassFileOrMime(
  62. [in] LPBC pBC,
  63. [in] LPCWSTR szFilename,
  64. [in] LPVOID pBuffer,
  65. [in] DWORD cbSize,
  66. [in] LPCWSTR szMime,
  67. [in] DWORD dwReserved,
  68. [in,out] LPCLSID pclsid
  69. );
  70. HRESULT FindMimeFromData(
  71. [in] LPBC pBC,
  72. [in] LPCWSTR szFilename,
  73. [in] LPVOID pBuffer,
  74. [in] DWORD cbSize,
  75. [in] LPCWSTR szMime,
  76. [out] LPWSTR pwzResult,
  77. [in] DWORD cchResult,
  78. [out] DWORD *pcchResult,
  79. [in] DWORD dwReserved
  80. );
  81. }
  82. cpp_quote("#endif")
  83. //+---------------------------------------------------------------------------
  84. //
  85. // Copyright (C) Microsoft Corporation, 1995 - 1996.
  86. //
  87. // Contents: IBindStatusCallbackMsg interface definition
  88. //
  89. //----------------------------------------------------------------------------
  90. cpp_quote("#ifndef _LPBINDSTATUSCALLBACKMSG_DEFINED")
  91. cpp_quote("#define _LPBINDSTATUSCALLBACKMSG_DEFINED")
  92. [
  93. object,
  94. uuid(79eac9d5-baf9-11ce-8c82-00aa004ba90b),
  95. pointer_default(unique)
  96. ]
  97. interface IBindStatusCallbackMsg: IBindStatusCallback
  98. {
  99. typedef [unique] IBindStatusCallbackMsg *LPBINDSTATUSCALLBACKMSG;
  100. typedef enum tagMSGCALLTYPE
  101. {
  102. IBSCLEVEL_TOPLEVEL = 1
  103. ,IBSCLEVEL_NESTED = 2
  104. } IBSCLEVEL;
  105. typedef enum tagIBSCPENDINGMSG
  106. {
  107. IBSCPENDINGMSG_WAITDEFPROCESS = 0
  108. ,IBSCPENDINGMSG_WAITNOPROCESS = 1
  109. ,IBSCPENDINGMSG_CANCELCALL = 2
  110. } IBSCPENDINGMSG;
  111. HRESULT MessagePending(
  112. [in] DWORD dwPendingType,
  113. [in] DWORD dwPendingRecursion,
  114. [in] DWORD dwReserved
  115. );
  116. }
  117. cpp_quote("#endif")
  118. //+---------------------------------------------------------------------------
  119. //
  120. // Copyright (C) Microsoft Corporation, 1995 - 1996.
  121. //
  122. // Contents: IBindStatusCallbackHolder interface definition
  123. //
  124. //----------------------------------------------------------------------------
  125. cpp_quote("#ifndef _LPBINDSTATUSCALLBACKHOLDER_DEFINED")
  126. cpp_quote("#define _LPBINDSTATUSCALLBACKHOLDER_DEFINED")
  127. [
  128. local,
  129. object,
  130. uuid(79eac9cc-baf9-11ce-8c82-00aa004ba90b),
  131. pointer_default(unique)
  132. ]
  133. interface IBindStatusCallbackHolder: IBindStatusCallback
  134. {
  135. typedef [unique] IBindStatusCallbackHolder *LPBINDSTATUSCALLBACKHOLDER;
  136. }
  137. cpp_quote("#endif")
  138. //+---------------------------------------------------------------------------
  139. //
  140. // Copyright (C) Microsoft Corporation, 1995 - 1996.
  141. //
  142. // Contents: IMediaHolder interface definition
  143. //
  144. //----------------------------------------------------------------------------
  145. cpp_quote("#ifndef _LPMEDIAHOLDER_DEFINED")
  146. cpp_quote("#define _LPMEDIAHOLDER_DEFINED")
  147. [
  148. object,
  149. uuid(79eac9ce-baf9-11ce-8c82-00aa004ba90b),
  150. pointer_default(unique)
  151. ]
  152. interface IMediaHolder : IUnknown
  153. {
  154. typedef [unique] IMediaHolder *LPMEDIAHOLDER;
  155. HRESULT RegisterClassMapping(
  156. [in] DWORD ctypes,
  157. [in, size_is(ctypes)] LPCSTR rgszNames[],
  158. [in, size_is(ctypes)] CLSID rgClsIDs[],
  159. [in] DWORD dwReserved
  160. );
  161. HRESULT FindClassMapping(
  162. [in] LPCSTR szMime,
  163. [out] CLSID *pClassID,
  164. [in] DWORD dwReserved
  165. );
  166. }
  167. cpp_quote("#endif")
  168. //+---------------------------------------------------------------------------
  169. //
  170. // Copyright (C) Microsoft Corporation, 1995 - 1996.
  171. //
  172. // Contents: ITransactionData interface definition
  173. //
  174. //----------------------------------------------------------------------------
  175. cpp_quote("#ifndef _LPTRANSACTIONDATA_DEFINED")
  176. cpp_quote("#define _LPTRANSACTIONDATA_DEFINED")
  177. [
  178. object,
  179. uuid(79eac9cf-baf9-11ce-8c82-00aa004ba90b),
  180. pointer_default(unique)
  181. ]
  182. interface ITransactionData : IUnknown
  183. {
  184. typedef [unique] ITransactionData *LPTRANSACTIONDATA;
  185. HRESULT GetTransactionData(
  186. [in] LPCWSTR szUrl,
  187. [out] LPOLESTR *pszFilename,
  188. [out] LPOLESTR *pszMime,
  189. [out] DWORD *pdwSizeTotal,
  190. [out] DWORD *pdwSizeAvailable,
  191. [in] DWORD dwReserved
  192. );
  193. }
  194. cpp_quote("#endif")
  195. //+---------------------------------------------------------------------------
  196. // Contents: ITransProtocolSink interface definition
  197. //----------------------------------------------------------------------------
  198. cpp_quote("#ifndef _LPTRANSPROTOCOLSINK_DEFINED")
  199. cpp_quote("#define _LPTRANSPROTOCOLSINK_DEFINED")
  200. [
  201. local,
  202. object,
  203. uuid(7291765a-a83f-401d-81a6-112c3a468a7b),
  204. pointer_default(unique)
  205. ]
  206. interface ITransProtocolSink : IUnknown
  207. {
  208. HRESULT QueryBindFlags ([out] DWORD* pdwResult);
  209. }
  210. cpp_quote("#endif")
  211. //
  212. // internal bindf flags
  213. //
  214. #pragma midl_echo("#define BINDF_IGNOREMIMECLSID 0x80000000 ") // used by office
  215. #pragma midl_echo("#define BINDF_COMPLETEDOWNLOAD 0x01000000 ") // used by office