CryptSIPRetrieveSubjectGuid function (mssip.h)

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, optional] HANDLE  hFileIn,
  [out]          GUID    *pgSubject
);

Parameters

[in] FileName

The name of the file.

[in, optional] hFileIn

A handle to the file to check.

[out] 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

Requirement Value
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