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.

94 lines
3.4 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: cmdial.h
  4. //
  5. // Module: CMDIAL32.DLL
  6. //
  7. // Synopsis: Header file for Private CM APIs
  8. //
  9. // Copyright (c) 1997-1999 Microsoft Corporation
  10. //
  11. // Author: nickball Created 02/05/98
  12. //
  13. //+----------------------------------------------------------------------------
  14. #ifndef _CMDIAL_INC_
  15. #define _CMDIAL_INC_
  16. //
  17. // Type definitions
  18. //
  19. typedef struct CmDialInfo
  20. {
  21. WCHAR szPassword[PWLEN + 1]; // Primary/Tunnel Password used for connection
  22. WCHAR szInetPassword[PWLEN + 1]; // Secondary/ISP password used for connection
  23. DWORD dwCmFlags;
  24. } CMDIALINFO, * LPCMDIALINFO;
  25. //+----------------------------------------------------------------------------
  26. //
  27. // Function: CmCustomDialDlg
  28. //
  29. // Synopsis: Our CM specific variation on RasCustomDialDlg.
  30. //
  31. // Arguments: HWND hwndParent - The HWND of the parent window.
  32. // DWORD dwFlags - Dial flags
  33. // LPTSTR lpszPhonebook - Ptr to the full path and filename of the phonebook.
  34. // LPTSTR lpszEntry - Ptr to the name of the phone-book entry to dial.
  35. // LPTSTR lpszPhoneNumber - Ptr to replacement phone number
  36. // LPRASDIALDLG lpRasDialDlg - Ptr to structure for additional RAS parameters
  37. // LPRASENTRYDLG lpRasEntryDlg -- Ptr to structure for additional RAS parameters
  38. // LPCMDIALINFO lpCmInfo - Ptr to structure containing CM dial info such as flags.
  39. // LPVOID lpv lpv - Ptr to blob passed by RAS during WinLogon on W2K.
  40. //
  41. // Returns: BOOL WINAPI - TRUE on success
  42. //
  43. //+----------------------------------------------------------------------------
  44. extern "C" BOOL WINAPI CmCustomDialDlg(HWND hwndParent,
  45. DWORD dwFlags,
  46. LPWSTR lpszPhonebook,
  47. LPCWSTR lpszEntry,
  48. LPWSTR lpszPhoneNumber,
  49. LPRASDIALDLG lpRasDialDlg,
  50. LPRASENTRYDLGW lpRasEntryDlg,
  51. LPCMDIALINFO lpCmInfo,
  52. LPVOID lpvLogonBlob=NULL);
  53. //+----------------------------------------------------------------------------
  54. //
  55. // Function: CmCustomHangUp
  56. //
  57. // Synopsis: Our CM specific variation on RasCustomHangUp. Optionally, the entry
  58. // name may be given instead of the RAS handle.
  59. //
  60. // Arguments: HRASCONN hRasConn - The handle of the connection to be terminated.
  61. // LPCTSTR pszEntry - Ptr to the name of the entry to be terminated.
  62. // BOOL fPersist - Preserve the entry and its usage count.
  63. //
  64. // Returns: DWORD WINAPI - Return code
  65. //
  66. //+----------------------------------------------------------------------------
  67. extern "C" DWORD WINAPI CmCustomHangUp(HRASCONN hRasConn,
  68. LPCWSTR pszEntry,
  69. BOOL fIgnoreRefCount,
  70. BOOL fPersist);
  71. //+----------------------------------------------------------------------------
  72. //
  73. // Function: CmReConnect
  74. //
  75. // Synopsis: Used specificly for CMMON to call upon reconnect
  76. //
  77. // Arguments: LPTSTR lpszPhonebook - Ptr to the full path and filename of the phonebook.
  78. // LPTSTR lpszEntry - Ptr to the name of the phone-book entry to dial.
  79. // LPCMDIALINFO lpCmInfo - The reconnect information
  80. //
  81. // Returns: DWORD WINAPI - Return code
  82. //
  83. //+----------------------------------------------------------------------------
  84. extern "C"
  85. BOOL CmReConnect( LPTSTR lpszPhonebook,
  86. LPWSTR lpszEntry,
  87. LPCMDIALINFO lpCmInfo);
  88. #endif _CMDIAL_INC_