Leaked source code of windows server 2003
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.

97 lines
2.6 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. #include <commctrl.h>
  16. #define _CREDUI_
  17. #include <wincred.h>
  18. #include <lmcons.h>
  19. #include <netlib.h>
  20. #define CreduiDebugLog
  21. //-----------------------------------------------------------------------------
  22. // Types
  23. //-----------------------------------------------------------------------------
  24. struct CREDUI_STRINGS
  25. {
  26. WCHAR UserNameTipTitle[32];
  27. WCHAR UserNameTipText[256];
  28. WCHAR CapsLockTipTitle[32];
  29. WCHAR CapsLockTipText[256];
  30. WCHAR LogonTipTitle[32];
  31. WCHAR LogonTipText[256];
  32. WCHAR LogonTipCaps[256];
  33. WCHAR DnsCaption[64];
  34. WCHAR NetbiosCaption[64];
  35. WCHAR GenericCaption[64];
  36. WCHAR Welcome[64];
  37. WCHAR WelcomeBack[64];
  38. WCHAR Connecting[64];
  39. WCHAR PasswordStatic[32];
  40. WCHAR PinStatic[32];
  41. WCHAR UserNameStatic[32];
  42. WCHAR CertificateStatic[32];
  43. WCHAR Certificate[32];
  44. WCHAR LookupName[64];
  45. WCHAR EmptyReader[64];
  46. WCHAR UnknownCard[64];
  47. WCHAR BackwardsCard[64];
  48. WCHAR EmptyCard[64];
  49. WCHAR ReadingCard[64];
  50. WCHAR CardError[64];
  51. WCHAR BackwardsTipTitle[32];
  52. WCHAR BackwardsTipText[128];
  53. WCHAR SmartCardStatic[32];
  54. WCHAR WrongOldTipTitle[32];
  55. WCHAR WrongOldTipText[256];
  56. WCHAR NotSameTipTitle[32];
  57. WCHAR NotSameTipText[256];
  58. WCHAR TooShortTipTitle[32];
  59. WCHAR TooShortTipText[256];
  60. WCHAR Save[64];
  61. WCHAR Prompt[64];
  62. };
  63. // Private window message:
  64. enum
  65. {
  66. CREDUI_WM_APP_LOOKUP_COMPLETE = WM_APP + 0,
  67. CREDUI_WM_APP_VIEW_COMPLETE = WM_APP + 1
  68. };
  69. //-----------------------------------------------------------------------------
  70. // Global Variables
  71. //-----------------------------------------------------------------------------
  72. extern HMODULE CreduiInstance;
  73. extern ULONG CreduiComReferenceCount;
  74. extern BOOL CreduiIsPersonal;
  75. extern BOOL CreduiIsSafeMode;
  76. extern CREDUI_STRINGS CreduiStrings;
  77. extern UINT CreduiScarduiWmReaderArrival;
  78. extern UINT CreduiScarduiWmReaderRemoval;
  79. extern UINT CreduiScarduiWmCardInsertion;
  80. extern UINT CreduiScarduiWmCardRemoval;
  81. extern UINT CreduiScarduiWmCardCertAvail;
  82. extern UINT CreduiScarduiWmCardStatus;
  83. extern BOOL CreduiHasSmartCardSupport;