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.

56 lines
2.1 KiB

  1. // HSCardCtx.h -- Handle Smart Card Context wrapper class declaration
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 1999. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #if !defined(SLBCSP_HSCARDCTX_H)
  8. #define SLBCSP_HSCARDCTX_H
  9. #include <winscard.h>
  10. // HSCardContext is a convenience wrapper class to manage the Resource
  11. // Manager's SCARDCONTEXT resource.
  12. class HSCardContext
  13. {
  14. public:
  15. // Types
  16. // C'tors/D'tors
  17. explicit
  18. HSCardContext();
  19. ~HSCardContext();
  20. // Operators
  21. // Operations
  22. void Establish(DWORD dwScope = SCARD_SCOPE_USER);
  23. void Release();
  24. // Access
  25. SCARDCONTEXT
  26. AsSCARDCONTEXT() const;
  27. // Predicates
  28. protected:
  29. // Types
  30. // C'tors/D'tors
  31. // Operators
  32. // Operations
  33. // Access
  34. // Predicates
  35. // Variables
  36. private:
  37. // Types
  38. // C'tors/D'tors
  39. // Operators
  40. // Operations
  41. // Access
  42. // Predicates
  43. // Variables
  44. SCARDCONTEXT m_scc;
  45. };
  46. #endif // SLBCSP_HSCARDCTX_H