2003-12-01 18:21:04 +00:00
|
|
|
/*
|
|
|
|
* ReactOS kernel
|
|
|
|
* Copyright (C) 2003 ReactOS Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2003-12-01 18:21:04 +00:00
|
|
|
*/
|
2006-09-26 19:18:02 +00:00
|
|
|
/* COPYRIGHT: See COPYING in the top level directory
|
2003-12-01 18:21:04 +00:00
|
|
|
* PROJECT: ReactOS winlogon
|
2015-09-18 10:13:50 +00:00
|
|
|
* FILE: base/system/winlogon/winlogon.h
|
2003-12-01 18:21:04 +00:00
|
|
|
* PURPOSE: Winlogon
|
2005-05-08 04:07:56 +00:00
|
|
|
* PROGRAMMER:
|
2003-12-01 18:21:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINLOGON_MAIN_H__
|
|
|
|
#define __WINLOGON_MAIN_H__
|
|
|
|
|
2006-09-10 02:22:12 +00:00
|
|
|
#define USE_GETLASTINPUTINFO
|
2006-09-09 17:10:42 +00:00
|
|
|
|
2022-09-30 18:40:43 +00:00
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
/* PSDK/NDK Headers */
|
2005-10-19 17:03:38 +00:00
|
|
|
#define WIN32_NO_STATUS
|
2014-01-13 13:16:29 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
#include <winreg.h>
|
2005-04-01 05:04:40 +00:00
|
|
|
#include <winwlx.h>
|
2014-01-13 13:16:29 +00:00
|
|
|
#include <ndk/rtlfuncs.h>
|
|
|
|
#include <ndk/exfuncs.h>
|
2011-10-22 18:28:05 +00:00
|
|
|
#include <strsafe.h>
|
2005-06-20 22:19:18 +00:00
|
|
|
|
2022-09-30 18:40:43 +00:00
|
|
|
/* PSEH for SEH Support */
|
|
|
|
#include <pseh/pseh2.h>
|
|
|
|
|
2011-02-18 20:16:43 +00:00
|
|
|
#include <reactos/undocuser.h>
|
2018-09-14 06:15:08 +00:00
|
|
|
#include <reactos/undocmpr.h>
|
2005-06-20 22:19:18 +00:00
|
|
|
|
2018-07-16 23:44:00 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
SetWindowStationUser(
|
|
|
|
IN HWINSTA hWindowStation,
|
|
|
|
IN PLUID pluid,
|
|
|
|
IN PSID psid OPTIONAL,
|
|
|
|
IN DWORD size);
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <wine/debug.h>
|
2014-01-04 11:00:22 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(winlogon);
|
2013-01-24 23:00:42 +00:00
|
|
|
|
2005-06-20 22:19:18 +00:00
|
|
|
#include "resource.h"
|
2003-12-01 18:21:04 +00:00
|
|
|
|
|
|
|
typedef BOOL (WINAPI * PFWLXNEGOTIATE) (DWORD, DWORD *);
|
|
|
|
typedef BOOL (WINAPI * PFWLXINITIALIZE) (LPWSTR, HANDLE, PVOID, PVOID, PVOID *);
|
|
|
|
typedef VOID (WINAPI * PFWLXDISPLAYSASNOTICE) (PVOID);
|
|
|
|
typedef int (WINAPI * PFWLXLOGGEDOUTSAS) (PVOID, DWORD, PLUID, PSID, PDWORD,
|
2005-05-08 04:07:56 +00:00
|
|
|
PHANDLE, PWLX_MPR_NOTIFY_INFO,
|
2003-12-01 18:21:04 +00:00
|
|
|
PVOID *);
|
|
|
|
typedef BOOL (WINAPI * PFWLXACTIVATEUSERSHELL) (PVOID, PWSTR, PWSTR, PVOID);
|
|
|
|
typedef int (WINAPI * PFWLXLOGGEDONSAS) (PVOID, DWORD, PVOID);
|
|
|
|
typedef VOID (WINAPI * PFWLXDISPLAYLOCKEDNOTICE) (PVOID);
|
|
|
|
typedef int (WINAPI * PFWLXWKSTALOCKEDSAS) (PVOID, DWORD);
|
|
|
|
typedef BOOL (WINAPI * PFWLXISLOCKOK) (PVOID);
|
|
|
|
typedef BOOL (WINAPI * PFWLXISLOGOFFOK) (PVOID);
|
|
|
|
typedef VOID (WINAPI * PFWLXLOGOFF) (PVOID);
|
|
|
|
typedef VOID (WINAPI * PFWLXSHUTDOWN) (PVOID, DWORD);
|
|
|
|
|
|
|
|
/* version 1.1 */
|
|
|
|
|
|
|
|
typedef BOOL (WINAPI * PFWLXSCREENSAVERNOTIFY) (PVOID, BOOL *);
|
|
|
|
typedef BOOL (WINAPI * PFWLXSTARTAPPLICATION) (PVOID, PWSTR, PVOID, PWSTR);
|
|
|
|
|
|
|
|
/* version 1.3 */
|
|
|
|
|
|
|
|
typedef BOOL (WINAPI * PFWLXNETWORKPROVIDERLOAD) (PVOID, PWLX_MPR_NOTIFY_INFO);
|
|
|
|
typedef BOOL (WINAPI * PFWLXDISPLAYSTATUSMESSAGE) (PVOID, HDESK, DWORD, PWSTR, PWSTR);
|
|
|
|
typedef BOOL (WINAPI * PFWLXGETSTATUSMESSAGE) (PVOID, DWORD *, PWSTR, DWORD);
|
|
|
|
typedef BOOL (WINAPI * PFWLXREMOVESTATUSMESSAGE) (PVOID);
|
|
|
|
|
2006-08-04 11:37:18 +00:00
|
|
|
typedef struct _GINAFUNCTIONS
|
2003-12-01 18:21:04 +00:00
|
|
|
{
|
2013-03-02 20:30:36 +00:00
|
|
|
/* Functions always available for a valid GINA */
|
|
|
|
PFWLXNEGOTIATE WlxNegotiate; /* optional */
|
|
|
|
PFWLXINITIALIZE WlxInitialize;
|
|
|
|
|
|
|
|
/* Functions available if WlxVersion >= WLX_VERSION_1_0 (MS Windows 3.5.0) */
|
|
|
|
PFWLXDISPLAYSASNOTICE WlxDisplaySASNotice;
|
|
|
|
PFWLXLOGGEDOUTSAS WlxLoggedOutSAS;
|
|
|
|
PFWLXACTIVATEUSERSHELL WlxActivateUserShell;
|
|
|
|
PFWLXLOGGEDONSAS WlxLoggedOnSAS;
|
|
|
|
PFWLXDISPLAYLOCKEDNOTICE WlxDisplayLockedNotice;
|
|
|
|
PFWLXWKSTALOCKEDSAS WlxWkstaLockedSAS;
|
|
|
|
PFWLXISLOCKOK WlxIsLockOk;
|
|
|
|
PFWLXISLOGOFFOK WlxIsLogoffOk;
|
|
|
|
PFWLXLOGOFF WlxLogoff;
|
|
|
|
PFWLXSHUTDOWN WlxShutdown;
|
|
|
|
|
|
|
|
/* Functions available if WlxVersion >= WLX_VERSION_1_1 (MS Windows 3.5.1) */
|
|
|
|
PFWLXSCREENSAVERNOTIFY WlxScreenSaverNotify; /* optional */
|
|
|
|
PFWLXSTARTAPPLICATION WlxStartApplication; /* optional */
|
|
|
|
|
|
|
|
/* Functions available if WlxVersion >= WLX_VERSION_1_2 (MS Windows NT 4.0) */
|
|
|
|
|
|
|
|
/* Functions available if WlxVersion >= WLX_VERSION_1_3 (MS Windows 2000) */
|
|
|
|
PFWLXNETWORKPROVIDERLOAD WlxNetworkProviderLoad; /* not called ATM */
|
|
|
|
PFWLXDISPLAYSTATUSMESSAGE WlxDisplayStatusMessage;
|
|
|
|
PFWLXGETSTATUSMESSAGE WlxGetStatusMessage; /* doesn't need to be called */
|
|
|
|
PFWLXREMOVESTATUSMESSAGE WlxRemoveStatusMessage;
|
|
|
|
|
|
|
|
/* Functions available if WlxVersion >= WLX_VERSION_1_4 (MS Windows XP) */
|
2006-08-04 11:37:18 +00:00
|
|
|
} GINAFUNCTIONS, *PGINAFUNCTIONS;
|
2003-12-01 18:21:04 +00:00
|
|
|
|
2006-08-04 11:37:18 +00:00
|
|
|
typedef struct _GINAINSTANCE
|
2003-12-01 18:21:04 +00:00
|
|
|
{
|
2013-03-02 20:30:36 +00:00
|
|
|
HMODULE hDllInstance;
|
|
|
|
GINAFUNCTIONS Functions;
|
|
|
|
PVOID Context;
|
|
|
|
DWORD Version;
|
|
|
|
BOOL UseCtrlAltDelete;
|
2006-08-04 11:37:18 +00:00
|
|
|
} GINAINSTANCE, *PGINAINSTANCE;
|
2003-12-01 18:21:04 +00:00
|
|
|
|
2013-03-02 11:58:26 +00:00
|
|
|
|
|
|
|
/*
|
2013-03-02 12:28:51 +00:00
|
|
|
* The picture Microsoft is trying to paint here
|
|
|
|
* (http://msdn.microsoft.com/en-us/library/windows/desktop/aa380547%28v=vs.85%29.aspx)
|
2013-03-02 11:58:26 +00:00
|
|
|
* about the Winlogon states is a little too simple.
|
|
|
|
*
|
|
|
|
* The real picture should look more like this:
|
2021-09-13 01:33:14 +00:00
|
|
|
*
|
2013-03-02 11:58:26 +00:00
|
|
|
* STATE_INIT
|
2016-11-05 14:55:55 +00:00
|
|
|
* Initial state. Required for session initialization. After initialization,
|
2013-03-02 11:58:26 +00:00
|
|
|
* the state will automatically change to STATE_LOGGED_OFF.
|
|
|
|
*
|
|
|
|
* STATE_LOGGED_OFF
|
2013-03-02 12:28:51 +00:00
|
|
|
* User is logged off. Winlogon shows the "Press Ctrl-Alt-Del for logon"
|
2013-03-02 11:58:26 +00:00
|
|
|
* dialog. The state changes to STATE_LOGGED_OFF_SAS when the user presses
|
|
|
|
* "Ctrl-Alt-Del". If DisableCAD is true, the state will automatically
|
|
|
|
* change to STATE_LOGGED_OFF_SAS without showing the dialog.
|
|
|
|
*
|
|
|
|
* STATE_LOGGED_OFF_SAS
|
2013-03-02 12:28:51 +00:00
|
|
|
* State shows the logon dialog. Entering the right credentials and pressing
|
|
|
|
* "OK" changes the state to STATE_LOGGED_ON. Pressing "Cancel" or a timeout
|
2013-03-02 11:58:26 +00:00
|
|
|
* changes the state back to STATE_LOGGED_OFF.
|
|
|
|
*
|
|
|
|
* STATE_LOGGED_ON
|
|
|
|
* User is logged on. Winlogon does not show any dialog. Pressing
|
|
|
|
* "Ctrl-Alt-Del" changes the state to STATE_LOGGED_ON_SAS and user
|
|
|
|
* inactivity changes the state to STATE_SCREENSAVER.
|
|
|
|
*
|
|
|
|
* STATE_LOGGED_ON_SAS
|
|
|
|
* Winlogon shows the security dialog. Pressing "Cancel" or "Task Manager"
|
2013-03-02 12:28:51 +00:00
|
|
|
* or a timeout change the state back to STATE_LOGGED_ON. Pressing "Change
|
2013-03-02 11:58:26 +00:00
|
|
|
* Password" does not change the state, because the security dialog is still
|
|
|
|
* visible behind the change password dialog. Pressing "Log off" changes the
|
|
|
|
* state to STATE_LOGGING_OFF. Pressing "Lock Computer" changes the state to
|
|
|
|
* STATE_LOCKED. Pressing "Shutdown" changes the state to
|
2013-03-02 12:28:51 +00:00
|
|
|
* STATE_SHUTTING_DOWN.
|
2013-03-02 11:58:26 +00:00
|
|
|
*
|
|
|
|
* STATE_LOCKED
|
|
|
|
* Winlogon shows the locked message dialog. When the user presses "Ctrl-
|
|
|
|
* Alt-Del" the state changes to STATE_LOCKED_SAS. If DisableCAD is true,
|
|
|
|
* the state will automatically change to STATE_LOCKED_SAS without showing
|
|
|
|
* the dialog.
|
|
|
|
*
|
|
|
|
* STATE_LOCKED_SAS
|
2016-11-05 14:55:55 +00:00
|
|
|
* Winlogon shows the unlock dialog. Pressing "Cancel" or a timeout will
|
2013-03-02 11:58:26 +00:00
|
|
|
* change the state back to STATE_LOCKED. Entering the right credentials and
|
|
|
|
* pressing "OK" unlocks the computer and changes the state to
|
|
|
|
* STATE_LOGGED_ON.
|
|
|
|
*
|
2014-01-14 22:27:34 +00:00
|
|
|
* STATE_LOGGING_OFF
|
|
|
|
* Winlogon shows the logoff dialog. Pressing "Cancel" or a timeout changes
|
|
|
|
* the state back to STATE_LOGGED_ON_SAS. Pressing "OK" logs off the user
|
|
|
|
* and changes the state to STATE_LOGGED_OFF.
|
|
|
|
*
|
2013-03-02 11:58:26 +00:00
|
|
|
* STATE_SHUTTING_DOWN
|
2016-11-05 14:55:55 +00:00
|
|
|
* Winlogon shows the shutdown dialog. Pressing "Cancel" or a timeout will
|
2013-03-02 11:58:26 +00:00
|
|
|
* change the state back to STATE_LOGGED_ON_SAS. Pressing "OK" will change
|
|
|
|
* the state to STATE_SHUT_DOWN.
|
|
|
|
*
|
|
|
|
* STATE_SHUT_DOWN
|
2013-03-02 12:28:51 +00:00
|
|
|
* Terminates Winlogon and initiates shut-down.
|
2014-01-14 22:27:34 +00:00
|
|
|
*
|
|
|
|
* STATE_SCREENSAVER
|
|
|
|
* Winlogon runs the screen saver. Upon user activity, the screensaver
|
|
|
|
* terminates and the state changes back to STATE_LOGGED_ON if the secure
|
|
|
|
* screen saver option is off. Otherwise, the state changes to STATE_LOCKED.
|
2013-03-02 11:58:26 +00:00
|
|
|
*/
|
|
|
|
typedef enum _LOGON_STATE
|
|
|
|
{
|
2014-01-14 22:27:34 +00:00
|
|
|
STATE_INIT,
|
2013-03-02 11:58:26 +00:00
|
|
|
STATE_LOGGED_OFF,
|
2014-01-14 22:27:34 +00:00
|
|
|
STATE_LOGGED_OFF_SAS,
|
2013-03-02 11:58:26 +00:00
|
|
|
STATE_LOGGED_ON,
|
2014-01-12 10:57:02 +00:00
|
|
|
STATE_LOGGED_ON_SAS,
|
2013-03-02 11:58:26 +00:00
|
|
|
STATE_LOCKED,
|
2014-01-13 22:15:27 +00:00
|
|
|
STATE_LOCKED_SAS,
|
2014-01-11 16:20:31 +00:00
|
|
|
STATE_LOGGING_OFF, // not used yet
|
|
|
|
STATE_SHUTTING_DOWN, // not used yet
|
2014-01-14 22:27:34 +00:00
|
|
|
STATE_SHUT_DOWN, // not used yet
|
|
|
|
STATE_SCREENSAVER // not used yet
|
2013-03-02 11:58:26 +00:00
|
|
|
} LOGON_STATE, *PLOGON_STATE;
|
2006-08-02 21:01:37 +00:00
|
|
|
|
2006-08-03 13:50:40 +00:00
|
|
|
#define LockWorkstation(Session)
|
|
|
|
#define UnlockWorkstation(Session)
|
|
|
|
|
2004-03-28 12:21:41 +00:00
|
|
|
typedef struct _WLSESSION
|
|
|
|
{
|
2013-03-02 20:30:36 +00:00
|
|
|
GINAINSTANCE Gina;
|
|
|
|
DWORD SASAction;
|
|
|
|
BOOL SuppressStatus;
|
|
|
|
BOOL TaskManHotkey;
|
|
|
|
HWND SASWindow;
|
|
|
|
HWINSTA InteractiveWindowStation;
|
|
|
|
LPWSTR InteractiveWindowStationName;
|
|
|
|
HDESK ApplicationDesktop;
|
|
|
|
HDESK WinlogonDesktop;
|
|
|
|
HDESK ScreenSaverDesktop;
|
|
|
|
LUID LogonId;
|
|
|
|
HANDLE UserToken;
|
|
|
|
HANDLE hProfileInfo;
|
|
|
|
LOGON_STATE LogonState;
|
|
|
|
DWORD DialogTimeout; /* Timeout for dialog boxes, in seconds */
|
|
|
|
|
|
|
|
/* Screen-saver informations */
|
2006-09-09 17:10:42 +00:00
|
|
|
#ifndef USE_GETLASTINPUTINFO
|
2013-03-02 20:30:36 +00:00
|
|
|
HHOOK KeyboardHook;
|
|
|
|
HHOOK MouseHook;
|
2006-09-09 17:10:42 +00:00
|
|
|
#endif
|
2013-03-02 20:30:36 +00:00
|
|
|
HANDLE hEndOfScreenSaverThread;
|
|
|
|
HANDLE hScreenSaverParametersChanged;
|
|
|
|
HANDLE hUserActivity;
|
|
|
|
HANDLE hEndOfScreenSaver;
|
2006-09-09 17:10:42 +00:00
|
|
|
#ifndef USE_GETLASTINPUTINFO
|
2013-03-02 20:30:36 +00:00
|
|
|
DWORD LastActivity;
|
2006-09-09 17:10:42 +00:00
|
|
|
#endif
|
2006-08-10 18:37:03 +00:00
|
|
|
|
2013-03-02 20:30:36 +00:00
|
|
|
/* Logon informations */
|
|
|
|
DWORD Options;
|
|
|
|
WLX_MPR_NOTIFY_INFO MprNotifyInfo;
|
|
|
|
WLX_PROFILE_V2_0 *Profile;
|
2004-03-28 12:21:41 +00:00
|
|
|
} WLSESSION, *PWLSESSION;
|
|
|
|
|
2015-08-23 15:48:52 +00:00
|
|
|
typedef enum _NOTIFICATION_TYPE
|
|
|
|
{
|
|
|
|
LogonHandler,
|
|
|
|
LogoffHandler,
|
|
|
|
LockHandler,
|
|
|
|
UnlockHandler,
|
|
|
|
StartupHandler,
|
|
|
|
ShutdownHandler,
|
|
|
|
StartScreenSaverHandler,
|
|
|
|
StopScreenSaverHandler,
|
|
|
|
DisconnectHandler,
|
|
|
|
ReconnectHandler,
|
|
|
|
StartShellHandler,
|
|
|
|
PostShellHandler,
|
|
|
|
LastHandler
|
|
|
|
} NOTIFICATION_TYPE, *PNOTIFICATION_TYPE;
|
|
|
|
|
2003-12-01 18:21:04 +00:00
|
|
|
extern HINSTANCE hAppInstance;
|
2004-03-28 12:21:41 +00:00
|
|
|
extern PWLSESSION WLSession;
|
|
|
|
|
|
|
|
#define WLX_SHUTTINGDOWN(Status) \
|
|
|
|
(((Status) == WLX_SAS_ACTION_SHUTDOWN) || \
|
|
|
|
((Status) == WLX_SAS_ACTION_SHUTDOWN_POWER_OFF) || \
|
|
|
|
((Status) == WLX_SAS_ACTION_SHUTDOWN_REBOOT) \
|
|
|
|
)
|
2003-12-01 18:21:04 +00:00
|
|
|
|
2004-03-28 12:21:41 +00:00
|
|
|
#define WLX_SUSPENDING(Status) \
|
|
|
|
(((Status) == WLX_SAS_ACTION_SHUTDOWN_SLEEP) || \
|
|
|
|
((Status) == WLX_SAS_ACTION_SHUTDOWN_SLEEP2) || \
|
|
|
|
((Status) == WLX_SAS_ACTION_SHUTDOWN_HIBERNATE) \
|
|
|
|
)
|
2003-12-01 18:21:04 +00:00
|
|
|
|
2010-05-08 16:30:56 +00:00
|
|
|
/* environment.c */
|
|
|
|
BOOL
|
2010-05-14 17:08:20 +00:00
|
|
|
CreateUserEnvironment(IN PWLSESSION Session);
|
2010-05-08 16:30:56 +00:00
|
|
|
|
2016-11-05 14:55:55 +00:00
|
|
|
/* notify.c */
|
2015-08-16 14:39:44 +00:00
|
|
|
BOOL
|
|
|
|
InitNotifications(VOID);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
CleanupNotifications(VOID);
|
|
|
|
|
2015-08-23 15:48:52 +00:00
|
|
|
VOID
|
|
|
|
CallNotificationDlls(
|
|
|
|
PWLSESSION pSession,
|
|
|
|
NOTIFICATION_TYPE Type);
|
|
|
|
|
2014-09-30 17:13:16 +00:00
|
|
|
/* rpcserver.c */
|
|
|
|
BOOL
|
|
|
|
StartRpcServer(VOID);
|
|
|
|
|
2006-08-02 21:01:37 +00:00
|
|
|
/* sas.c */
|
2018-07-16 23:44:00 +00:00
|
|
|
extern LUID LuidNone;
|
|
|
|
|
2006-09-09 17:10:42 +00:00
|
|
|
BOOL
|
2016-09-18 23:32:02 +00:00
|
|
|
SetDefaultLanguage(IN PWLSESSION Session);
|
2006-09-09 17:10:42 +00:00
|
|
|
|
2018-07-16 23:44:00 +00:00
|
|
|
NTSTATUS
|
|
|
|
HandleShutdown(IN OUT PWLSESSION Session,
|
|
|
|
IN DWORD wlxAction);
|
|
|
|
|
2006-08-02 21:01:37 +00:00
|
|
|
BOOL
|
2013-03-02 20:30:36 +00:00
|
|
|
InitializeSAS(IN OUT PWLSESSION Session);
|
2006-08-02 21:01:37 +00:00
|
|
|
|
2006-08-10 18:37:03 +00:00
|
|
|
/* screensaver.c */
|
|
|
|
BOOL
|
2013-03-02 20:30:36 +00:00
|
|
|
InitializeScreenSaver(IN OUT PWLSESSION Session);
|
2006-08-10 18:37:03 +00:00
|
|
|
|
|
|
|
VOID
|
2013-03-02 20:30:36 +00:00
|
|
|
StartScreenSaver(IN PWLSESSION Session);
|
2006-08-10 18:37:03 +00:00
|
|
|
|
2022-04-02 16:16:40 +00:00
|
|
|
/* security.c */
|
|
|
|
PSECURITY_DESCRIPTOR
|
|
|
|
ConvertToSelfRelative(
|
|
|
|
_In_ PSECURITY_DESCRIPTOR AbsoluteSd);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
CreateWinstaSecurity(
|
|
|
|
_Out_ PSECURITY_DESCRIPTOR *WinstaSd);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
CreateApplicationDesktopSecurity(
|
|
|
|
_Out_ PSECURITY_DESCRIPTOR *ApplicationDesktopSd);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
CreateWinlogonDesktopSecurity(
|
|
|
|
_Out_ PSECURITY_DESCRIPTOR *WinlogonDesktopSd);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
CreateScreenSaverSecurity(
|
|
|
|
_Out_ PSECURITY_DESCRIPTOR *ScreenSaverDesktopSd);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
AllowWinstaAccessToUser(
|
|
|
|
_In_ HWINSTA WinSta,
|
|
|
|
_In_ PSID LogonSid);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
AllowDesktopAccessToUser(
|
|
|
|
_In_ HDESK Desktop,
|
|
|
|
_In_ PSID LogonSid);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
AllowAccessOnSession(
|
|
|
|
_In_ PWLSESSION Session);
|
|
|
|
|
2015-12-16 14:45:19 +00:00
|
|
|
/* setup.c */
|
|
|
|
DWORD
|
|
|
|
GetSetupType(VOID);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
RunSetup(VOID);
|
2011-02-18 20:16:43 +00:00
|
|
|
|
2020-10-03 23:01:46 +00:00
|
|
|
/* shutdown.h */
|
2018-04-01 22:38:18 +00:00
|
|
|
DWORD
|
|
|
|
TerminateSystemShutdown(VOID);
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
StartSystemShutdown(
|
2020-10-03 23:01:46 +00:00
|
|
|
IN PUNICODE_STRING pMessage,
|
|
|
|
IN ULONG dwTimeout,
|
|
|
|
IN BOOLEAN bForceAppsClosed,
|
|
|
|
IN BOOLEAN bRebootAfterShutdown,
|
|
|
|
IN ULONG dwReason);
|
2018-04-01 22:38:18 +00:00
|
|
|
|
2015-12-16 14:45:19 +00:00
|
|
|
/* winlogon.c */
|
2011-02-18 20:16:43 +00:00
|
|
|
BOOL
|
2013-03-02 20:30:36 +00:00
|
|
|
PlaySoundRoutine(IN LPCWSTR FileName,
|
|
|
|
IN UINT Logon,
|
|
|
|
IN UINT Flags);
|
2011-02-18 20:16:43 +00:00
|
|
|
|
2006-08-09 06:31:02 +00:00
|
|
|
BOOL
|
2013-03-02 20:30:36 +00:00
|
|
|
DisplayStatusMessage(IN PWLSESSION Session,
|
|
|
|
IN HDESK hDesktop,
|
|
|
|
IN UINT ResourceId);
|
2006-08-09 06:31:02 +00:00
|
|
|
|
|
|
|
BOOL
|
2013-03-02 20:30:36 +00:00
|
|
|
RemoveStatusMessage(IN PWLSESSION Session);
|
2006-08-09 06:31:02 +00:00
|
|
|
|
2006-08-02 21:01:37 +00:00
|
|
|
/* wlx.c */
|
2014-01-11 16:20:31 +00:00
|
|
|
VOID
|
|
|
|
InitDialogListHead(VOID);
|
|
|
|
|
2018-05-21 09:20:50 +00:00
|
|
|
VOID
|
|
|
|
CloseAllDialogWindows(VOID);
|
2014-01-11 16:20:31 +00:00
|
|
|
|
2006-08-02 21:01:37 +00:00
|
|
|
BOOL
|
2013-03-02 20:30:36 +00:00
|
|
|
GinaInit(IN OUT PWLSESSION Session);
|
|
|
|
|
2018-07-16 23:44:00 +00:00
|
|
|
BOOL
|
2022-04-02 16:16:40 +00:00
|
|
|
CreateWindowStationAndDesktops(
|
|
|
|
_Inout_ PWLSESSION Session);
|
2006-08-02 21:01:37 +00:00
|
|
|
|
2006-08-09 06:31:02 +00:00
|
|
|
|
2006-08-02 21:01:37 +00:00
|
|
|
VOID WINAPI WlxUseCtrlAltDel(HANDLE hWlx);
|
|
|
|
VOID WINAPI WlxSetContextPointer(HANDLE hWlx, PVOID pWlxContext);
|
|
|
|
VOID WINAPI WlxSasNotify(HANDLE hWlx, DWORD dwSasType);
|
|
|
|
BOOL WINAPI WlxSetTimeout(HANDLE hWlx, DWORD Timeout);
|
|
|
|
int WINAPI WlxAssignShellProtection(HANDLE hWlx, HANDLE hToken, HANDLE hProcess, HANDLE hThread);
|
|
|
|
int WINAPI WlxMessageBox(HANDLE hWlx, HWND hwndOwner, LPWSTR lpszText, LPWSTR lpszTitle, UINT fuStyle);
|
|
|
|
int WINAPI WlxDialogBox(HANDLE hWlx, HANDLE hInst, LPWSTR lpszTemplate, HWND hwndOwner, DLGPROC dlgprc);
|
|
|
|
int WINAPI WlxDialogBoxParam(HANDLE hWlx, HANDLE hInst, LPWSTR lpszTemplate, HWND hwndOwner, DLGPROC dlgprc, LPARAM dwInitParam);
|
|
|
|
int WINAPI WlxDialogBoxIndirect(HANDLE hWlx, HANDLE hInst, LPCDLGTEMPLATE hDialogTemplate, HWND hwndOwner, DLGPROC dlgprc);
|
|
|
|
int WINAPI WlxDialogBoxIndirectParam(HANDLE hWlx, HANDLE hInst, LPCDLGTEMPLATE hDialogTemplate, HWND hwndOwner, DLGPROC dlgprc, LPARAM dwInitParam);
|
|
|
|
int WINAPI WlxSwitchDesktopToUser(HANDLE hWlx);
|
|
|
|
int WINAPI WlxSwitchDesktopToWinlogon(HANDLE hWlx);
|
|
|
|
int WINAPI WlxChangePasswordNotify(HANDLE hWlx, PWLX_MPR_NOTIFY_INFO pMprInfo, DWORD dwChangeInfo);
|
|
|
|
BOOL WINAPI WlxGetSourceDesktop(HANDLE hWlx, PWLX_DESKTOP* ppDesktop);
|
|
|
|
BOOL WINAPI WlxSetReturnDesktop(HANDLE hWlx, PWLX_DESKTOP pDesktop);
|
|
|
|
BOOL WINAPI WlxCreateUserDesktop(HANDLE hWlx, HANDLE hToken, DWORD Flags, PWSTR pszDesktopName, PWLX_DESKTOP* ppDesktop);
|
|
|
|
int WINAPI WlxChangePasswordNotifyEx(HANDLE hWlx, PWLX_MPR_NOTIFY_INFO pMprInfo, DWORD dwChangeInfo, PWSTR ProviderName, PVOID Reserved);
|
|
|
|
BOOL WINAPI WlxCloseUserDesktop(HANDLE hWlx, PWLX_DESKTOP pDesktop, HANDLE hToken);
|
|
|
|
BOOL WINAPI WlxSetOption(HANDLE hWlx, DWORD Option, ULONG_PTR Value, ULONG_PTR* OldValue);
|
|
|
|
BOOL WINAPI WlxGetOption(HANDLE hWlx, DWORD Option, ULONG_PTR* Value);
|
|
|
|
VOID WINAPI WlxWin31Migrate(HANDLE hWlx);
|
|
|
|
BOOL WINAPI WlxQueryClientCredentials(PWLX_CLIENT_CREDENTIALS_INFO_V1_0 pCred);
|
|
|
|
BOOL WINAPI WlxQueryInetConnectorCredentials(PWLX_CLIENT_CREDENTIALS_INFO_V1_0 pCred);
|
|
|
|
DWORD WINAPI WlxQueryConsoleSwitchCredentials(PWLX_CONSOLESWITCH_CREDENTIALS_INFO_V1_0 pCred);
|
|
|
|
BOOL WINAPI WlxQueryTsLogonCredentials(PWLX_CLIENT_CREDENTIALS_INFO_V2_0 pCred);
|
|
|
|
BOOL WINAPI WlxDisconnect(VOID);
|
|
|
|
DWORD WINAPI WlxQueryTerminalServicesData(HANDLE hWlx, PWLX_TERMINAL_SERVICES_DATA pTSData, WCHAR* UserName, WCHAR* Domain);
|
|
|
|
|
2003-12-01 18:21:04 +00:00
|
|
|
#endif /* __WINLOGON_MAIN_H__ */
|