ReactOS  0.4.15-dev-1377-ga59cecd
msgina.h
Go to the documentation of this file.
1 #ifndef _MSGINA_H
2 #define _MSGINA_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <stdarg.h>
9 #include <stdlib.h>
10 #include <tchar.h>
11 
12 #define WIN32_NO_STATUS
13 #define _INC_WINDOWS
14 #define COM_NO_WINDOWS_H
15 
16 #include <windef.h>
17 #include <winbase.h>
18 #include <winreg.h>
19 #include <winuser.h>
20 #include <winwlx.h>
21 #include <ndk/rtlfuncs.h>
22 #include <ntsecapi.h>
23 
24 #include <strsafe.h>
25 
26 #include <wine/debug.h>
28 
29 #include "resource.h"
30 
31 
32 typedef struct
33 {
46 
48 
49  /* Information to be filled during logon */
50  WCHAR UserName[256];
51  WCHAR DomainName[256];
60 
61 extern HINSTANCE hDllInstance;
62 
71 
72 typedef struct _GINA_UI
73 {
82 } GINA_UI, *PGINA_UI;
83 
84 /* lsa.c */
85 
88  PGINA_CONTEXT pgContext);
89 
94  LPWSTR lpszUsername,
99 
100 /* msgina.c */
101 
102 LONG
104  IN HKEY hKey,
105  IN LPCWSTR pszValue,
106  OUT LPWSTR *pValue);
107 
108 BOOL
110  IN PGINA_CONTEXT pgContext,
111  IN PWSTR UserName,
112  IN PWSTR Domain,
113  IN PWSTR Password);
114 
115 NTSTATUS
117  IN OUT PGINA_CONTEXT pgContext,
118  IN PWSTR UserName,
119  IN PWSTR Domain,
120  IN PWSTR Password,
122 
123 BOOL
125  IN OUT PGINA_CONTEXT pgContext,
126  IN PWSTR UserName,
127  IN PWSTR Domain,
128  IN PWSTR Password);
129 
130 /* shutdown.c */
131 
132 DWORD
134 
135 DWORD
137 
138 VOID
139 SaveShutdownSelState(DWORD ShutdownCode);
140 
141 DWORD
143 
144 DWORD
146 
147 INT_PTR
149  IN HWND hwndDlg,
150  IN DWORD ShutdownOptions,
151  IN PGINA_CONTEXT pgContext);
152 
153 
154 #ifdef __cplusplus
155 } // extern "C"
156 #endif
157 
158 #endif /* _MSGINA_H */
* PNTSTATUS
Definition: strlen.c:14
#define IN
Definition: typedefs.h:39
PFGINA_INITIALIZE Initialize
Definition: msgina.h:74
INT(* PFGINA_LOGGEDONSAS)(PGINA_CONTEXT, DWORD)
Definition: msgina.h:67
PFGINA_DISPLAYLOCKEDNOTICE DisplayLockedNotice
Definition: msgina.h:81
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
WINE_DEFAULT_DEBUG_CHANNEL(msgina)
INT(* PFGINA_LOCKEDSAS)(PGINA_CONTEXT)
Definition: msgina.h:69
uint16_t * PWSTR
Definition: typedefs.h:56
BOOL bDontDisplayLastUserName
Definition: msgina.h:43
PWCHAR pValue
LONG NTSTATUS
Definition: precomp.h:26
#define INT
Definition: polytest.cpp:20
BOOL bIgnoreShiftOverride
Definition: msgina.h:45
PWLX_DISPATCH_VERSION_1_3 pWlxFuncs
Definition: msgina.h:36
NTSTATUS DoLoginTasks(IN OUT PGINA_CONTEXT pgContext, IN PWSTR UserName, IN PWSTR Domain, IN PWSTR Password, OUT PNTSTATUS SubStatus)
Definition: msgina.c:752
_In_opt_ LPSTR _In_opt_ LPSTR lpszPassword
Definition: winbase.h:2674
DWORD GetDefaultShutdownOptions(VOID)
Definition: shutdown.c:382
PWLX_MPR_NOTIFY_INFO pMprNotifyInfo
Definition: msgina.h:57
BOOL(* PFGINA_DISPLAYSTATUSMESSAGE)(PGINA_CONTEXT, HDESK, DWORD, PWSTR, PWSTR)
Definition: msgina.h:64
int32_t INT_PTR
Definition: typedefs.h:64
#define BOOL
Definition: nt_native.h:43
HANDLE hDllInstance
Definition: msgina.h:37
#define DWORD
Definition: nt_native.h:44
struct GINA_CONTEXT * PGINA_CONTEXT
ULONG nShutdownAction
Definition: msgina.h:47
HANDLE LsaHandle
Definition: logon.c:17
PFGINA_LOCKEDSAS LockedSAS
Definition: msgina.h:80
struct _GINA_UI * PGINA_UI
_IRQL_requires_same_ _In_ PLSA_STRING _In_ SECURITY_LOGON_TYPE _In_ ULONG _In_ ULONG _In_opt_ PTOKEN_GROUPS _In_ PTOKEN_SOURCE _Out_ PVOID _Out_ PULONG _Inout_ PLUID _Out_ PHANDLE _Out_ PQUOTA_LIMITS _Out_ PNTSTATUS SubStatus
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
PFGINA_LOGGEDONSAS LoggedOnSAS
Definition: msgina.h:78
BOOL(* PFGINA_REMOVESTATUSMESSAGE)(PGINA_CONTEXT)
Definition: msgina.h:65
HANDLE LsaHandle
Definition: msgina.h:39
DWORD GetDefaultShutdownSelState(VOID)
Definition: shutdown.c:256
PFGINA_DISPLAYSTATUSMESSAGE DisplayStatusMessage
Definition: msgina.h:75
HWND hStatusWindow
Definition: msgina.h:38
LONG ReadRegSzValue(IN HKEY hKey, IN LPCWSTR pszValue, OUT LPWSTR *pValue)
Definition: msgina.c:60
NTSTATUS ConnectToLsa(PGINA_CONTEXT pgContext)
Definition: lsa.c:11
PFGINA_DISPLAYSASNOTICE DisplaySASNotice
Definition: msgina.h:77
__wchar_t WCHAR
Definition: xmlstorage.h:180
BOOL bShutdownWithoutLogon
Definition: msgina.h:44
struct _GINA_UI GINA_UI
SYSTEMTIME LogonTime
Definition: msgina.h:53
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD _In_ DWORD _Out_opt_ PHANDLE phToken
Definition: winbase.h:2674
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL CreateProfile(IN OUT PGINA_CONTEXT pgContext, IN PWSTR UserName, IN PWSTR Domain, IN PWSTR Password)
Definition: msgina.c:785
PFGINA_REMOVESTATUSMESSAGE RemoveStatusMessage
Definition: msgina.h:76
ULONG AuthenticationPackage
Definition: msgina.h:40
HINSTANCE hDllInstance
Definition: browser.c:17
BOOL(* PFGINA_INITIALIZE)(PGINA_CONTEXT)
Definition: msgina.h:63
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:454
#define VOID
Definition: acefi.h:82
ULONG AuthenticationPackage
Definition: logon.c:18
VOID(* PFGINA_DISPLAYSASNOTICE)(PGINA_CONTEXT)
Definition: msgina.h:66
VOID(* PFGINA_DISPLAYLOCKEDNOTICE)(PGINA_CONTEXT)
Definition: msgina.h:70
DWORD LoadShutdownSelState(VOID)
Definition: shutdown.c:262
PVOID * pProfile
Definition: msgina.h:58
LPWSTR station
Definition: msgina.h:35
HANDLE hWlx
Definition: msgina.h:34
BOOL bAutoAdminLogon
Definition: msgina.h:42
PFGINA_LOGGEDOUTSAS LoggedOutSAS
Definition: msgina.h:79
FxAutoRegKey hKey
INT_PTR ShutdownDialog(IN HWND hwndDlg, IN DWORD ShutdownOptions, IN PGINA_CONTEXT pgContext)
Definition: shutdown.c:678
HANDLE UserToken
Definition: msgina.h:54
PLUID pAuthenticationId
Definition: msgina.h:55
NTSTATUS MyLogonUser(HANDLE LsaHandle, ULONG AuthenticationPackage, LPWSTR lpszUsername, LPWSTR lpszDomain, LPWSTR lpszPassword, PHANDLE phToken, PNTSTATUS SubStatus)
Definition: lsa.c:55
_In_opt_ LPSTR lpszDomain
Definition: winbase.h:2674
BOOL DoAdminUnlock(IN PGINA_CONTEXT pgContext, IN PWSTR UserName, IN PWSTR Domain, IN PWSTR Password)
Definition: msgina.c:665
PDWORD pdwOptions
Definition: msgina.h:56
DWORD * PDWORD
Definition: pedump.c:68
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
VOID SaveShutdownSelState(DWORD ShutdownCode)
DWORD GetAllowedShutdownOptions(VOID)
Definition: shutdown.c:388
WCHAR * LPWSTR
Definition: xmlstorage.h:184
BOOL bDisableCAD
Definition: msgina.h:41
INT(* PFGINA_LOGGEDOUTSAS)(PGINA_CONTEXT)
Definition: msgina.h:68