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.

157 lines
3.2 KiB

  1. /*++
  2. Copyright (c) 2001, Microsoft Corporation
  3. Module Name:
  4. eluiuser.h
  5. Abstract:
  6. User interaction module definitions
  7. Revision History:
  8. sachins, April 25, 2001, Created
  9. --*/
  10. #ifndef _ELUIUSER_H
  11. #define _ELUIUSER_H
  12. #define BID_Dialer 100
  13. #define DID_DR_DialerUD 117
  14. #define CID_DR_EB_User 1104
  15. #define CID_DR_EB_Password 1103
  16. #define CID_DR_PB_DialConnect 1590
  17. #define CID_DR_PB_Cancel 1591
  18. #define CID_DR_BM_Useless 1100
  19. #define CID_DR_ST_User 1413
  20. #define CID_DR_ST_Password 1112
  21. #define CID_DR_ST_Domain 1110
  22. #define CID_DR_EB_Domain 1102
  23. #define IDC_STATIC -1
  24. #define MAX_BALLOON_MSG_LEN 255
  25. #define cszModuleName TEXT("wzcdlg.dll")
  26. //
  27. // MD5 dialog info
  28. //
  29. typedef struct _EAPOLMD5UI
  30. {
  31. // Authentication identity using RasGetUserIdentity or other means
  32. CHAR *pszIdentity;
  33. // User Password for EAP MD5 CHAP
  34. WCHAR *pwszPassword;
  35. // User Password for EAP MD5 CHAP
  36. DATA_BLOB PasswordBlob;
  37. // Friendly name of the interface on which this port is opened
  38. WCHAR *pwszFriendlyName;
  39. } EAPOLMD5UI, *PEAPOLMD5UI;
  40. //
  41. // MD5 dialog argument block
  42. //
  43. typedef struct
  44. _USERDLGARGS
  45. {
  46. EAPOLMD5UI *pEapolMD5UI;
  47. } USERDLGARGS;
  48. //
  49. // MD5 dialog context block
  50. //
  51. typedef struct _USERDLGINFO
  52. {
  53. // Common dial context information including the RAS API arguments.
  54. USERDLGARGS* pArgs;
  55. // Handle of the dialog and some of it's controls.
  56. HWND hwndDlg;
  57. HWND hwndEbUser;
  58. HWND hwndEbPw;
  59. HWND hwndEbDomain;
  60. } USERDLGINFO;
  61. DWORD
  62. ElGetUserIdentityDlgWorker (
  63. IN WCHAR *pwszConnectionName,
  64. IN VOID *pvContext
  65. );
  66. DWORD
  67. ElGetUserNamePasswordDlgWorker (
  68. IN WCHAR *pwszConnectionName,
  69. IN VOID *pvContext
  70. );
  71. VOID
  72. ElUserDlgSave (
  73. IN USERDLGINFO *pInfo
  74. );
  75. BOOL
  76. ElUserDlgCommand (
  77. IN USERDLGINFO *pInfo,
  78. IN WORD wNotification,
  79. IN WORD wId,
  80. IN HWND hwndCtrl
  81. );
  82. VOID
  83. ElContextHelp(
  84. IN const DWORD* padwMap,
  85. IN HWND hWndDlg,
  86. IN UINT unMsg,
  87. IN WPARAM wParam,
  88. IN LPARAM lParam
  89. );
  90. DWORD
  91. ElUserDlg (
  92. IN HWND hwndOwner,
  93. IN EAPOLMD5UI *pEapolMD5UI
  94. );
  95. BOOL
  96. ElUserDlgInit (
  97. IN HWND hwndDlg,
  98. IN USERDLGARGS *pArgs
  99. );
  100. VOID
  101. ElUserDlgTerm (
  102. IN HWND hwndDlg,
  103. IN USERDLGINFO *pInfo
  104. );
  105. INT_PTR
  106. ElUserDlgProc (
  107. IN HWND hwnd,
  108. IN UINT unMsg,
  109. IN WPARAM wparam,
  110. IN LPARAM lparam
  111. );
  112. DWORD
  113. ElInvokeInteractiveUIDlgWorker (
  114. IN WCHAR *pwszConnectionName,
  115. IN VOID *pvContext
  116. );
  117. DWORD
  118. ElDialogCleanup (
  119. IN WCHAR *pwszConnectionName,
  120. IN VOID *pvContext
  121. );
  122. #endif // _ELUIUSER_H