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.

84 lines
3.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright 1995-1999 Microsoft Corporation. All Rights Reserved.
  5. //
  6. //--------------------------------------------------------------------------
  7. cpp_quote("//=--------------------------------------------------------------------------=")
  8. cpp_quote("// iedial.h")
  9. cpp_quote("//=--------------------------------------------------------------------------=")
  10. cpp_quote("// (C) Copyright 1995-1999 Microsoft Corporation. All Rights Reserved.")
  11. cpp_quote("//")
  12. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  13. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  14. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  15. cpp_quote("// PARTICULAR PURPOSE.")
  16. cpp_quote("//=--------------------------------------------------------------------------=")
  17. cpp_quote("")
  18. cpp_quote("#pragma comment(lib,\"uuid.lib\")")
  19. cpp_quote("")
  20. cpp_quote("//---------------------------------------------------------------------------=")
  21. cpp_quote("// Channel Manager Interfaces.")
  22. cpp_quote("")
  23. #ifndef DO_NO_IMPORTS
  24. import "unknwn.idl";
  25. import "ocidl.idl";
  26. import "oleidl.idl";
  27. import "oaidl.idl";
  28. #endif
  29. [
  30. uuid(2d86f4ff-6e2d-4488-b2e9-6934afd41bea),
  31. version(1.0),
  32. helpstring("Dial Event Sink")
  33. ]
  34. interface IDialEventSink : IUnknown
  35. {
  36. HRESULT OnEvent([in] DWORD dwEvent, [in] DWORD dwStatus);
  37. }
  38. [
  39. uuid(39fd782b-7905-40d5-9148-3c9b190423d5),
  40. version(1.0),
  41. helpstring("Dial Engine interface")
  42. ]
  43. interface IDialEngine : IUnknown
  44. {
  45. HRESULT Initialize([in] LPCWSTR pwzConnectoid, [in] IDialEventSink *pIDES);
  46. HRESULT GetProperty([in] LPCWSTR pwzProperty, [in] LPWSTR pwzValue, [in] DWORD dwBufSize);
  47. HRESULT SetProperty([in] LPCWSTR pwzProperty, [in] LPCWSTR pwzValue);
  48. HRESULT Dial(void);
  49. HRESULT HangUp(void);
  50. HRESULT GetConnectedState([out] DWORD *pdwState);
  51. HRESULT GetConnectHandle([out] DWORD_PTR *pdwHandle);
  52. }
  53. [
  54. uuid(8aecafa9-4306-43cc-8c5a-765f2979cc16),
  55. version(1.0),
  56. helpstring("Dial Branding")
  57. ]
  58. interface IDialBranding : IUnknown
  59. {
  60. HRESULT Initialize([in] LPCWSTR pwzConnectoid);
  61. HRESULT GetBitmap([in] DWORD dwIndex, [out] HBITMAP *phBitmap);
  62. }
  63. cpp_quote("#define DIALPROP_USERNAME L\"UserName\" ")
  64. cpp_quote("#define DIALPROP_PASSWORD L\"Password\" ")
  65. cpp_quote("#define DIALPROP_DOMAIN L\"Domain\" ")
  66. cpp_quote("#define DIALPROP_SAVEPASSWORD L\"SavePassword\" ")
  67. cpp_quote("#define DIALPROP_REDIALCOUNT L\"RedialCount\" ")
  68. cpp_quote("#define DIALPROP_REDIALINTERVAL L\"RedialInterval\" ")
  69. cpp_quote("#define DIALPROP_PHONENUMBER L\"PhoneNumber\" ")
  70. cpp_quote("#define DIALPROP_LASTERROR L\"LastError\" ")
  71. cpp_quote("#define DIALPROP_RESOLVEDPHONE L\"ResolvedPhone\" ")
  72. cpp_quote("")
  73. cpp_quote("#define DIALENG_OperationComplete 0x10000 ")
  74. cpp_quote("#define DIALENG_RedialAttempt 0x10001 ")
  75. cpp_quote("#define DIALENG_RedialWait 0x10002 ")