ReactOS 0.4.15-dev-8241-g63935f8
msgina.h
Go to the documentation of this file.
1#ifndef _MSGINA_H
2#define _MSGINA_H
3
4#ifdef __cplusplus
5extern "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
32typedef struct
33{
46
48
49 /* Information to be filled during logon */
50 WCHAR UserName[256];
51 WCHAR DomainName[256];
60
62
71
72typedef struct _GINA_UI
73{
83
84/* lsa.c */
85
88 PGINA_CONTEXT pgContext);
89
94 LPWSTR lpszUsername,
99
100/* msgina.c */
101
102LONG
104 IN HKEY hKey,
105 IN LPCWSTR pszValue,
106 OUT LPWSTR *pValue);
107
108BOOL
110 IN PGINA_CONTEXT pgContext,
111 IN PWSTR UserName,
112 IN PWSTR Domain,
114
117 IN OUT PGINA_CONTEXT pgContext,
118 IN PWSTR UserName,
119 IN PWSTR Domain,
122
123BOOL
125 IN OUT PGINA_CONTEXT pgContext,
126 IN PWSTR UserName,
127 IN PWSTR Domain,
129
130/* shutdown.c */
131
132DWORD
134
135DWORD
137
138VOID
140
141DWORD
143
144DWORD
146
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 */
#define VOID
Definition: acefi.h:82
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
LONG NTSTATUS
Definition: precomp.h:26
HANDLE LsaHandle
Definition: wkssvc.c:41
ULONG AuthenticationPackage
Definition: logon.c:18
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
FxAutoRegKey hKey
PWCHAR pValue
* PNTSTATUS
Definition: strlen.c:14
DWORD GetAllowedShutdownOptions(VOID)
Definition: shutdown.c:783
VOID SaveShutdownSelState(DWORD ShutdownCode)
DWORD LoadShutdownSelState(VOID)
Definition: shutdown.c:441
INT(* PFGINA_LOGGEDONSAS)(PGINA_CONTEXT, DWORD)
Definition: msgina.h:67
struct _GINA_UI GINA_UI
INT(* PFGINA_LOGGEDOUTSAS)(PGINA_CONTEXT)
Definition: msgina.h:68
LONG ReadRegSzValue(IN HKEY hKey, IN LPCWSTR pszValue, OUT LPWSTR *pValue)
Definition: msgina.c:60
VOID(* PFGINA_DISPLAYSASNOTICE)(PGINA_CONTEXT)
Definition: msgina.h:66
INT(* PFGINA_LOCKEDSAS)(PGINA_CONTEXT)
Definition: msgina.h:69
NTSTATUS MyLogonUser(HANDLE LsaHandle, ULONG AuthenticationPackage, LPWSTR lpszUsername, LPWSTR lpszDomain, LPWSTR lpszPassword, PHANDLE phToken, PNTSTATUS SubStatus)
Definition: lsa.c:55
BOOL CreateProfile(IN OUT PGINA_CONTEXT pgContext, IN PWSTR UserName, IN PWSTR Domain, IN PWSTR Password)
Definition: msgina.c:785
BOOL(* PFGINA_INITIALIZE)(PGINA_CONTEXT)
Definition: msgina.h:63
DWORD GetDefaultShutdownSelState(VOID)
Definition: shutdown.c:435
NTSTATUS ConnectToLsa(PGINA_CONTEXT pgContext)
Definition: lsa.c:11
INT_PTR ShutdownDialog(IN HWND hwndDlg, IN DWORD ShutdownOptions, IN PGINA_CONTEXT pgContext)
Definition: shutdown.c:1149
struct _GINA_UI * PGINA_UI
BOOL(* PFGINA_REMOVESTATUSMESSAGE)(PGINA_CONTEXT)
Definition: msgina.h:65
BOOL(* PFGINA_DISPLAYSTATUSMESSAGE)(PGINA_CONTEXT, HDESK, DWORD, PWSTR, PWSTR)
Definition: msgina.h:64
DWORD GetDefaultShutdownOptions(VOID)
Definition: shutdown.c:777
BOOL DoAdminUnlock(IN PGINA_CONTEXT pgContext, IN PWSTR UserName, IN PWSTR Domain, IN PWSTR Password)
Definition: msgina.c:665
struct GINA_CONTEXT * PGINA_CONTEXT
NTSTATUS DoLoginTasks(IN OUT PGINA_CONTEXT pgContext, IN PWSTR UserName, IN PWSTR Domain, IN PWSTR Password, OUT PNTSTATUS SubStatus)
Definition: msgina.c:752
VOID(* PFGINA_DISPLAYLOCKEDNOTICE)(PGINA_CONTEXT)
Definition: msgina.h:70
HINSTANCE hDllInstance
Definition: browser.c:17
#define BOOL
Definition: nt_native.h:43
#define DWORD
Definition: nt_native.h:44
_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
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
DWORD * PDWORD
Definition: pedump.c:68
long LONG
Definition: pedump.c:60
#define INT
Definition: polytest.cpp:20
BOOL bAutoAdminLogon
Definition: msgina.h:42
HANDLE LsaHandle
Definition: msgina.h:39
LPWSTR station
Definition: msgina.h:35
PLUID pAuthenticationId
Definition: msgina.h:55
BOOL bIgnoreShiftOverride
Definition: msgina.h:45
SYSTEMTIME LogonTime
Definition: msgina.h:53
BOOL bDontDisplayLastUserName
Definition: msgina.h:43
BOOL bShutdownWithoutLogon
Definition: msgina.h:44
HANDLE UserToken
Definition: msgina.h:54
BOOL bDisableCAD
Definition: msgina.h:41
HWND hStatusWindow
Definition: msgina.h:38
ULONG AuthenticationPackage
Definition: msgina.h:40
ULONG nShutdownAction
Definition: msgina.h:47
PVOID * pProfile
Definition: msgina.h:58
HANDLE hWlx
Definition: msgina.h:34
PWLX_MPR_NOTIFY_INFO pMprNotifyInfo
Definition: msgina.h:57
HANDLE hDllInstance
Definition: msgina.h:37
PWLX_DISPATCH_VERSION_1_3 pWlxFuncs
Definition: msgina.h:36
PDWORD pdwOptions
Definition: msgina.h:56
PFGINA_LOGGEDOUTSAS LoggedOutSAS
Definition: msgina.h:79
PFGINA_LOCKEDSAS LockedSAS
Definition: msgina.h:80
PFGINA_DISPLAYLOCKEDNOTICE DisplayLockedNotice
Definition: msgina.h:81
PFGINA_DISPLAYSASNOTICE DisplaySASNotice
Definition: msgina.h:77
PFGINA_LOGGEDONSAS LoggedOnSAS
Definition: msgina.h:78
PFGINA_REMOVESTATUSMESSAGE RemoveStatusMessage
Definition: msgina.h:76
PFGINA_DISPLAYSTATUSMESSAGE DisplayStatusMessage
Definition: msgina.h:75
PFGINA_INITIALIZE Initialize
Definition: msgina.h:74
@ Password
Definition: telnetd.h:65
uint16_t * PWSTR
Definition: typedefs.h:56
int32_t INT_PTR
Definition: typedefs.h:64
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD _In_ DWORD _Out_opt_ PHANDLE phToken
Definition: winbase.h:2715
_In_opt_ LPSTR _In_opt_ LPSTR lpszPassword
Definition: winbase.h:2712
_In_opt_ LPSTR lpszDomain
Definition: winbase.h:2711
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185