home *** CD-ROM | disk | FTP | other *** search
- /*************************************************
- HTBPass.dll
-
- HtbPass.cpp
-
- Copyright TransEra Corporation 1999
- *************************************************/
- #include "stdafx.h"
- #include "HTBPass.h"
- #include "PasswordRun.h"
- #include "RegularRun.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- BEGIN_MESSAGE_MAP(CHTBPassApp, CWinApp)
- //{{AFX_MSG_MAP(CHTBPassApp)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- CHTBPassApp::CHTBPassApp()
- {
- }
-
- CHTBPassApp theApp;
-
-
- /////////////////////////////////////////////////////////////////////////////
- /*
- Function: Password
-
- Description: creates a password dialog box
-
- Return type: void
- Argument: char * UserName
- Argument: char * Password
-
- Notes: asks for user name and password, password will
- be hidden behind asterisks. This function returns
- two char * strings to basic containng the USERNAME
- and PASSWWORD.
-
- */
- void Password(char * UserName, char * Password)
- {
- PasswordRun Dlg;
- Dlg.DoModal();
- strcpy(UserName, Dlg.m_UserName);
- strcpy(Password, Dlg.m_Password);
-
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- /*
- Function: Dbox
-
- Description: creates password dialog box
-
- Return type: void
- Argument: char * UserName
- Argument: char * Password
-
- Notes: asks for username and password without hiding the
- password behind asterisks. This function returns
- two char * strings to basic containng the USERNAME
- and PASSWWORD.
-
- */
- void Dbox(char * UserName, char * Password)
- {
- RegularRun Dlg;
- Dlg.DoModal();
- strcpy(UserName, Dlg.m_rUserName);
- strcpy(Password, Dlg.m_rPassword);
- }
-