mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 11:56:26 +00:00
4f0b8d3db0
svn path=/branches/ntvdm/; revision=59241
80 lines
2 KiB
C
80 lines
2 KiB
C
#define WIN32_NO_STATUS
|
|
|
|
#include <stdarg.h>
|
|
#include <stdlib.h>
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
#include <wincon.h>
|
|
#include <winreg.h>
|
|
#include <wingdi.h>
|
|
#include <winnls.h>
|
|
#include <winsvc.h>
|
|
#include <winuser.h>
|
|
#include <userenv.h>
|
|
#include <winwlx.h>
|
|
#include <wine/debug.h>
|
|
|
|
#include "resource.h"
|
|
|
|
/* Values for GINA_CONTEXT.AutoLogonState */
|
|
#define AUTOLOGON_CHECK_REGISTRY 1
|
|
#define AUTOLOGON_ONCE 2
|
|
#define AUTOLOGON_DISABLED 3
|
|
|
|
typedef struct
|
|
{
|
|
HANDLE hWlx;
|
|
LPWSTR station;
|
|
PWLX_DISPATCH_VERSION_1_3 pWlxFuncs;
|
|
HANDLE hDllInstance;
|
|
HWND hStatusWindow;
|
|
DWORD AutoLogonState;
|
|
|
|
/* Informations to be filled during logon */
|
|
WCHAR UserName[256];
|
|
WCHAR Domain[256];
|
|
SYSTEMTIME LogonTime;
|
|
HANDLE UserToken;
|
|
PLUID pAuthenticationId;
|
|
PDWORD pdwOptions;
|
|
PWLX_MPR_NOTIFY_INFO pMprNotifyInfo;
|
|
PVOID *pProfile;
|
|
|
|
/* Current logo to display */
|
|
HBITMAP hBitmap;
|
|
} GINA_CONTEXT, *PGINA_CONTEXT;
|
|
|
|
extern HINSTANCE hDllInstance;
|
|
|
|
typedef BOOL (*PFGINA_INITIALIZE)(PGINA_CONTEXT);
|
|
typedef BOOL (*PFGINA_DISPLAYSTATUSMESSAGE)(PGINA_CONTEXT, HDESK, DWORD, PWSTR, PWSTR);
|
|
typedef BOOL (*PFGINA_REMOVESTATUSMESSAGE)(PGINA_CONTEXT);
|
|
typedef VOID (*PFGINA_DISPLAYSASNOTICE)(PGINA_CONTEXT);
|
|
typedef INT (*PFGINA_LOGGEDONSAS)(PGINA_CONTEXT, DWORD);
|
|
typedef INT (*PFGINA_LOGGEDOUTSAS)(PGINA_CONTEXT);
|
|
typedef INT (*PFGINA_LOCKEDSAS)(PGINA_CONTEXT);
|
|
typedef VOID (*PFGINA_DISPLAYLOCKEDNOTICE)(PGINA_CONTEXT);
|
|
|
|
typedef struct _GINA_UI
|
|
{
|
|
PFGINA_INITIALIZE Initialize;
|
|
PFGINA_DISPLAYSTATUSMESSAGE DisplayStatusMessage;
|
|
PFGINA_REMOVESTATUSMESSAGE RemoveStatusMessage;
|
|
PFGINA_DISPLAYSASNOTICE DisplaySASNotice;
|
|
PFGINA_LOGGEDONSAS LoggedOnSAS;
|
|
PFGINA_LOGGEDOUTSAS LoggedOutSAS;
|
|
PFGINA_LOCKEDSAS LockedSAS;
|
|
PFGINA_DISPLAYLOCKEDNOTICE DisplayLockedNotice;
|
|
} GINA_UI, *PGINA_UI;
|
|
|
|
/* msgina.c */
|
|
|
|
BOOL
|
|
DoLoginTasks(
|
|
IN OUT PGINA_CONTEXT pgContext,
|
|
IN PWSTR UserName,
|
|
IN PWSTR Domain,
|
|
IN PWSTR Password);
|
|
|
|
/* EOF */
|