home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / certext.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  1KB  |  51 lines

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright 1996 - 1998 Microsoft Corporation
  5. //
  6. // File:        certext.h
  7. //
  8. // Contents:    Definitions and OIDs for standard Certificate Extensions
  9. //
  10. //---------------------------------------------------------------------------
  11.  
  12. //+--------------------------------------------------------------------------
  13. // Predefined certificate extension data structures that can be encoded/decoded
  14. // via wincrypt.h's CryptEncodeObject/CryptDecodeObject.
  15. //---------------------------------------------------------------------------
  16.  
  17. #ifndef __CERTEXT_H__
  18. #define __CERTEXT_H__
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. // Table entries
  25. #define ENC_SAMPLE1_REQUEST_STRUCT    ((LPCSTR) 3000)
  26. #define ENC_SAMPLE2_REQUEST_STRUCT    ((LPCSTR) 3001)
  27.  
  28. typedef struct _CERT_SAMPLE_STRUCTURE1_INFO
  29. {
  30.     DWORD           dwVersion;
  31.     WCHAR          *pwszField1;
  32.     WCHAR          *pwszField2;
  33.     LONG            lField3;
  34.     CRYPT_DATA_BLOB blobField4;
  35.     FILETIME        dateField5;
  36. } CERT_SAMPLE_STRUCTURE1_INFO;
  37.  
  38. typedef struct _CERT_SAMPLE_STRUCTURE2_INFO
  39. {
  40.     DWORD           dwVersion;
  41.     LONG            lField1;
  42.     WCHAR          *pwszField2;
  43.     FILETIME        dateField3;
  44. } CERT_SAMPLE_STRUCTURE2_INFO;
  45.  
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49.  
  50. #endif // __CERTEXT_H__
  51.