*/
/* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS winlogon
- * FILE: subsys/system/winlogon/winlogon.h
+ * FILE: base/system/winlogon/winlogon.h
* PURPOSE: Winlogon
* PROGRAMMER:
*/
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(winlogon);
-#include "setup.h"
#include "resource.h"
typedef BOOL (WINAPI * PFWLXNEGOTIATE) (DWORD, DWORD *);
* The real picture should look more like this:
*
* STATE_INIT
- * Initial state. Required for session initialization. After intialization,
+ * Initial state. Required for session initialization. After initialization,
* the state will automatically change to STATE_LOGGED_OFF.
*
* STATE_LOGGED_OFF
* the dialog.
*
* STATE_LOCKED_SAS
- * Winlogon shows the unlock dialog. Presing "Cancel" or a timeout will
+ * Winlogon shows the unlock dialog. Pressing "Cancel" or a timeout will
* 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.
* and changes the state to STATE_LOGGED_OFF.
*
* STATE_SHUTTING_DOWN
- * Winlogon shows the shutdown dialog. Presing "Cancel" or a timeout will
+ * Winlogon shows the shutdown dialog. Pressing "Cancel" or a timeout will
* change the state back to STATE_LOGGED_ON_SAS. Pressing "OK" will change
* the state to STATE_SHUT_DOWN.
*
WLX_PROFILE_V2_0 *Profile;
} WLSESSION, *PWLSESSION;
+typedef enum _NOTIFICATION_TYPE
+{
+ LogonHandler,
+ LogoffHandler,
+ LockHandler,
+ UnlockHandler,
+ StartupHandler,
+ ShutdownHandler,
+ StartScreenSaverHandler,
+ StopScreenSaverHandler,
+ DisconnectHandler,
+ ReconnectHandler,
+ StartShellHandler,
+ PostShellHandler,
+ LastHandler
+} NOTIFICATION_TYPE, *PNOTIFICATION_TYPE;
+
extern HINSTANCE hAppInstance;
extern PWLSESSION WLSession;
BOOL
CreateUserEnvironment(IN PWLSESSION Session);
+/* notify.c */
+BOOL
+InitNotifications(VOID);
+
+VOID
+CleanupNotifications(VOID);
+
+VOID
+CallNotificationDlls(
+ PWLSESSION pSession,
+ NOTIFICATION_TYPE Type);
+
/* rpcserver.c */
BOOL
StartRpcServer(VOID);
/* sas.c */
BOOL
-SetDefaultLanguage(IN BOOL UserProfile);
+SetDefaultLanguage(IN PWLSESSION Session);
BOOL
InitializeSAS(IN OUT PWLSESSION Session);
VOID
StartScreenSaver(IN PWLSESSION Session);
-/* winlogon.c */
+/* setup.c */
+DWORD
+GetSetupType(VOID);
+BOOL
+RunSetup(VOID);
+
+/* winlogon.c */
BOOL
PlaySoundRoutine(IN LPCWSTR FileName,
IN UINT Logon,