vs2005: fatal error C1083: Cannot open include file: 'Mscat.h': No such file or directory

add the following code:

extern "C" {
typedef HANDLE HCATADMIN;
typedef HANDLE HCATINFO;
typedef struct CATALOG_INFO_ {
DWORD cbStruct;
WCHAR wszCatalogFile[MAX_PATH];
} CATALOG_INFO;
BOOL WINAPI IsCatalogFile( HANDLE hFile, WCHAR* pwszFileName );
BOOL WINAPI CryptCATAdminAcquireContext( HCATADMIN* phCatAdmin,
const GUID* pgSubsystem, DWORD dwFlags );
BOOL WINAPI CryptCATAdminCalcHashFromFileHandle( HANDLE hFile,
DWORD* pcbHash, BYTE* pbHash, DWORD dwFlags );
HCATINFO WINAPI CryptCATAdminEnumCatalogFromHash( HCATADMIN hCatAdmin,
BYTE* pbHash, DWORD cbHash, DWORD dwFlags,
HCATINFO* phPrevCatInfo );
BOOL WINAPI CryptCATAdminReleaseCatalogContext( HCATADMIN hCatAdmin,
HCATINFO hCatInfo, DWORD dwFlags );
BOOL WINAPI CryptCATAdminReleaseContext( HCATADMIN hCatAdmin,
DWORD dwFlags );
BOOL WINAPI CryptCATCatalogInfoFromContext( HCATINFO hCatInfo,
CATALOG_INFO* psCatInfo, DWORD dwFlags );
};

Leave a Reply

Your email address will not be published. Required fields are marked *