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.

95 lines
2.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992-1999.
  5. //
  6. // File: cryptuiapi.h
  7. //
  8. // Contents: Cryptographic UI API Prototypes and Definitions
  9. //
  10. //----------------------------------------------------------------------------
  11. #ifndef __CRYPTUIAPI_H__
  12. #define __CRYPTUIAPI_H__
  13. #if defined (_MSC_VER) && (_MSC_VER >= 1020)
  14. #pragma once
  15. #endif
  16. #include <wincrypt.h>
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include <pshpack8.h>
  21. //+-------------------------------------------------------------------------
  22. // Dialog viewer of a certificate, CTL or CRL context.
  23. //
  24. // dwContextType and associated pvContext's
  25. // CERT_STORE_CERTIFICATE_CONTEXT PCCERT_CONTEXT
  26. // CERT_STORE_CRL_CONTEXT PCCRL_CONTEXT
  27. // CERT_STORE_CTL_CONTEXT PCCTL_CONTEXT
  28. //
  29. // dwFlags currently isn't used and should be set to 0.
  30. //--------------------------------------------------------------------------
  31. BOOL
  32. WINAPI
  33. CryptUIDlgViewContext(
  34. IN DWORD dwContextType,
  35. IN const void *pvContext,
  36. IN OPTIONAL HWND hwnd, // Defaults to the desktop window
  37. IN OPTIONAL LPCWSTR pwszTitle, // Defaults to the context type title
  38. IN DWORD dwFlags,
  39. IN void *pvReserved
  40. );
  41. //+-------------------------------------------------------------------------
  42. // Dialog to select a certificate from the specified store.
  43. //
  44. // Returns the selected certificate context. If no certificate was
  45. // selected, NULL is returned.
  46. //
  47. // pwszTitle is either NULL or the title to be used for the dialog.
  48. // If NULL, the default title is used. The default title is
  49. // "Select Certificate".
  50. //
  51. // pwszDisplayString is either NULL or the text statement in the selection
  52. // dialog. If NULL, the default phrase
  53. // "Select a certificate you wish to use" is used in the dialog.
  54. //
  55. // dwDontUseColumn can be set to exclude columns from the selection
  56. // dialog. See the CRYPTDLG_SELECTCERT_*_COLUMN definitions below.
  57. //
  58. // dwFlags currently isn't used and should be set to 0.
  59. //--------------------------------------------------------------------------
  60. PCCERT_CONTEXT
  61. WINAPI
  62. CryptUIDlgSelectCertificateFromStore(
  63. IN HCERTSTORE hCertStore,
  64. IN OPTIONAL HWND hwnd, // Defaults to the desktop window
  65. IN OPTIONAL LPCWSTR pwszTitle,
  66. IN OPTIONAL LPCWSTR pwszDisplayString,
  67. IN DWORD dwDontUseColumn,
  68. IN DWORD dwFlags,
  69. IN void *pvReserved
  70. );
  71. // flags for dwDontUseColumn
  72. #define CRYPTUI_SELECT_ISSUEDTO_COLUMN 0x000000001
  73. #define CRYPTUI_SELECT_ISSUEDBY_COLUMN 0x000000002
  74. #define CRYPTUI_SELECT_INTENDEDUSE_COLUMN 0x000000004
  75. #define CRYPTUI_SELECT_FRIENDLYNAME_COLUMN 0x000000008
  76. #define CRYPTUI_SELECT_LOCATION_COLUMN 0x000000010
  77. #define CRYPTUI_SELECT_EXPIRATION_COLUMN 0x000000020
  78. #include <poppack.h>
  79. #ifdef __cplusplus
  80. } // Balance extern "C" above
  81. #endif
  82. #endif // _CRYPTUIAPI_H_