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.

72 lines
2.5 KiB

  1. //*****************************************************************************
  2. //
  3. // Microsoft Windows Media
  4. // Copyright (C) Microsoft Corporation. All rights reserved.
  5. //
  6. // FileName: wmsproxy.idl
  7. //
  8. // Abstract:
  9. //
  10. //*****************************************************************************
  11. cpp_quote("//*****************************************************************************")
  12. cpp_quote("//")
  13. cpp_quote("// Microsoft Windows Media")
  14. cpp_quote("// Copyright (C) Microsoft Corporation. All rights reserved.")
  15. cpp_quote("//")
  16. cpp_quote("// Automatically generated by Midl from wmsproxy.idl" )
  17. cpp_quote("//")
  18. cpp_quote("// DO NOT EDIT THIS FILE.")
  19. cpp_quote("//")
  20. cpp_quote("//*****************************************************************************")
  21. cpp_quote("#if _MSC_VER > 1000")
  22. cpp_quote("#pragma once")
  23. cpp_quote("#endif // _MSC_VER > 1000")
  24. import "objidl.idl";
  25. import "wmscontext.idl";
  26. interface IWMSProxyContext;
  27. cpp_quote( "EXTERN_GUID( IID_IWMSProxyContext, 0x2E34AB85,0x0D3D,0x11d2,0x9E,0xEE,0x00,0x60,0x97,0xD2,0xD7,0xCF );" )
  28. [
  29. object,
  30. pointer_default(unique),
  31. uuid(2E34AB85-0D3D-11d2-9EEE-006097D2D7CF),
  32. version(9.0),
  33. helpstring("Provides methods to discover upstream proxy settings and credentials to facilitate cache proxy binding.")
  34. ]
  35. interface IWMSProxyContext : IUnknown
  36. {
  37. //
  38. // The FindProxyForURL function is used to dynamically determine the proxy settings that will be
  39. // used for a connection.
  40. //
  41. // To indicate that a proxy should be used:
  42. // - Return S_OK and set pbstrProxyServer and pdwProxyPort with the desired settings.
  43. //
  44. // To indicate that a proxy should not be used:
  45. // - Return S_OK and set pbstrProxyServer to NULL or an empty string.
  46. //
  47. // To indicate that the default proxy settings should be used:
  48. // - Return S_FALSE or any other error code.
  49. //
  50. [helpstring("Retrieves the name and port number of an upstream proxy server.")] HRESULT
  51. FindProxyForURL(
  52. [in] IWMSContext *pUserContext,
  53. [in] BSTR bstrUrl,
  54. [out] BSTR *pbstrProxyServer,
  55. [out] DWORD *pdwProxyPort);
  56. [helpstring("Retrieves the user name and password that is used to respond to a security challenge from an upstream proxy server.")] HRESULT
  57. GetCredentials(
  58. [in] IWMSContext *pUserContext,
  59. [in] BSTR bstrRealm,
  60. [in] BSTR bstrUrl,
  61. [out] BSTR *pbstrName,
  62. [out] BSTR *pbstrPassword);
  63. };