|
ReactOS 0.4.16-dev-1948-gd260c1d
|
#include <stdlib.h>#include <windef.h>#include <winbase.h>#include <winreg.h>#include <winuser.h>#include <windowsx.h>#include <winwlx.h>#include <ndk/rtlfuncs.h>#include <strsafe.h>#include "minitest.h"
Go to the source code of this file.
Classes | |
| struct | _SYSTEM_USER_INFO |
| struct | _TEST_ENTRY |
Typedefs | |
| typedef enum _WLNOTIFY_STATE | WLNOTIFY_STATE |
| typedef struct _SYSTEM_USER_INFO | SYSTEM_USER_INFO |
| typedef struct _SYSTEM_USER_INFO * | PSYSTEM_USER_INFO |
| typedef struct _TEST_ENTRY | TEST_ENTRY |
| typedef struct _TEST_ENTRY * | PTEST_ENTRY |
Enumerations | |
| enum | _WLNOTIFY_STATE { WLNotify_NonInitialized = -1 , WLNotify_Startup , WLNotify_Shutdown , WLNotify_Logon , WLNotify_Logoff , WLNotify_StartShell , WLNotify_PostShell , WLNotify_Lock , WLNotify_Unlock , WLNotify_StartScreenSaver , WLNotify_StopScreenSaver , WLNotify_Disconnect , WLNotify_Reconnect , WLNotify_MaxState } |
Variables | |
| static const PCSTR | NotifyStateName [] |
| static WLNOTIFY_STATE | g_CurrentState = WLNotify_NonInitialized |
| static WLNOTIFY_STATE | g_PreviousState = WLNotify_NonInitialized |
| static ULONG | g_fLogoffShutdownFlags = EWX_LOGOFF |
| static HMODULE | g_hModule = NULL |
| static BOOL | g_bInitialized = FALSE |
| TRUE when the flags have been initialized. | |
| struct { | |
| UINT8 bAsync: 1 | |
| UINT8 bImpersonate: 1 | |
| UINT8 Reserved: 6 | |
| } | g_fFlags = {0} |
| struct { | |
| PCWSTR ValueName | |
| PCWSTR Value | |
| } | NotifyEvents [] |
| #define __HANDLER_PARAM | ( | pNotifInfo | ) | (_In_ PWLX_NOTIFICATION_INFO pNotifInfo) |
Definition at line 918 of file wlntfytests.c.
| #define BEGIN_HANDLER |
Definition at line 922 of file wlntfytests.c.
| #define BEGIN_TEST |
Definition at line 727 of file wlntfytests.c.
| #define CHANGE_STATE | ( | bChange, | |
| NewState | |||
| ) | ChangeNotificationState(__RELFILE__, __LINE__, __FUNCTION__, (bChange), (NewState)) |
Definition at line 675 of file wlntfytests.c.
| #define DEFAULT_WINSTA0 L"WinSta0" |
Definition at line 50 of file wlntfytests.c.
| #define DESKTOP_DEFAULT L"Default" |
Definition at line 52 of file wlntfytests.c.
| #define DESKTOP_SCRSAVE L"Screen-saver" |
Definition at line 53 of file wlntfytests.c.
| #define DESKTOP_WINLOGON L"Winlogon" |
Definition at line 51 of file wlntfytests.c.
| #define DUMP_WLX_NOTIFICATION | ( | SysUserInfo, | |
| pInfo | |||
| ) | DumpNotificationState(__RELFILE__, __LINE__, __FUNCTION__, (SysUserInfo), (pInfo)) |
Definition at line 650 of file wlntfytests.c.
| #define END_HANDLER | ( | bChangeState, | |
| NewState | |||
| ) |
Definition at line 929 of file wlntfytests.c.
| #define END_TEST |
Definition at line 734 of file wlntfytests.c.
| #define NOTIFY_PKG_NAME L"WLNotifyTests" |
Definition at line 47 of file wlntfytests.c.
| #define NOTIFY_REG_PATH L"Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\\" NOTIFY_PKG_NAME |
Definition at line 48 of file wlntfytests.c.
| #define NTOS_MODE_USER |
Definition at line 27 of file wlntfytests.c.
| #define ok_state_1 | ( | state1 | ) |
Definition at line 740 of file wlntfytests.c.
| #define ok_state_2 | ( | state1, | |
| state2 | |||
| ) |
Definition at line 746 of file wlntfytests.c.
| #define ok_state_3 | ( | state1, | |
| state2, | |||
| state3 | |||
| ) |
Definition at line 753 of file wlntfytests.c.
| #define STANDALONE |
Definition at line 32 of file wlntfytests.c.
| #define WIN32_NO_STATUS |
Definition at line 19 of file wlntfytests.c.
Definition at line 35 of file wlntfytests.c.
Definition at line 919 of file wlntfytests.c.
| typedef struct _SYSTEM_USER_INFO * PSYSTEM_USER_INFO |
| typedef struct _TEST_ENTRY * PTEST_ENTRY |
| typedef struct _SYSTEM_USER_INFO SYSTEM_USER_INFO |
| typedef struct _TEST_ENTRY TEST_ENTRY |
| typedef enum _WLNOTIFY_STATE WLNOTIFY_STATE |
Definition at line 55 of file wlntfytests.c.
|
static |
Definition at line 655 of file wlntfytests.c.
| FORCEINLINE VOID DbgBreakOnEvent | ( | VOID | ) |
Definition at line 147 of file wlntfytests.c.
|
static |
Definition at line 699 of file wlntfytests.c.
|
static |
Definition at line 680 of file wlntfytests.c.
Referenced by DisplayWlxMessageA().
Definition at line 1284 of file wlntfytests.c.
Definition at line 1344 of file wlntfytests.c.
Definition at line 1409 of file wlntfytests.c.
|
static |
Definition at line 774 of file wlntfytests.c.
Referenced by WLEventLock(), WLEventLogoff(), WLEventLogon(), WLEventPostShell(), WLEventShutdown(), WLEventStartScreenSaver(), WLEventStartShell(), WLEventStartup(), WLEventStopScreenSaver(), and WLEventUnlock().
|
static |
Definition at line 602 of file wlntfytests.c.
|
static |
Definition at line 591 of file wlntfytests.c.
Retrieves the notification settings from the registry.
Definition at line 185 of file wlntfytests.c.
Referenced by WLEventStartup().
|
static |
Definition at line 431 of file wlntfytests.c.
|
static |
Retrieves the user and domain names corresponding to the given token.
| [in] | hToken | Handle to the user token, for which to retrieve the user and domain names. |
| [out] | UserName | Receives in output, a pointer to an allocated string representing the user name. The string is allocated with LocalAlloc(). After usage, free the pointer with LocalFree(). |
| [out] | DomainName | Receives in output, a pointer to an allocated string representing the domain name. The string is allocated with LocalAlloc(). After usage, free the pointer with LocalFree(). |
Definition at line 335 of file wlntfytests.c.
Referenced by GetSystemUserInfo().
|
static |
Retrieves the name of the specified window station or desktop object.
| [in] | hObj | A handle to the window station or desktop object. |
| [out] | PreAllocBuffer | Optional pointer to an existing caller pre-allocated buffer. |
| [in] | cchBufLength | Length in number of WCHARs of the caller pre-allocated buffer, if any. |
PreAllocBuffer, if this user-given buffer was large enough to store the entire object name;If the function fails, the return value is NULL.
Definition at line 266 of file wlntfytests.c.
Referenced by GetSystemUserInfo().
| FORCEINLINE BOOL IsUserLoggedIn | ( | _In_ WLNOTIFY_STATE | State | ) |
Definition at line 103 of file wlntfytests.c.
Referenced by WLEventStartScreenSaver(), and WLEventStopScreenSaver().
|
static |
Maps a WLNOTIFY_STATE value to its human-readable name.
| [in] | State | The WLNOTIFY_STATE value for which to retrieve its name. |
Definition at line 164 of file wlntfytests.c.
Referenced by ChangeNotificationState(), and WLEventDisconnect().
| WINE_DEFAULT_DEBUG_CHANNEL_EX | ( | wlnotify_tests | , |
| (1<< __WINE_DBCL_TRACE)|(1<< __WINE_DBCL_WARN)|(1<< __WINE_DBCL_ERR)|(1<< __WINE_DBCL_FIXME) | |||
| ) |
| WLNOTIFY_HANDLER() WLEventDisconnect | ( | pInfo | ) |
Invoked at workstation disconnect (Terminal Services).
Definition at line 1246 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventLock | ( | pInfo | ) |
Invoked at workstation locking.
Definition at line 1129 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventLogoff | ( | pInfo | ) |
Invoked at user logoff.
Definition at line 1040 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventLogon | ( | pInfo | ) |
Invoked at user logon.
Definition at line 1014 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventPostShell | ( | pInfo | ) |
Invoked just after starting the user shell.
Definition at line 1100 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventReconnect | ( | pInfo | ) |
Invoked at workstation reconnect (Terminal Services).
Definition at line 1264 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventShutdown | ( | pInfo | ) |
Invoked at system shutdown.
Definition at line 966 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventStartScreenSaver | ( | pInfo | ) |
Invoked at screensaver start.
Definition at line 1184 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventStartShell | ( | pInfo | ) |
Invoked just before starting the user shell.
Definition at line 1074 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventStartup | ( | pInfo | ) |
Invoked at system startup.
Definition at line 938 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventStopScreenSaver | ( | pInfo | ) |
Invoked at screensaver stop.
Definition at line 1213 of file wlntfytests.c.
| WLNOTIFY_HANDLER() WLEventUnlock | ( | pInfo | ) |
Invoked at workstation unlocking.
Definition at line 1155 of file wlntfytests.c.
| UINT8 bAsync |
Definition at line 96 of file wlntfytests.c.
Referenced by IntEndDeferWindowPosEx(), ATL::CRegKey::NotifyChangeKeyValue(), and NtUserEndDeferWindowPosEx().
| UINT8 bImpersonate |
Definition at line 97 of file wlntfytests.c.
Referenced by WLEventStartScreenSaver(), and WLEventStopScreenSaver().
TRUE when the flags have been initialized.
Definition at line 94 of file wlntfytests.c.
Referenced by GetSettings().
|
static |
Definition at line 90 of file wlntfytests.c.
Referenced by ChangeNotificationState(), DllMain(), WLEventDisconnect(), and WLEventStartScreenSaver().
| struct { ... } g_fFlags |
|
static |
Definition at line 92 of file wlntfytests.c.
Referenced by WLEventLogoff(), and WLEventShutdown().
Definition at line 93 of file wlntfytests.c.
Referenced by DllMain(), and DllRegisterServer().
|
static |
Definition at line 91 of file wlntfytests.c.
Referenced by ChangeNotificationState(), DllMain(), WLEventReconnect(), WLEventStopScreenSaver(), and WLEventUnlock().
| const struct { ... } NotifyEvents[] |
Definition at line 73 of file wlntfytests.c.
Referenced by NotifyStateToName().
Definition at line 98 of file wlntfytests.c.
Definition at line 1327 of file wlntfytests.c.
Definition at line 1326 of file wlntfytests.c.