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.

66 lines
1.8 KiB

  1. /*****************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /*****************************************************************/
  5. /*
  6. * prompt.hxx
  7. * Contains class definitions for PROMPT_AND_CONNECT class.
  8. *
  9. * History:
  10. * Yi-HsinS 10/1/91 Created
  11. * ChuckC 02/2/92 Minor cleanup
  12. * KeithMo 07-Aug-1992 Added HelpContext.
  13. */
  14. #ifndef _PROMPT_HXX_
  15. #define _PROMPT_HXX_
  16. /*************************************************************************
  17. NAME: PROMPT_AND_CONNECT
  18. SYNOPSIS: Pop up a dialog asking for the password to the resource and
  19. connect to the resource.
  20. INTERFACE: Connect() - Pop up a dialog, retrieve the password and
  21. connect to the resource.
  22. IsConnected() - return TRUE when connected and FALSE otherwise
  23. PARENT: BASE
  24. USES: NLS_STR
  25. HISTORY:
  26. Yi-HsinS 10/1/91 Created
  27. **************************************************************************/
  28. DLL_CLASS PROMPT_AND_CONNECT : public BASE
  29. {
  30. HWND _hwndParent;
  31. NLS_STR _nlsTarget;
  32. NLS_STR _nlsDev;
  33. BOOL _fConnected;
  34. UINT _npasswordLen;
  35. ULONG _nHelpContext;
  36. public:
  37. PROMPT_AND_CONNECT( HWND hwndParent,
  38. const TCHAR *pszTarget,
  39. ULONG nHelpContext,
  40. UINT npasswordLen = PWLEN,
  41. const TCHAR *pszDev = NULL );
  42. ~PROMPT_AND_CONNECT();
  43. APIERR Connect( void );
  44. BOOL IsConnected()
  45. { return _fConnected; }
  46. };
  47. #endif