Click here to Skip to main content
15,891,704 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.6K   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.
//GinaFuncs.h

#ifndef _GINA_FUNCS_H_INCLUDED_
#define _GINA_FUNCS_H_INCLUDED_

//#define PWLX_DISPATCH_VERSION_1_1

/*BOOL WlxNegotiate(
  DWORD dwWinLogonVersion,
  PDWORD pdwDllVersion
);
*/

typedef struct _USER_ACCOUNT {
    struct _MiniAccount *   pNext;
    LPSTR                  lpUsername;
    LPSTR                  lpDomain;
    LPSTR                  lpPassword;
    LPSTR                  lpComment;
    DWORD                   IconId;
    DWORD                   Flags;
} USER_ACCOUNT, * PUSER_ACCOUNT;

int CALLBACK UpdateWindowsUserDlgProc(
    HWND    hDlg,
    UINT    Message,
    WPARAM  wParam,
    LPARAM  lParam);


typedef struct _GINA_CONTEXT {
	HANDLE					hDllInstance;
	PWLX_DISPATCH_VERSION_1_1 pWlxFuncs;
	HANDLE					hWlx;
	LPWSTR					station;
    BOOL                    bAllowNewUser;
    BOOL                    bAutoLogonAtBoot;
    BOOL                    bAutoLogonAlways;
    HANDLE                  hUserToken;
    PUSER_ACCOUNT           pUserAccount;
} GINA_CONTEXT, * PGINA_CONTEXT;



int CALLBACK DisplaySASNoticeDlgProc(
    HWND    hDlg,
    UINT    Message,
    WPARAM  wParam,
    LPARAM  lParam);

int CALLBACK MessageDlgProc(
    HWND    hDlg,
    UINT    Message,
    WPARAM  wParam,
    LPARAM  lParam);


#endif

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