windows-nt/Source/XPSP1/NT/ds/published/dload/mscat32.c
2020-09-26 16:20:57 +08:00

118 lines
2 KiB
C

#include "dspch.h"
#pragma hdrstop
#include <wincrypt.h>
#include <mscat.h>
static
BOOL
WINAPI
CryptCATAdminAcquireContext (
OUT HCATADMIN *phCatAdmin,
IN const GUID *pgSubsystem,
IN DWORD dwFlags
)
{
SetLastError(ERROR_PROC_NOT_FOUND);
return FALSE;
}
static
HCATINFO
WINAPI
CryptCATAdminAddCatalog (
IN HCATADMIN hCatAdmin,
IN WCHAR *pwszCatalogFile,
IN OPTIONAL WCHAR *pwszSelectBaseName,
IN DWORD dwFlags
)
{
SetLastError(ERROR_PROC_NOT_FOUND);
return NULL;
}
static
BOOL
WINAPI
CryptCATAdminCalcHashFromFileHandle (
IN HANDLE hFile,
IN OUT DWORD *pcbHash,
OUT OPTIONAL BYTE *pbHash,
IN DWORD dwFlags
)
{
SetLastError(ERROR_PROC_NOT_FOUND);
return FALSE;
}
static
HCATINFO
WINAPI
CryptCATAdminEnumCatalogFromHash (
IN HCATADMIN hCatAdmin,
IN BYTE *pbHash,
IN DWORD cbHash,
IN DWORD dwFlags,
IN OUT HCATINFO *phPrevCatInfo
)
{
SetLastError(ERROR_PROC_NOT_FOUND);
return NULL;
}
static
BOOL
WINAPI
CryptCATAdminReleaseCatalogContext (
IN HCATADMIN hCatAdmin,
IN HCATINFO hCatInfo,
IN DWORD dwFlags
)
{
SetLastError(ERROR_PROC_NOT_FOUND);
return FALSE;
}
static
BOOL
WINAPI
CryptCATAdminReleaseContext (
IN HCATADMIN hCatAdmin,
IN DWORD dwFlags
)
{
SetLastError(ERROR_PROC_NOT_FOUND);
return FALSE;
}
static
BOOL
WINAPI
CryptCATCatalogInfoFromContext (
IN HCATINFO hCatInfo,
IN OUT CATALOG_INFO *psCatInfo,
IN DWORD dwFlags
)
{
SetLastError(ERROR_PROC_NOT_FOUND);
return FALSE;
}
//
// !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
//
DEFINE_PROCNAME_ENTRIES(mscat32)
{
DLPENTRY(CryptCATAdminAcquireContext)
DLPENTRY(CryptCATAdminAddCatalog)
DLPENTRY(CryptCATAdminCalcHashFromFileHandle)
DLPENTRY(CryptCATAdminEnumCatalogFromHash)
DLPENTRY(CryptCATAdminReleaseCatalogContext)
DLPENTRY(CryptCATAdminReleaseContext)
DLPENTRY(CryptCATCatalogInfoFromContext)
};
DEFINE_PROCNAME_MAP(mscat32)