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.

219 lines
3.8 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. nwdlg.h
  5. Abstract:
  6. Dialog ID header for NetWare login dialog.
  7. Author:
  8. Rita Wong (ritaw) 17-Mar-1993
  9. Revision History:
  10. --*/
  11. #ifndef _NWDLG_INCLUDED_
  12. #define _NWDLG_INCLUDED_
  13. #include "nwapi.h"
  14. #include "nwshrc.h"
  15. #include <windows.h>
  16. typedef struct _LOGIN_DLG_PARAMETERS
  17. {
  18. LPWSTR UserName;
  19. LPWSTR ServerName;
  20. LPWSTR Password;
  21. LPWSTR NewUserSid;
  22. PLUID pLogonId;
  23. DWORD ServerNameSize;
  24. DWORD PasswordSize;
  25. DWORD LogonScriptOptions;
  26. DWORD PrintOption;
  27. } LOGINDLGPARAM, *PLOGINDLGPARAM;
  28. typedef struct _PASSWD_DLG_PARAMETERS
  29. {
  30. LPWSTR UserName;
  31. LPWSTR ServerName;
  32. DWORD UserNameSize;
  33. DWORD ServerNameSize;
  34. } PASSWDDLGPARAM, *PPASSWDDLGPARAM;
  35. typedef struct _CHANGE_PW_DLG_PARAM
  36. {
  37. PWCHAR UserName;
  38. PWCHAR OldPassword;
  39. PWCHAR NewPassword;
  40. LPWSTR *TreeList;
  41. LPWSTR *UserList;
  42. DWORD Entries;
  43. BOOL ChangedOne;
  44. } CHANGE_PW_DLG_PARAM, *PCHANGE_PW_DLG_PARAM;
  45. typedef struct _OLD_PW_DLG_PARAM
  46. {
  47. PWCHAR OldPassword;
  48. PWCHAR FailedServer;
  49. } OLD_PW_DLG_PARAM, *POLD_PW_DLG_PARAM;
  50. typedef struct _ALT_UN_DLG_PARAM
  51. {
  52. PWCHAR UserName;
  53. PWCHAR TreeServerName;
  54. } USERNAME_DLG_PARAM, *PUSERNAME_DLG_PARAM;
  55. typedef struct _PROMPT_DLG_PARAMETERS
  56. {
  57. LPWSTR UserName;
  58. LPWSTR ServerName;
  59. LPWSTR Password;
  60. DWORD PasswordSize;
  61. } PROMPTDLGPARAM, *PPROMPTDLGPARAM;
  62. typedef struct _CONNECT_DLG_PARAMETERS
  63. {
  64. LPWSTR UncPath;
  65. LPWSTR ConnectAsUserName;
  66. LPWSTR UserName;
  67. LPWSTR Password;
  68. DWORD UserNameSize;
  69. DWORD PasswordSize;
  70. DWORD LastConnectionError;
  71. } CONNECTDLGPARAM, *PCONNECTDLGPARAM;
  72. typedef struct _CHANGE_PASS_DLG_PARAM
  73. {
  74. PWCHAR UserName;
  75. PWCHAR TreeName;
  76. PWCHAR OldPassword;
  77. PWCHAR NewPassword;
  78. } CHANGE_PASS_DLG_PARAM, *PCHANGE_PASS_DLG_PARAM;
  79. #define NW_INVALID_SERVER_CHAR L'.'
  80. INT_PTR
  81. CALLBACK
  82. NwpLoginDlgProc(
  83. HWND DialogHandle,
  84. UINT Message,
  85. WPARAM Parameter1,
  86. LPARAM Parameter2
  87. );
  88. INT_PTR
  89. CALLBACK
  90. NwpSelectServersDlgProc(
  91. HWND DialogHandle,
  92. UINT Message,
  93. WPARAM WParam,
  94. LPARAM LParam
  95. );
  96. INT_PTR
  97. CALLBACK
  98. NwpChangePasswdDlgProc(
  99. HWND DialogHandle,
  100. UINT Message,
  101. WPARAM Parameter1,
  102. LPARAM Parameter2
  103. );
  104. INT_PTR
  105. CALLBACK
  106. NwpPasswdPromptDlgProc(
  107. HWND DialogHandle,
  108. UINT Message,
  109. WPARAM Parameter1,
  110. LPARAM Parameter2
  111. );
  112. INT_PTR
  113. CALLBACK
  114. NwpChangePasswordDlgProc(
  115. HWND DialogHandle,
  116. UINT Message,
  117. WPARAM Parameter1,
  118. LPARAM Parameter2
  119. );
  120. INT_PTR
  121. CALLBACK
  122. NwpHelpDlgProc(
  123. HWND DialogHandle,
  124. UINT Message,
  125. WPARAM Parameter1,
  126. LPARAM Parameter2
  127. );
  128. INT_PTR
  129. CALLBACK
  130. NwpChangePasswordSuccessDlgProc(
  131. HWND DialogHandle,
  132. UINT Message,
  133. WPARAM WParam,
  134. LPARAM LParam
  135. );
  136. INT
  137. NwpMessageBoxError(
  138. IN HWND hwndParent,
  139. IN DWORD nTitleId,
  140. IN DWORD nBodyId,
  141. IN DWORD nParameterId,
  142. IN LPWSTR szParameter2,
  143. IN UINT nStyle
  144. );
  145. INT
  146. NwpMessageBoxIns(
  147. IN HWND hwndParent,
  148. IN DWORD TitleId,
  149. IN DWORD MessageId,
  150. IN LPWSTR *InsertStrings,
  151. IN UINT nStyle
  152. );
  153. DWORD
  154. NwpGetUserCredential(
  155. IN HWND hwndOwner,
  156. IN LPWSTR Unc,
  157. IN DWORD LastConnectionError,
  158. IN LPWSTR pszConnectAsUserName,
  159. OUT LPWSTR *UserName,
  160. OUT LPWSTR *Password
  161. );
  162. VOID
  163. NwpSaveLogonCredential(
  164. IN LPWSTR NewUser,
  165. IN PLUID LogonId OPTIONAL,
  166. IN LPWSTR UserName,
  167. IN LPWSTR Password,
  168. IN LPWSTR PreferredServer OPTIONAL
  169. );
  170. DWORD
  171. NwpSaveLogonScriptOptions(
  172. IN LPWSTR CurrentUserSid,
  173. IN DWORD LogonScriptOptions
  174. );
  175. #endif