CryptSIPRetrieveSubjectGuid function

The CryptSIPRetrieveSubjectGuid function retrieves a GUID based on the header information in a specified file. The GUID is used by the CryptSIPLoad function to load the subject interface package (SIP) implementation for the given file type.

Syntax

BOOL CryptSIPRetrieveSubjectGuid(
  IN LPCWSTR FileName,
  IN HANDLE  hFileIn,
  OUT GUID   *pgSubject
);

Parameters

FileName

The name of the file.

hFileIn

A handle to the file to check.

pgSubject

A GUID that identifies the subject.

Return Value

If the function succeeds, the function returns TRUE.

If the function fails, it returns FALSE. For extended error information, call GetLastError.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header mssip.h
Library Crypt32.lib
DLL Crypt32.dll