[TRANSLATION][CLIPBRD] Italian translation implemented (#344)
[reactos.git] / base / system / winlogon / winlogon.h
index ba5a3e4..f54ac7a 100644 (file)
@@ -18,7 +18,7 @@
  */
 /* 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:
  */
@@ -46,7 +46,6 @@
 #include <wine/debug.h>
 WINE_DEFAULT_DEBUG_CHANNEL(winlogon);
 
-#include "setup.h"
 #include "resource.h"
 
 typedef BOOL (WINAPI * PFWLXNEGOTIATE)  (DWORD, DWORD *);
@@ -127,7 +126,7 @@ typedef struct _GINAINSTANCE
  * 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
@@ -162,7 +161,7 @@ typedef struct _GINAINSTANCE
  *    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.
@@ -173,7 +172,7 @@ typedef struct _GINAINSTANCE
  *    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.
  *
@@ -240,6 +239,23 @@ typedef struct _WLSESSION
     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;
 
@@ -259,13 +275,25 @@ 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);
@@ -277,8 +305,14 @@ InitializeScreenSaver(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,