Source code of Windows XP (NT5)
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.

164 lines
4.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (c) Microsoft Corporation. All rights reserved.
  5. //
  6. // File: upnpp.idl
  7. // Contents: Private interfaces used by UPnP. Do not publically distribute.
  8. //
  9. //----------------------------------------------------------------------------
  10. cpp_quote("//+-------------------------------------------------------------------------")
  11. cpp_quote("//")
  12. cpp_quote("// Microsoft Windows")
  13. cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.")
  14. cpp_quote("//")
  15. cpp_quote("//--------------------------------------------------------------------------")
  16. import "oaidl.idl";
  17. import "ocidl.idl";
  18. #ifndef __UPNP_IDL_DEFINE__
  19. import "upnp.idl";
  20. #endif // __UPNP_IDL_DEFINE__
  21. [
  22. object,
  23. uuid(8dcc8327-dbe9-48e6-846c-33725865d50c),
  24. pointer_default(unique)
  25. ]
  26. interface IUPnPPrivateCallbackHelper: IUnknown
  27. {
  28. HRESULT HandleDeviceAdd([in] LPWSTR szwLocation,
  29. [in] BSTR bstrUdn,
  30. [in] BOOL fSearchResult,
  31. [in] GUID *guidInterface);
  32. HRESULT HandleDeviceRemove([in] BSTR bstrUdn);
  33. HRESULT HandleDone();
  34. };
  35. [
  36. object,
  37. uuid(340f4076-6856-48f9-b3c4-97b91b68d77e),
  38. pointer_default(unique)
  39. ]
  40. interface IUPnPPrivateServiceHelper2 : IUnknown
  41. {
  42. HRESULT GetServiceObject([out] IUnknown ** ppunkService);
  43. };
  44. [
  45. object,
  46. uuid(24ea2515-f612-4528-ba82-7bd3dbbad303),
  47. pointer_default(unique)
  48. ]
  49. interface IUPnPServiceCallbackPrivate: IUnknown
  50. {
  51. HRESULT AddTransientCallback([in] IUnknown * pUnkCallback,
  52. [out] DWORD *pdwCookie);
  53. HRESULT RemoveTransientCallback([in] DWORD dwCookie);
  54. };
  55. //
  56. // ISOAPRequest HRESULTs
  57. //
  58. cpp_quote("#define SOAPREQ_E_METHODFAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0300)")
  59. cpp_quote("#define SOAPREQ_E_TRANSPORTERROR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0301)")
  60. cpp_quote("#define SOAPREQ_E_ERROR_PROCESSING_RESPONSE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0302)")
  61. cpp_quote("#define SOAPREQ_E_TIMEOUT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0303)")
  62. cpp_quote("EXTERN_C const CLSID CLSID_SOAPRequest;")
  63. [
  64. object,
  65. uuid(ad194525-6e01-4bca-929c-23c7383336af),
  66. helpstring("ISOAPRequest"),
  67. pointer_default(unique),
  68. nonextensible
  69. ]
  70. interface ISOAPRequest : IUnknown
  71. {
  72. // Initialization
  73. [helpstring("method Open")]
  74. HRESULT Open([in] BSTR bstrMethodName,
  75. [in] BSTR bstrInterfaceName,
  76. [in] BSTR bstrMethodNameSpace);
  77. // Parameter Manipulation
  78. [helpstring("method SetParameter")]
  79. HRESULT SetParameter([in] BSTR bstrName,
  80. [in] IUnknown * pUnkNewValue);
  81. // Invoke
  82. [helpstring("method Execute")]
  83. HRESULT Execute([in] BSTR bstrTargetURI,
  84. [in] DWORD_PTR Connection);
  85. // Feedback
  86. [propget, helpstring("property ResponseElement")]
  87. HRESULT ResponseElement([out, retval] IUnknown **ppUnkValue);
  88. [propget, helpstring("property ResponseFaultDetail")]
  89. HRESULT ResponseFaultDetail([out, retval] IUnknown **ppUnkValue);
  90. [propget, helpstring("property ResponseHTTPStatus")]
  91. HRESULT ResponseHTTPStatus([out, retval] long *plValue);
  92. };
  93. [
  94. uuid(3FFC5AE5-A66B-499c-A180-C7393DB6BA8D),
  95. pointer_default(unique)
  96. ]
  97. interface IUPnPDeviceHostICSSupport : IUnknown
  98. {
  99. HRESULT SetICSInterfaces([in] long nCount, [in, size_is(nCount)] GUID * arPrivateInterfaceGuids);
  100. HRESULT SetICSOff();
  101. }
  102. [
  103. uuid(983dfc0b-1796-44df-8975-ca545b620ee5),
  104. pointer_default(unique)
  105. ]
  106. interface IUPnPDeviceFinderAddCallbackWithInterface : IUnknown
  107. {
  108. HRESULT DeviceAddedWithInterface(
  109. [in] LONG lFindData,
  110. [in] IUPnPDevice * pDevice,
  111. [in] GUID * pguidInterface);
  112. };
  113. [
  114. object,
  115. uuid(19432a8e-4a32-4860-b8fb-95b1117cd4e5),
  116. pointer_default(unique)
  117. ]
  118. interface IUPnPPrivateDocumentCallbackHelper : IUnknown
  119. {
  120. HRESULT DocumentDownloadReady(DWORD_PTR hOpenUrl);
  121. HRESULT DocumentDownloadAbort(DWORD_PTR hOpenUrl, DWORD dwError);
  122. HRESULT DocumentDownloadRedirect(DWORD_PTR hOpenUrl, LPCWSTR bstrNewUrl);
  123. };
  124. [
  125. uuid(797A9BB1-9E49-4e63-AFE1-1B45B9DC8162)
  126. ]
  127. coclass UPnPDeviceHostICSSupport
  128. {
  129. [default] interface IUnknown;
  130. }
  131. cpp_quote("EXTERN_C const CLSID CLSID_UPnPDeviceHostICSSupport;")