[MSGINA]
[reactos.git] / reactos / dll / win32 / msgina / msgina.h
1 #ifndef _MSGINA_H
2 #define _MSGINA_H
3
4 #define WIN32_NO_STATUS
5
6 #include <stdarg.h>
7 #include <stdlib.h>
8 #include <windef.h>
9 #include <winbase.h>
10 #include <wincon.h>
11 #include <winreg.h>
12 #include <wingdi.h>
13 #include <winnls.h>
14 #include <winsvc.h>
15 #include <winuser.h>
16 #include <userenv.h>
17 #include <winwlx.h>
18 #include <ndk/obfuncs.h>
19 #include <ndk/rtlfuncs.h>
20 #include <ndk/sefuncs.h>
21 #include <ntlsa.h>
22 #include <ntsecapi.h>
23
24 #include <wine/debug.h>
25 WINE_DEFAULT_DEBUG_CHANNEL(msgina);
26
27 #include "resource.h"
28
29 /* Values for GINA_CONTEXT.AutoLogonState */
30 #define AUTOLOGON_CHECK_REGISTRY 1
31 #define AUTOLOGON_ONCE 2
32 #define AUTOLOGON_DISABLED 3
33
34 typedef struct
35 {
36 HANDLE hWlx;
37 LPWSTR station;
38 PWLX_DISPATCH_VERSION_1_3 pWlxFuncs;
39 HANDLE hDllInstance;
40 HWND hStatusWindow;
41 DWORD AutoLogonState;
42 BOOL bDisableCAD;
43 BOOL bAutoAdminLogon;
44 BOOL bDontDisplayLastUserName;
45 BOOL bShutdownWithoutLogon;
46
47 /* Information to be filled during logon */
48 WCHAR UserName[256];
49 WCHAR Domain[256];
50 LPWSTR Password;
51 SYSTEMTIME LogonTime;
52 HANDLE UserToken;
53 PLUID pAuthenticationId;
54 PDWORD pdwOptions;
55 PWLX_MPR_NOTIFY_INFO pMprNotifyInfo;
56 PVOID *pProfile;
57
58 /* Current logo to display */
59 HBITMAP hBitmap;
60 } GINA_CONTEXT, *PGINA_CONTEXT;
61
62 extern HINSTANCE hDllInstance;
63
64 typedef BOOL (*PFGINA_INITIALIZE)(PGINA_CONTEXT);
65 typedef BOOL (*PFGINA_DISPLAYSTATUSMESSAGE)(PGINA_CONTEXT, HDESK, DWORD, PWSTR, PWSTR);
66 typedef BOOL (*PFGINA_REMOVESTATUSMESSAGE)(PGINA_CONTEXT);
67 typedef VOID (*PFGINA_DISPLAYSASNOTICE)(PGINA_CONTEXT);
68 typedef INT (*PFGINA_LOGGEDONSAS)(PGINA_CONTEXT, DWORD);
69 typedef INT (*PFGINA_LOGGEDOUTSAS)(PGINA_CONTEXT);
70 typedef INT (*PFGINA_LOCKEDSAS)(PGINA_CONTEXT);
71 typedef VOID (*PFGINA_DISPLAYLOCKEDNOTICE)(PGINA_CONTEXT);
72
73 typedef struct _GINA_UI
74 {
75 PFGINA_INITIALIZE Initialize;
76 PFGINA_DISPLAYSTATUSMESSAGE DisplayStatusMessage;
77 PFGINA_REMOVESTATUSMESSAGE RemoveStatusMessage;
78 PFGINA_DISPLAYSASNOTICE DisplaySASNotice;
79 PFGINA_LOGGEDONSAS LoggedOnSAS;
80 PFGINA_LOGGEDOUTSAS LoggedOutSAS;
81 PFGINA_LOCKEDSAS LockedSAS;
82 PFGINA_DISPLAYLOCKEDNOTICE DisplayLockedNotice;
83 } GINA_UI, *PGINA_UI;
84
85 /* msgina.c */
86
87 BOOL
88 DoAdminUnlock(
89 IN PWSTR UserName,
90 IN PWSTR Domain,
91 IN PWSTR Password);
92
93 BOOL
94 DoLoginTasks(
95 IN OUT PGINA_CONTEXT pgContext,
96 IN PWSTR UserName,
97 IN PWSTR Domain,
98 IN PWSTR Password);
99
100 #endif /* _MSGINA_H */
101
102 /* EOF */