Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: wlx.c
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 7-15-94 RichardW Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #include "testgina.h"
  18. typedef _FSM_Determinant {
  19. DWORD Response;
  20. WinstaState NextState;
  21. } FSM_Determinant;
  22. typedef struct _FSM_Node {
  23. WinstaState State;
  24. DWORD Function;
  25. DWORD cStates;
  26. FSM_Determinant Choices[];
  27. } FSM_Node;
  28. #define ANY_RETURN 0xFFFFFFFF
  29. FSM_Node TestGinaFSM[] = {
  30. { Winsta_PreLoad, WLX_NEGOTIATE_API, 1, {{ANY_RETURN, Winsta_Initialize}}},
  31. { Winsta_Initialize, WLX_INITIALIZE_API, 1, {{ANY_RETURN, Winsta_NoOne}}},
  32. { Winsta_NoOne, WLX_DISPLAYSASNOTICE_API, 1, {{ANY_RETURN, Winsta_NoOne_SAS}}},
  33. { Winsta_NoOne_Display, -1, 1, {{ANY_RETURN, Winsta_NoOne_SAS}}},
  34. { Winsta_NoOne_SAS, WLX_LOGGEDOUTSAS_API, 5,
  35. {WLX_SAS_ACTION_NONE, Winsta_NoOne},
  36. {WLX_SAS_ACTION_SHUTDOWN, Winsta_Shutdown},
  37. {WLX_SAS_ACTION_SHUTDOWN_REBOOT, Winsta_Shutdown},
  38. {WLX_SAS_ACTION_SHUTDOWN_POWER_OFF, Winsta_Shutdown},
  39. {WLX_SAS_ACTION_USER_LOGON, Winsta_LoggedOnUser_StartShell}
  40. }},
  41. { Winsta_LoggedOnUser_StartShell, WLX_ACTIVATEUSERSHELL_API, 1, {{ANY_RETURN, Winsta_LoggedOnUser}}},
  42. { Winsta_LoggedOnUser_SAS, WLX_LOGGEDONSAS_API,
  43. };