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.

73 lines
2.4 KiB

  1. //--------------------------------------------------------------
  2. // Copyright (C) Microsoft Corporation, 1996 - 1999
  3. //
  4. // File: import.h
  5. //
  6. // Contents: The private include file for cryptext.dll.
  7. //
  8. // History: 5-11-1997 xiaohs created
  9. //
  10. //--------------------------------------------------------------
  11. #ifndef IMPORT_H
  12. #define IMPORT_H
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. DWORD dwExpectedContentType= CERT_QUERY_CONTENT_FLAG_CERT |
  17. CERT_QUERY_CONTENT_FLAG_CTL |
  18. CERT_QUERY_CONTENT_FLAG_CRL |
  19. CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE |
  20. CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT |
  21. CERT_QUERY_CONTENT_FLAG_SERIALIZED_CTL |
  22. CERT_QUERY_CONTENT_FLAG_SERIALIZED_CRL |
  23. CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED |
  24. CERT_QUERY_CONTENT_FLAG_PFX;
  25. #define IMPORT_CONTENT_CERT 0x0001
  26. #define IMPORT_CONTENT_CRL 0x0002
  27. #define IMPORT_CONTENT_CTL 0x0004
  28. //-----------------------------------------------------------------------
  29. // CERT_IMPORT_INFO
  30. //
  31. //
  32. // This struct contains everything you will ever need to the import
  33. // wizard
  34. //------------------------------------------------------------------------
  35. typedef struct _CERT_IMPORT_INFO
  36. {
  37. HWND hwndParent;
  38. DWORD dwFlag;
  39. BOOL fKnownDes; //TRUE if we know the destination in advance
  40. BOOL fKnownSrc;
  41. LPWSTR pwszFileName; //used for display
  42. BOOL fFreeFileName;
  43. CERT_BLOB blobData; //used only for PFX BLOBs
  44. DWORD dwContentType;
  45. HCERTSTORE hSrcStore;
  46. BOOL fFreeSrcStore;
  47. HCERTSTORE hDesStore;
  48. BOOL fFreeDesStore;
  49. BOOL fSelectedDesStore;
  50. HFONT hBigBold;
  51. HFONT hBold;
  52. DWORD dwPasswordFlags;
  53. LPWSTR pwszPassword;
  54. BOOL fPFX;
  55. }CERT_IMPORT_INFO;
  56. HRESULT I_ImportCertificate(CERT_IMPORT_INFO * pCertImportInfo,
  57. UINT * pidsStatus);
  58. #ifdef __cplusplus
  59. } // Balance extern "C" above
  60. #endif
  61. #endif //IMPORT_H