#include "msgina.h"
#include <wincon.h>
Go to the source code of this file.
◆ DisplayResourceText()
Definition at line 65 of file tui.c.
68{
72
79 {
81 }
82 if (AddNewLine)
83 {
88 {
90 }
91 }
93}
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
static HINSTANCE hDllInstance
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleW(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
GLuint GLuint GLsizei count
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define STD_OUTPUT_HANDLE
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
Referenced by ReadString(), TUIDisplaySASNotice(), and TUILockedSAS().
◆ ReadString()
Definition at line 127 of file tui.c.
132{
135
138
141
144
146 for (;;)
147 {
151 if (readChar == '\r' || readChar == '\n')
152 {
153
154 charToDisplay[0] =
L'\n';
157 charToDisplay,
161 break;
162 }
163 if (ShowString)
164 {
165
166 charToDisplay[0] = readChar;
169 charToDisplay,
173 }
175
177
178 }
180
181 if (!ShowString)
182 {
183
188 newLine,
192 }
194}
BOOL WINAPI FlushConsoleInputBuffer(IN HANDLE hConsoleInput)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode)
BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleW(IN HANDLE hConsoleInput, OUT LPVOID lpBuffer, IN DWORD nNumberOfCharsToRead, OUT LPDWORD lpNumberOfCharsRead, IN PCONSOLE_READCONSOLE_CONTROL pInputControl OPTIONAL)
static BOOL DisplayResourceText(IN UINT uIdResourceText, IN BOOL AddNewLine)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define UNREFERENCED_PARAMETER(P)
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Referenced by TUILockedSAS(), and TUILoggedOutSAS().
◆ TUIDisplayLockedNotice()
◆ TUIDisplaySASNotice()
Definition at line 96 of file tui.c.
98{
99 TRACE(
"TUIDisplaySASNotice()\n");
100
102
105}
#define IDS_PRESSCTRLALTDELETE
◆ TUIDisplayStatusMessage()
Definition at line 22 of file tui.c.
28{
31
32 TRACE(
"TUIDisplayStatusMessage(%ws)\n", pMessage);
33
38
39 return
42 pMessage,
48 newLine,
52}
◆ TUIInitialize()
Definition at line 13 of file tui.c.
15{
16 TRACE(
"TUIInitialize(%p)\n", pgContext);
17
19}
BOOL WINAPI AllocConsole(VOID)
◆ TUILockedSAS()
Definition at line 224 of file tui.c.
226{
232
233 TRACE(
"TUILockedSAS()\n");
234
236
239
240
245
248 {
249 WARN(
"ConnectToLsa() failed\n");
251 }
252
254 pgContext->AuthenticationPackage,
255 UserName,
258 &hToken,
261 {
262 WARN(
"MyLogonUser() failed\n");
264 }
265
268}
#define NT_SUCCESS(StatCode)
NTSTATUS MyLogonUser(HANDLE LsaHandle, ULONG AuthenticationPackage, LPWSTR lpszUsername, LPWSTR lpszDomain, LPWSTR lpszPassword, PHANDLE phToken, PNTSTATUS SubStatus)
NTSTATUS ConnectToLsa(PGINA_CONTEXT pgContext)
#define IDS_ASKFORPASSWORD
static BOOL ReadString(IN UINT uIdResourcePrompt, IN OUT PWSTR Buffer, IN DWORD BufferLength, IN BOOL ShowString)
_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
#define WLX_SAS_ACTION_NONE
#define WLX_SAS_ACTION_UNLOCK_WKSTA
◆ TUILoggedOnSAS()
Definition at line 108 of file tui.c.
111{
112 TRACE(
"TUILoggedOnSAS()\n");
113
115
117 {
118
120 }
121
122 FIXME(
"FIXME: TUILoggedOnSAS(): Let's suppose the user wants to log off...\n");
124}
#define WLX_SAS_TYPE_CTRL_ALT_DEL
#define WLX_SAS_ACTION_LOGOFF
◆ TUILoggedOutSAS()
Definition at line 197 of file tui.c.
199{
204
205 TRACE(
"TUILoggedOutSAS()\n");
206
207
212
215 {
218 }
219
221}
BOOL CreateProfile(IN OUT PGINA_CONTEXT pgContext, IN PWSTR UserName, IN PWSTR Domain, IN PWSTR Password)
NTSTATUS DoLoginTasks(IN OUT PGINA_CONTEXT pgContext, IN PWSTR UserName, IN PWSTR Domain, IN PWSTR Password, OUT PNTSTATUS SubStatus)
#define WLX_SAS_ACTION_LOGON
◆ TUIRemoveStatusMessage()
Definition at line 55 of file tui.c.
◆ GinaTextUI
Initial value:= {
}
static BOOL TUIDisplayStatusMessage(IN PGINA_CONTEXT pgContext, IN HDESK hDesktop, IN DWORD dwOptions, IN PWSTR pTitle, IN PWSTR pMessage)
static INT TUILoggedOutSAS(IN OUT PGINA_CONTEXT pgContext)
static VOID TUIDisplaySASNotice(IN OUT PGINA_CONTEXT pgContext)
static VOID TUIDisplayLockedNotice(IN OUT PGINA_CONTEXT pgContext)
static INT TUILockedSAS(IN OUT PGINA_CONTEXT pgContext)
static INT TUILoggedOnSAS(IN OUT PGINA_CONTEXT pgContext, IN DWORD dwSasType)
static BOOL TUIInitialize(IN OUT PGINA_CONTEXT pgContext)
static BOOL TUIRemoveStatusMessage(IN PGINA_CONTEXT pgContext)
Definition at line 276 of file tui.c.
Referenced by ChooseGinaUI().