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.

80 lines
1.6 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: cscom.h
  7. //
  8. // Contents: Cert Server Policy & Exit module callouts
  9. //
  10. //---------------------------------------------------------------------------
  11. #include "certdb.h"
  12. HRESULT ComInit(VOID);
  13. // Releases all Policy/Exit modules
  14. VOID ComShutDown(VOID);
  15. HRESULT
  16. PolicyInit(
  17. IN WCHAR const *pwszConfig,
  18. IN WCHAR const *pwszSanitizedName);
  19. HRESULT PolicyVerifyRequest(
  20. IN WCHAR const *pwszConfig,
  21. IN LONG RequestId,
  22. IN LONG Flags,
  23. IN BOOL fNewRequest,
  24. IN DWORD dwComContextIndex,
  25. OUT LPWSTR *pwszDispositionMessage, // LocalAlloced.
  26. OUT DWORD *pVerifyStatus); // VR_PENDING || VR_INSTANT_OK || VR_INSTANT_BAD
  27. extern BOOL g_fEnablePolicy;
  28. HRESULT
  29. ExitInit(
  30. IN WCHAR const *pwszConfig,
  31. IN WCHAR const *pwszSanitizedName);
  32. HRESULT
  33. ExitNotify(
  34. IN LONG Event,
  35. IN LONG RequestId,
  36. IN DWORD dwComContextIndex); //MAXDWORD means no context
  37. BSTR
  38. ExitGetDescription(
  39. IN DWORD iExitMod);
  40. extern BOOL g_fEnableExit;
  41. HRESULT ComVerifyRequestContext(
  42. IN BOOL fAllowZero,
  43. IN DWORD Flags,
  44. IN LONG Context,
  45. OUT DWORD *pRequestId);
  46. HRESULT
  47. ComGetClientInfo(
  48. IN LONG Context,
  49. IN DWORD dwComContextIndex,
  50. OUT CERTSRV_COM_CONTEXT **ppComContext);
  51. HRESULT
  52. RegisterComContext(
  53. IN CERTSRV_COM_CONTEXT *pComContext,
  54. IN OUT DWORD *pdwIndex);
  55. VOID
  56. UnregisterComContext(
  57. IN CERTSRV_COM_CONTEXT *pComContext,
  58. IN DWORD dwIndex);
  59. CERTSRV_COM_CONTEXT*
  60. GetComContextFromIndex(
  61. IN DWORD dwIndex);