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.

188 lines
4.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: msgina.h
  7. //
  8. // Contents: Main header file for MSGINA.DLL
  9. //
  10. // History: 7-14-94 RichardW Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #include "pragma.h"
  14. #ifndef RC_INVOKED
  15. #include <nt.h>
  16. #include <ntrtl.h>
  17. #include <nturtl.h>
  18. #include <ntlsa.h>
  19. #include <ntmsv1_0.h>
  20. #define SECURITY_WIN32
  21. #define SECURITY_KERBEROS
  22. #include <security.h>
  23. #include <secint.h>
  24. #endif
  25. #include <windows.h>
  26. #include <windowsx.h>
  27. #include <winuserp.h>
  28. #include <winbasep.h>
  29. #include <winwlx.h>
  30. #include <rasdlg.h>
  31. #include <dsgetdc.h>
  32. #include <userenv.h>
  33. #include <userenvp.h>
  34. #include <winsta.h>
  35. #include <safeboot.h>
  36. #include <msginaexports.h>
  37. #include "commctrl.h"
  38. #ifndef RC_INVOKED
  39. #include <lm.h>
  40. #include <npapi.h>
  41. //
  42. // Handy Defines
  43. //
  44. #define AUTO_LOGON // Enable automatic logon to configure netlogon stuff.
  45. #define DLG_FAILURE IDCANCEL
  46. typedef int TIMEOUT, * PTIMEOUT;
  47. //
  48. // Macro to determine if the current session is the active console session
  49. //
  50. #define IsActiveConsoleSession() (BOOLEAN)(USER_SHARED_DATA->ActiveConsoleId == NtCurrentPeb()->SessionId)
  51. #include "structs.h"
  52. #include "strings.h"
  53. #include "debug.h"
  54. #include "welcome.h"
  55. #include "winutil.h"
  56. #include "wlsec.h"
  57. //
  58. // Global Variables
  59. //
  60. extern HINSTANCE hDllInstance; // My instance, for resource loading
  61. extern HINSTANCE hAppInstance; // App instance, for dialogs, etc.
  62. extern PWLX_DISPATCH_VERSION_1_4 pWlxFuncs; // Ptr to table of functions
  63. extern PSID pWinlogonSid;
  64. extern DWORD SafeBootMode;
  65. extern HKEY WinlogonKey ;
  66. //
  67. // Terminal Server definitions
  68. //
  69. extern BOOL g_IsTerminalServer;
  70. extern BOOL g_Console;
  71. //
  72. //
  73. // GetProcAddr Prototype for winsta.dll function WinStationQueryInformationW
  74. //
  75. typedef BOOLEAN (*PWINSTATION_QUERY_INFORMATION) (
  76. HANDLE hServer,
  77. ULONG SessionId,
  78. WINSTATIONINFOCLASS WinStationInformationClass,
  79. PVOID pWinStationInformation,
  80. ULONG WinStationInformationLength,
  81. PULONG pReturnLength
  82. );
  83. //
  84. // GetProcAddr Proto for regapi.dll function RegUserConfigQuery
  85. //
  86. typedef LONG ( * PREGUSERCONFIGQUERY) ( WCHAR *,
  87. WCHAR *,
  88. PUSERCONFIGW,
  89. ULONG,
  90. PULONG );
  91. typedef LONG ( * PREGDEFAULTUSERCONFIGQUERY) ( WCHAR *,
  92. PUSERCONFIGW,
  93. ULONG,
  94. PULONG );
  95. //
  96. // tsnotify.dll export
  97. //
  98. typedef BOOL ( * PTERMSRVCREATETEMPDIR) ( PVOID *pEnv,
  99. HANDLE UserToken,
  100. PSECURITY_DESCRIPTOR SD
  101. );
  102. //
  103. // Module header files:
  104. //
  105. #include "mslogon.h"
  106. #include "audit.h"
  107. #include "chngepwd.h"
  108. #include "domain.h"
  109. #include "lockout.h"
  110. #include "lsa.h"
  111. #include "lock.h"
  112. #include "options.h"
  113. #include "envvar.h"
  114. #include "rasx.h"
  115. #include "brand.h"
  116. #include "langicon.h"
  117. BOOL
  118. GetErrorDescription(
  119. DWORD ErrorCode,
  120. LPWSTR Description,
  121. DWORD DescriptionSize
  122. );
  123. VOID FreeAutoLogonInfo( PGLOBALS pGlobals );
  124. BOOL DisconnectLogon( HWND, PGLOBALS );
  125. BOOL GetDisableCad(PGLOBALS);
  126. VOID
  127. UpdateWithChangedPassword(
  128. PGLOBALS pGlobals,
  129. HWND ActiveWindow,
  130. BOOL Hash,
  131. PWSTR UserName,
  132. PWSTR Domain,
  133. PWSTR Password,
  134. PWSTR NewPassword,
  135. PMSV1_0_INTERACTIVE_PROFILE NewProfile
  136. );
  137. #endif // not RC_INVOKED
  138. //
  139. // Include resource header files
  140. //
  141. #include "stringid.h"
  142. #include "wlevents.h"
  143. #include "resource.h"
  144. #include "shutdown.h"
  145. //
  146. // Shutdown "reason" stuff.
  147. //
  148. DWORD GetReasonSelection(HWND hwndCombo);
  149. void SetReasonDescription(HWND hwndCombo, HWND hwndStatic);