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.

58 lines
1.3 KiB

  1. /****************************************************************************
  2. *
  3. * FILE: PassDlg.h
  4. *
  5. * CREATED: Chris Pirich (ChrisPi) 1-25-96
  6. *
  7. ****************************************************************************/
  8. #ifndef _PASSDLG_H_
  9. #define _PASSDLG_H_
  10. #include <cstring.hpp>
  11. class CPasswordDlg
  12. {
  13. protected:
  14. HWND m_hwndParent;
  15. HWND m_hwnd;
  16. CSTRING m_strConfName;
  17. CSTRING m_strPassword;
  18. CSTRING m_strCert;
  19. BOOL m_fRemoteIsRDS;
  20. static CSTRING *m_pstrUser;
  21. static CSTRING *m_pstrDomain;
  22. BOOL ProcessMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  23. // Handlers:
  24. BOOL OnOk();
  25. public:
  26. // Properties:
  27. LPCTSTR GetPassword() { return (LPCTSTR) m_strPassword; };
  28. // Methods:
  29. CPasswordDlg(HWND hwndParent, LPCTSTR pcszConfName, LPCTSTR pCertText, BOOL fIsService);
  30. // ~CPasswordDlg();
  31. INT_PTR DoModal();
  32. static INT_PTR CALLBACK PasswordDlgProc( HWND hDlg,
  33. UINT uMsg,
  34. WPARAM wParam,
  35. LPARAM lParam);
  36. static BOOL Init();
  37. static VOID Cleanup();
  38. };
  39. #endif // _PASSDLG_H_
  40.