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.

83 lines
1.7 KiB

  1. //+-------------------------------------------------------------------------
  2. // Microsoft Windows
  3. //
  4. // Copyright (C) Microsoft Corporation, 1999 - 1999
  5. //
  6. // File: protroot.h
  7. //
  8. // Contents: Public functions in protroot.cpp
  9. //
  10. // History: 15-Sep-00 philh created
  11. //--------------------------------------------------------------------------
  12. #ifndef __PROTROOT_H__
  13. #define __PROTROOT_H__
  14. BOOL
  15. IPR_EnableSecurityPrivilege(
  16. LPCSTR pszPrivilege
  17. );
  18. BOOL
  19. IPR_IsCurrentUserRootsAllowed();
  20. BOOL
  21. IPR_IsAuthRootsAllowed();
  22. BOOL
  23. IPR_IsNTAuthRequiredDisabled();
  24. BOOL
  25. IPR_IsNotDefinedNameConstraintDisabled();
  26. BOOL
  27. IPR_IsAuthRootAutoUpdateDisabled();
  28. void
  29. IPR_InitProtectedRootInfo();
  30. BOOL
  31. IPR_DeleteUnprotectedRootsFromStore(
  32. IN HCERTSTORE hStore,
  33. OUT BOOL *pfProtected
  34. );
  35. int
  36. IPR_ProtectedRootMessageBox(
  37. IN handle_t hRpc,
  38. IN PCCERT_CONTEXT pCert,
  39. IN UINT wActionID,
  40. IN UINT uFlags
  41. );
  42. //+=========================================================================
  43. // crypt32 Event Logging Functions
  44. //==========================================================================
  45. void
  46. IPR_LogCrypt32Event(
  47. IN WORD wType,
  48. IN DWORD dwEventID,
  49. IN WORD wNumStrings,
  50. IN LPCWSTR *rgpwszStrings
  51. );
  52. void
  53. IPR_LogCrypt32Error(
  54. IN DWORD dwEventID,
  55. IN LPCWSTR pwszString, // %1
  56. IN DWORD dwErr // %2
  57. );
  58. void
  59. IPR_LogCertInformation(
  60. IN DWORD dwEventID,
  61. IN PCCERT_CONTEXT pCert,
  62. IN BOOL fFormatIssuerName
  63. );
  64. BOOL
  65. IPR_AddCertInAuthRootAutoUpdateCtl(
  66. IN PCCERT_CONTEXT pCert,
  67. IN PCCTL_CONTEXT pCtl
  68. );
  69. #endif // __PROTROOT_H__