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.

34 lines
1.2 KiB

  1. #include "cryptui.h"
  2. #define MY_HRESULT_FROM_WIN32(a) ((a >= 0x80000000) ? a : HRESULT_FROM_WIN32(a))
  3. #define MAX_HASH_LEN 20
  4. #define MAX_MSG_LEN 256
  5. #define CACERTWARNINGLEVEL 500
  6. typedef BOOL (WINAPI * PFNCryptUIDlgViewCertificateW) (
  7. IN PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo,
  8. OUT BOOL *pfPropertiesChanged
  9. );
  10. typedef struct _MDI {
  11. HCERTSTORE hStore;
  12. PCCERT_CONTEXT pCertSigner;
  13. HINSTANCE hInstance;
  14. PFNCryptUIDlgViewCertificateW pfnCryptUIDlgViewCertificateW;
  15. } MDI, * PMDI; // Main Dialog Init
  16. typedef struct _MIU {
  17. PCCERT_CONTEXT pCertContext;
  18. HINSTANCE hInstance;
  19. PFNCryptUIDlgViewCertificateW pfnCryptUIDlgViewCertificateW;
  20. } MIU, *PMIU; // More Info User data
  21. INT_PTR CALLBACK MainDialogProc(
  22. HWND hwndDlg, // handle to dialog box
  23. UINT uMsg, // message
  24. WPARAM wParam, // first message parameter
  25. LPARAM lParam // second message parameter
  26. );
  27. BOOL FIsTooManyCertsOK(DWORD cCerts, HINSTANCE hInstanceUI);