pfnIsFileSupportedName callback function

The pfnIsFileSupportedName callback function queries the subject interface packages (SIPs) listed in the registry to determine which SIP handles the file type.


pfnIsFileSupportedName Pfnisfilesupportedname;

BOOL Pfnisfilesupportedname(
  IN WCHAR *pwszFileName,
  OUT GUID *pgSubject



A pointer to a null-terminated string that contains the absolute path to the file to be processed by the SIP.


The GUID identifying the SIP that handles the file type.

Return Value

The return value is TRUE if the function succeeds; FALSE if the function fails. If the function fails, call the GetLastError function to determine the reason for failure.


If the SIP supports the file type passed by hfile, the function returns TRUE, and sets pgSubject to the GUID that identifies the SIP for handling the file type.

Each SIP implements its own version of the function that determines if the file type is supported. The specific name of the function may vary depending on the implementation of the SIP, but the signature of the function will match that of the pfnIsFileSupportedName function. The function name is added to the registry by the CryptSIPAddProvider function, which takes the function name as parameter in the pwszIsFunctionNameFmt2 field in the SIP_ADD_NEWPROVIDER structure.


Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header mssip.h

See Also