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.

69 lines
1.8 KiB

  1. // ===========================================================================
  2. // UAMDialogs.h � 1997 Microsoft Corp. All rights reserved.
  3. // ===========================================================================
  4. #pragma once
  5. #include "ClientUAM.h"
  6. #include "UAMMain.h"
  7. #include "UAMUtils.h"
  8. #define DLOG_ChangePwd 12129
  9. #define ALRT_Error 135
  10. #define ALRT_Error2 136
  11. #define MAX_PASSWORD_ENTRY_ERRORS 2
  12. //
  13. //Standard dialog items throughout all our dialogs.
  14. //
  15. #define DITEM_OK 1
  16. #define DITEM_Cancel 2
  17. //
  18. //Codes that UAM_ChangePswd return
  19. //
  20. #define CHNGPSWD_UPDATE_KEYCHAIN 1000
  21. #define CHNGPSWD_USER_CANCELED 1001
  22. #define CHNGPSWD_NOERR noErr
  23. //
  24. //These are our UAM specific error codes.
  25. //
  26. enum
  27. {
  28. uamErr_InternalErr = 1000,
  29. uamErr_NoAFPVersion,
  30. uamErr_WrongClientErr,
  31. uamErr_ErrorMessageString,
  32. uamErr_DefaultExplanation,
  33. uamErr_PasswordExpirationMessage,
  34. uamErr_PasswordExpirationExplanation,
  35. uamErr_KeychainEntryExistsMessage,
  36. uamErr_KeychainEntryExistsExplanation,
  37. uamErr_PasswordMessage,
  38. uamErr_PasswordTooLongExplanation,
  39. uamErr_NoBlankPasswordsAllowed, //This is against Win2K Gold only
  40. uamErr_ExtendedCharsNotAllowed, //This is against Win2K Gold only
  41. uamErr_WARNINGMessage, //Displays "WARNING!" at the top
  42. uamErr_UsingWeakAuthentication, //For weak auth message
  43. uamErr_AuthenticationMessage,
  44. uamErr_AuthTooWeak
  45. };
  46. //
  47. //Prototypes for dialog routines live here.
  48. //
  49. void UAM_ReportError(OSStatus inError);
  50. void UAM_StandardAlert(SInt16 inMessageID, SInt32 inExplanation, SInt16* outSelectedItem);
  51. pascal Boolean UAM_ChangePwdDialogFilter(DialogRef inDialog, EventRecord *inEvent, SInt16 *inItem);
  52. OSStatus UAM_ChangePwd(UAMArgs *inUAMArgs);
  53. void UAM_ChangePasswordNotificationDlg(Int16 inDaysTillExpiration);