[WLNOTIFY] Add sens service stubs
authorEric Kohl <eric.kohl@reactos.org>
Tue, 7 Aug 2018 20:56:33 +0000 (22:56 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 7 Aug 2018 20:56:33 +0000 (22:56 +0200)
dll/win32/wlnotify/CMakeLists.txt
dll/win32/wlnotify/senssvc.c [new file with mode: 0644]
dll/win32/wlnotify/test.c
dll/win32/wlnotify/wlnotify.spec

index 1db47ff..6cbf00c 100644 (file)
@@ -3,6 +3,7 @@ spec2def(wlnotify.dll wlnotify.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     schedsvc.c
+    senssvc.c
     test.c
     wlnotify.c
     precomp.h)
diff --git a/dll/win32/wlnotify/senssvc.c b/dll/win32/wlnotify/senssvc.c
new file mode 100644 (file)
index 0000000..e238a84
--- /dev/null
@@ -0,0 +1,219 @@
+/*
+ * PROJECT:     ReactOS system libraries
+ * LICENSE:     GPL - See COPYING in the top level directory
+ * FILE:        dll/win32/wlnotify/senssvc.c
+ * PURPOSE:     SENS service logon notifications
+ * PROGRAMMER:  Eric Kohl <eric.kohl@reactos.org>
+ */
+
+#include "precomp.h"
+#include <winsvc.h>
+
+#define _NDEBUG
+#include <debug.h>
+
+
+VOID
+WINAPI
+SensDisconnectEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensDisconnectEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensLockEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensLockEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensLogoffEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensLogoffEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensLogonEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensLogonEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensPostShellEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensPostShellEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensReconnectEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensReconnectEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensShutdownEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensShutdownEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensStartScreenSaverEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensStartScreenSaverEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensStartShellEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensStartShellEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensStartupEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensStartupEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensStopScreenSaverEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensStopScreenSaverEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+
+VOID
+WINAPI
+SensUnlockEvent(
+    PWLX_NOTIFICATION_INFO pInfo)
+{
+    DPRINT("SensUnlockEvent\n");
+    DPRINT("Size: %lu\n", pInfo->Size);
+    DPRINT("Flags: %lx\n", pInfo->Flags);
+    DPRINT("UserName: %S\n", pInfo->UserName);
+    DPRINT("Domain: %S\n", pInfo->Domain);
+    DPRINT("WindowStation: %S\n", pInfo->WindowStation);
+    DPRINT("hToken: %p\n", pInfo->hToken);
+    DPRINT("hDesktop: %p\n", pInfo->hDesktop);
+    DPRINT("pStatusCallback: %p\n", pInfo->pStatusCallback);
+}
+
+/* EOF */
index e3911d3..8f87055 100644 (file)
@@ -170,7 +170,7 @@ WINAPI
 TestPostShellEvent(
     PWLX_NOTIFICATION_INFO pInfo)
 {
-    DPRINT("TestStartShellEvent\n");
+    DPRINT("TestPostShellEvent\n");
     DPRINT("Size: %lu\n", pInfo->Size);
     DPRINT("Flags: %lx\n", pInfo->Flags);
     DPRINT("UserName: %S\n", pInfo->UserName);
index 737448d..2eb0b64 100644 (file)
@@ -5,18 +5,18 @@
 ;@ stub SCardSuspendCertProp
 @ stdcall SchedEventLogoff(ptr)
 @ stdcall SchedStartShell(ptr)
-;@ stub SensDisconnectEvent
-;@ stub SensLockEvent
-;@ stub SensLogoffEvent
-;@ stub SensLogonEvent
-;@ stub SensPostShellEvent
-;@ stub SensReconnectEvent
-;@ stub SensShutdownEvent
-;@ stub SensStartScreenSaverEvent
-;@ stub SensStartShellEvent
-;@ stub SensStartupEvent
-;@ stub SensStopScreenSaverEvent
-;@ stub SensUnlockEvent
+@ stdcall SensDisconnectEvent(ptr)
+@ stdcall SensLockEvent(ptr)
+@ stdcall SensLogoffEvent(ptr)
+@ stdcall SensLogonEvent(ptr)
+@ stdcall SensPostShellEvent(ptr)
+@ stdcall SensReconnectEvent(ptr)
+@ stdcall SensShutdownEvent(ptr)
+@ stdcall SensStartScreenSaverEvent(ptr)
+@ stdcall SensStartShellEvent(ptr)
+@ stdcall SensStartupEvent(ptr)
+@ stdcall SensStopScreenSaverEvent(ptr)
+@ stdcall SensUnlockEvent(ptr)
 ;@ stub ShowNotificationBallonW
 @ stdcall TestDisconnectEvent(ptr)
 @ stdcall TestLockEvent(ptr)