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.

47 lines
962 B

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. srclist.h
  5. Abstract:
  6. Certificate source list object prototype.
  7. Author:
  8. Jeff Parham (jeffparh) 15-Dec-1995
  9. Revision History:
  10. --*/
  11. typedef struct _CERT_SOURCE_INFO
  12. {
  13. TCHAR szName[ 64 ];
  14. TCHAR szDisplayName[ 64 ];
  15. TCHAR szImagePath[ _MAX_PATH ];
  16. } CERT_SOURCE_INFO, *PCERT_SOURCE_INFO;
  17. class CCertSourceList
  18. {
  19. public:
  20. CCertSourceList();
  21. ~CCertSourceList();
  22. BOOL RefreshSources();
  23. LPCTSTR GetSourceName( int nIndex );
  24. LPCTSTR GetSourceDisplayName( int nIndex );
  25. LPCTSTR GetSourceImagePath( int nIndex );
  26. int GetNumSources();
  27. private:
  28. BOOL RemoveSources();
  29. BOOL AddSource( PCERT_SOURCE_INFO pcsiNewSource );
  30. PCERT_SOURCE_INFO * m_ppcsiSourceList;
  31. DWORD m_dwNumSources;
  32. };