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.

49 lines
1.1 KiB

  1. /*****************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990 **/
  4. /*****************************************************************/
  5. // pswddlg.hxx
  6. // Jon Newman
  7. // 02 January 1991
  8. //
  9. // Password Prompt Dialog
  10. //
  11. // templated from browdlg.hxx by Rustan M. Leino
  12. //
  13. // File History:
  14. // jonn 3/14/91 Added device SLT
  15. // The Process() return code is a BLT dialog error or one of the following:
  16. #define PSWD_PROMPT_OK 0
  17. #define PSWD_PROMPT_CANCEL 1
  18. #define PSWD_PROMPT_ERROR 2
  19. class PSWD_PROMPT : public DIALOG_WINDOW
  20. {
  21. private:
  22. NLS_STR * _pnlsPasswordReturnBuffer;
  23. SLT _sltDevice;
  24. SLT _sltResource;
  25. SLT _sltDevicePrompt;
  26. PASSWORD_CONTROL _pctlPassword;
  27. protected:
  28. BOOL OnOK( void );
  29. BOOL OnCancel( void );
  30. ULONG QueryHelpContext( void );
  31. public:
  32. PSWD_PROMPT(
  33. HWND hwndOwner,
  34. const NLS_STR& nlsDevice,
  35. const NLS_STR& nlsResource,
  36. short sAsgType,
  37. NLS_STR * pnlsPasswordReturnBuffer );
  38. ~PSWD_PROMPT();
  39. }; // class BROWSE_DIALOG