Click here to Skip to main content
15,896,444 members
Articles / Programming Languages / C++

Winlogon using Mobile Disk

Rate me:
Please Sign up or sign in to vote.
4.83/5 (25 votes)
30 Nov 2007CPOL6 min read 136.7K   2.6K   89  
This is a full set of applications that can be used to logon to Windows system using mobile disk. No password typing.
#if !defined(AFX_GETUSERINFODLG_H__A4C44E4F_8057_4919_9870_1FC968EBC2ED__INCLUDED_)
#define AFX_GETUSERINFODLG_H__A4C44E4F_8057_4919_9870_1FC968EBC2ED__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GetUserInfoDlg.h : header file
//


/////////////////////////////////////////////////////////////////////////////
// CGetUserInfoDlg dialog

class CGetUserInfoDlg : public CDialog
{
// Construction
public:
	CString m_szName;
	void PopulateDriveCombo();
	UINT m_nDrive;
	CString m_szUserName;
	CString m_szPassword;
	CString m_szDomain;
	//UINT m_nLogonType;

	CGetUserInfoDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(GetUserInfoDlg)
	enum { IDD = IDD_GET_INFO_DIALOG };
	CComboBox	m_DriveCombo;
	int		m_nDriveIndex;
	int		m_nLogonType;
	CString	m_szKey;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(GetUserInfoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(GetUserInfoDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnSelchangeUserTypeCombo();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void GetLogonInfo();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GETUSERINFODLG_H__A4C44E4F_8057_4919_9870_1FC968EBC2ED__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Microsoft
United States United States
Have completed BSc in Computer Science & Engineering from Shah Jalal University of Science & Technology, Sylhet, Bangladesh (SUST).

Story books (specially Masud Rana series), tourism, songs and programming is most favorite.

Blog:
Maruf Notes
http://blog.kuashaonline.com

Comments and Discussions