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.

75 lines
2.0 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1999
  3. Module Name:
  4. comstat
  5. Abstract:
  6. This file contains the definition of the common types, etc. used in
  7. the status application
  8. Author:
  9. Chris Dudley 7/28/1997
  10. Environment:
  11. Win32, C++ w/Exceptions, MFC
  12. Revision History:
  13. Notes:
  14. --*/
  15. #ifndef __COMSTAT_H__
  16. #define __COMSTAT_H__
  17. /////////////////////////////////////////////////////////////////////////////
  18. //
  19. // Includes
  20. //
  21. ////////////////////////////////////////////////////////////////////////////
  22. //
  23. // Constants
  24. //
  25. // system state
  26. static const DWORD k_State_Unknown = 0;
  27. static const DWORD k_State_NoCard = 1;
  28. static const DWORD k_State_CardAvailable = 2;
  29. static const DWORD k_State_CardIdle = 3;
  30. // alert options
  31. static const UINT_PTR k_AlertOption_IconOnly = 0;
  32. static const UINT_PTR k_AlertOption_IconSound = 1;
  33. static const UINT_PTR k_AlertOption_IconSoundMsg = 2;
  34. static const UINT_PTR k_AlertOption_IconMsg = 3;
  35. // RegKeys
  36. static const LPCTSTR szAlertOptionsKey = TEXT("Software\\Microsoft\\Cryptography\\Calais\\Smart Card Alert");
  37. static const LPCTSTR szScRemoveOptionKey = TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon");
  38. // messages
  39. static const UINT WM_SCARD_NOTIFY = WM_USER + 1;
  40. static const UINT WM_SCARD_STATUS_DLG_EXITED = WM_USER + 2;
  41. static const UINT WM_SCARD_CERTPROP_EXITED = WM_USER + 3;
  42. static const UINT WM_READERSTATUSCHANGE = WM_USER + 4;
  43. static const UINT WM_SCARD_RESMGR_EXIT = WM_USER + 5;
  44. static const UINT WM_SCARD_RESMGR_STATUS = WM_USER + 6;
  45. static const UINT WM_SCARD_NEWREADER = WM_USER + 7;
  46. static const UINT WM_SCARD_NEWREADER_EXIT = WM_USER + 8;
  47. static const UINT WM_SCARD_CARDSTATUS = WM_USER + 9;
  48. static const UINT WM_SCARD_CARDSTATUS_EXIT = WM_USER + 10;
  49. static const UINT WM_SCARD_REMOPT_CHNG = WM_USER + 11;
  50. static const UINT WM_SCARD_REMOPT_EXIT = WM_USER + 12;
  51. ////////////////////////////////////////////////////////////////////////////
  52. #endif // __COMSTAT_H__