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.

54 lines
1.4 KiB

  1. #ifndef _NEWCONDLG_H_
  2. #define _NEWCONDLG_H_
  3. //
  4. // New connection dialog
  5. //
  6. class CNewConDlg
  7. {
  8. private:
  9. HWND m_hWnd;
  10. HINSTANCE m_hInst;
  11. //private methods
  12. private:
  13. // static void PopContextHelp(LPARAM);
  14. BOOL m_bSavePassword;
  15. BOOL m_bConnectToConsole;
  16. TCHAR m_szServer[MAX_PATH];
  17. TCHAR m_szDescription[MAX_PATH];
  18. TCHAR m_szUserName[CL_MAX_USERNAME_LENGTH];
  19. TCHAR m_szPassword[CL_MAX_PASSWORD_LENGTH_BYTES/sizeof(TCHAR)];
  20. TCHAR m_szDomain[CL_MAX_DOMAIN_LENGTH];
  21. public:
  22. CNewConDlg(HWND hWndOwner, HINSTANCE hInst);
  23. ~CNewConDlg();
  24. INT_PTR DoModal();
  25. static CNewConDlg* m_pThis;
  26. static INT_PTR APIENTRY StaticDlgProc(HWND, UINT, WPARAM, LPARAM);
  27. INT_PTR DlgProc(HWND, UINT, WPARAM, LPARAM);
  28. LPTSTR GetServer() {return m_szServer;}
  29. LPTSTR GetDescription() {return m_szDescription;}
  30. LPTSTR GetUserName() {return m_szUserName;}
  31. LPTSTR GetPassword() {return m_szPassword;}
  32. LPTSTR GetDomain() {return m_szDomain;}
  33. BOOL GetSavePassword() {return m_bSavePassword;}
  34. BOOL GetPasswordSpecified();
  35. BOOL GetConnectToConsole() {return m_bConnectToConsole;}
  36. private:
  37. void ZeroPasswordMemory() {
  38. SecureZeroMemory(m_szPassword, sizeof(m_szPassword));
  39. }
  40. };
  41. #endif // _NEWCONDLG_H_