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.

126 lines
3.1 KiB

  1. //=============================================================================
  2. // Copyright (c) 2000 Microsoft Corporation
  3. //
  4. // precomp.hpp
  5. //
  6. // Created 02/29/2000 johnstep (John Stephens)
  7. //=============================================================================
  8. #define UNICODE
  9. #include <nt.h>
  10. #include <ntrtl.h>
  11. #include <nturtl.h>
  12. #include <windows.h>
  13. #include <stdio.h>
  14. #include <malloc.h>
  15. extern "C" {
  16. #include <commctrl.h>
  17. }
  18. #define _CREDUI_
  19. #include <wincrui.h>
  20. #ifndef SECURITY_WIN32
  21. #define SECURITY_WIN32
  22. #endif
  23. #include <security.h>
  24. #include <controls.hpp>
  25. #include "utils.hpp"
  26. #include <netlib.h>
  27. #include <shfusion.h>
  28. #if defined(DBG)
  29. #if defined(CREDUIPRINTF)
  30. #define CreduiDebugLog printf
  31. #else
  32. #define CreduiDebugLog DbgPrint
  33. #endif
  34. #else
  35. #define CreduiDebugLog
  36. #endif
  37. //-----------------------------------------------------------------------------
  38. // Types
  39. //-----------------------------------------------------------------------------
  40. struct CREDUI_STRINGS
  41. {
  42. WCHAR UserNameTipTitle[32];
  43. WCHAR UserNameTipText[256];
  44. WCHAR PasswordTipTitle[32];
  45. WCHAR PasswordTipText[256];
  46. WCHAR CapsLockTipTitle[32];
  47. WCHAR CapsLockTipText[256];
  48. WCHAR LogonTipTitle[32];
  49. WCHAR LogonTipText[256];
  50. WCHAR LogonTipCaps[256];
  51. WCHAR DnsCaption[64];
  52. WCHAR NetbiosCaption[64];
  53. WCHAR GenericCaption[64];
  54. WCHAR Welcome[64];
  55. WCHAR WelcomeBack[64];
  56. WCHAR Connecting[64];
  57. WCHAR PasswordStatic[32];
  58. WCHAR PinStatic[32];
  59. WCHAR UserNameStatic[32];
  60. WCHAR CertificateStatic[32];
  61. WCHAR Certificate[32];
  62. WCHAR LookupName[64];
  63. WCHAR EmptyReader[64];
  64. WCHAR NoCard[32];
  65. WCHAR UnknownCard[64];
  66. WCHAR BackwardsCard[64];
  67. WCHAR EmptyCard[64];
  68. WCHAR ReadingCard[64];
  69. WCHAR CardError[64];
  70. WCHAR BackwardsTipTitle[32];
  71. WCHAR BackwardsTipText[128];
  72. WCHAR SmartCardStatic[32];
  73. WCHAR WrongOldTipTitle[32];
  74. WCHAR WrongOldTipText[256];
  75. WCHAR NotSameTipTitle[32];
  76. WCHAR NotSameTipText[256];
  77. WCHAR TooShortTipTitle[32];
  78. WCHAR TooShortTipText[256];
  79. WCHAR Save[64];
  80. WCHAR PromptForUse[256];
  81. WCHAR NoUsernameEntered[256];
  82. WCHAR PassportSave[64];
  83. WCHAR EmailName[64];
  84. WCHAR DowngradeTipText[256];
  85. WCHAR EmailNameTipTitle[64];
  86. WCHAR EmailNameTipText[256];
  87. };
  88. // Private window message:
  89. enum
  90. {
  91. CREDUI_WM_APP_LOOKUP_COMPLETE = WM_APP + 0,
  92. CREDUI_WM_APP_VIEW_COMPLETE = WM_APP + 1
  93. };
  94. //-----------------------------------------------------------------------------
  95. // Global Variables
  96. //-----------------------------------------------------------------------------
  97. extern HMODULE CreduiInstance;
  98. extern ULONG CreduiComReferenceCount;
  99. extern BOOL CreduiIsPersonal;
  100. extern BOOL CreduiIsDomainController;
  101. extern BOOL CreduiIsSafeMode;
  102. extern CREDUI_STRINGS CreduiStrings;
  103. extern UINT CreduiScarduiWmReaderArrival;
  104. extern UINT CreduiScarduiWmReaderRemoval;
  105. extern UINT CreduiScarduiWmCardInsertion;
  106. extern UINT CreduiScarduiWmCardRemoval;
  107. extern UINT CreduiScarduiWmCardCertAvail;
  108. extern UINT CreduiScarduiWmCardStatus;
  109. extern BOOL CreduiHasSmartCardSupport;
  110. extern CONST CREDUI_BALLOON_TIP_INFO CreduiCapsLockTipInfo;