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.

77 lines
1.3 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1996 - 1999
  3. Module Name:
  4. PropCert
  5. Abstract:
  6. This file contains the definitition of the thread
  7. which propogates digital certificates from smart cards
  8. to the smart card physical store and My store
  9. Author:
  10. Chris Dudley 5/16/1997
  11. Environment:
  12. Win32, C++ w/Exceptions, MFC
  13. Revision History:
  14. Amanda Matlosz 12/05/97 removed the CNewDlg (replaced w/ CWizPropSheet)
  15. Amanda Matlosz 01/23/97 removed the wizard entirely
  16. Notes:
  17. --*/
  18. #if !defined(__PROPCERT_INCLUDED__)
  19. #define __PROPCERT_INCLUDED__
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif // _MSC_VER >= 1000
  23. #include <wincrypt.h>
  24. typedef struct _THREADDATA
  25. {
  26. SCARDCONTEXT hSCardContext;
  27. HANDLE hClose;
  28. HANDLE hUserToken;
  29. HANDLE hThread;
  30. BOOL fSuspended;
  31. } THREADDATA;
  32. typedef struct _PROPDATA
  33. {
  34. TCHAR szCSPName[MAX_PATH];
  35. TCHAR szReader[MAX_PATH];
  36. TCHAR szCardName[MAX_PATH];
  37. HANDLE hUserToken;
  38. } PROPDATA, *PPROPDATA;
  39. DWORD
  40. WINAPI
  41. PropagateCertificates(
  42. LPVOID lpParameter
  43. );
  44. void
  45. StopMonitorReaders(
  46. THREADDATA *ThreadData
  47. );
  48. DWORD
  49. WINAPI
  50. StartMonitorReaders(
  51. LPVOID lpParameter
  52. );
  53. #endif