windows-nt/Source/XPSP1/NT/ds/security/services/ca/certsrv/cscom.h

81 lines
1.6 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1996 - 1999
//
// File: cscom.h
//
// Contents: Cert Server Policy & Exit module callouts
//
//---------------------------------------------------------------------------
#include "certdb.h"
HRESULT ComInit(VOID);
// Releases all Policy/Exit modules
VOID ComShutDown(VOID);
HRESULT
PolicyInit(
IN WCHAR const *pwszConfig,
IN WCHAR const *pwszSanitizedName);
HRESULT PolicyVerifyRequest(
IN WCHAR const *pwszConfig,
IN LONG RequestId,
IN LONG Flags,
IN BOOL fNewRequest,
IN DWORD dwComContextIndex,
OUT LPWSTR *pwszDispositionMessage, // LocalAlloced.
OUT DWORD *pVerifyStatus); // VR_PENDING || VR_INSTANT_OK || VR_INSTANT_BAD
extern BOOL g_fEnablePolicy;
HRESULT
ExitInit(
IN WCHAR const *pwszConfig,
IN WCHAR const *pwszSanitizedName);
HRESULT
ExitNotify(
IN LONG Event,
IN LONG RequestId,
IN DWORD dwComContextIndex); //MAXDWORD means no context
BSTR
ExitGetDescription(
IN DWORD iExitMod);
extern BOOL g_fEnableExit;
HRESULT ComVerifyRequestContext(
IN BOOL fAllowZero,
IN DWORD Flags,
IN LONG Context,
OUT DWORD *pRequestId);
HRESULT
ComGetClientInfo(
IN LONG Context,
IN DWORD dwComContextIndex,
OUT CERTSRV_COM_CONTEXT **ppComContext);
HRESULT
RegisterComContext(
IN CERTSRV_COM_CONTEXT *pComContext,
IN OUT DWORD *pdwIndex);
VOID
UnregisterComContext(
IN CERTSRV_COM_CONTEXT *pComContext,
IN DWORD dwIndex);
CERTSRV_COM_CONTEXT*
GetComContextFromIndex(
IN DWORD dwIndex);