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.

52 lines
1.6 KiB

  1. //
  2. // IEAKENG.H
  3. //
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif /* __cplusplus */
  7. // macro definitions
  8. // type definitions
  9. // seccerts.cpp
  10. typedef BOOL WINCRYPT32API (WINAPI * CERTGETENHANCEDKEYUSAGE)(PCCERT_CONTEXT, DWORD, PCERT_ENHKEY_USAGE, DWORD *);
  11. typedef HCERTSTORE WINCRYPT32API (WINAPI * CERTOPENSTORE)(LPCSTR, DWORD, HCRYPTPROV, DWORD, const void *);
  12. typedef HCERTSTORE WINCRYPT32API (WINAPI * CERTOPENSYSTEMSTOREA)(HCRYPTPROV, LPCSTR);
  13. typedef BOOL WINCRYPT32API (WINAPI * CERTCLOSESTORE)(HCERTSTORE, DWORD);
  14. typedef PCCERT_CONTEXT WINCRYPT32API (WINAPI * CERTENUMCERTIFICATESINSTORE)(HCERTSTORE, PCCERT_CONTEXT);
  15. typedef BOOL WINCRYPT32API (WINAPI * CERTADDCERTIFICATECONTEXTTOSTORE)(HCERTSTORE, PCCERT_CONTEXT, DWORD, PCCERT_CONTEXT *);
  16. typedef BOOL WINCRYPT32API (WINAPI * CERTSAVESTORE)(HCERTSTORE, DWORD, DWORD, DWORD, void *, DWORD);
  17. // prototype declarations
  18. // sitecert.cpp
  19. BOOL CopyStore(LPCSTR lpSrc, LPCSTR lpDst, BOOL fSrcSysStore, BOOL fDstSysStore);
  20. // extern declarations
  21. // ieakeng.cpp
  22. extern HINSTANCE g_hInst;
  23. extern HINSTANCE g_hDLLInst;
  24. extern DWORD g_dwPlatformId;
  25. extern BOOL g_fUseShortFileName;
  26. extern BOOL g_fRunningOnNT;
  27. // seccerts.cpp
  28. extern CERTGETENHANCEDKEYUSAGE pfnCertGetEnhancedKeyUsage;
  29. extern CERTOPENSTORE pfnCertOpenStore;
  30. extern CERTOPENSYSTEMSTOREA pfnCertOpenSystemStoreA;
  31. extern CERTCLOSESTORE pfnCertCloseStore;
  32. extern CERTENUMCERTIFICATESINSTORE pfnCertEnumCertificatesInStore;
  33. extern CERTADDCERTIFICATECONTEXTTOSTORE pfnCertAddCertificateContextToStore;
  34. extern CERTSAVESTORE pfnCertSaveStore;
  35. #ifdef __cplusplus
  36. }
  37. #endif /* __cplusplus */