mirror of https://github.com/tongzx/nt5src
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.
117 lines
2.0 KiB
117 lines
2.0 KiB
#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)
|