AssocIsDangerous

Declaration

BOOL AssocIsDangerous (LPCWSTR pszAssoc);

Parameters

The pszAssoc argument provides the address of a case-insensitive null-terminated string that describes the assocation to check.

Return Value

The function returns TRUE if the given association is dangerous, else FALSE.

Behaviour

The implementation in the SHLWAPI from Windows Vista is simply to return TRUE or FALSE according to whether the AssocGetUrlAction function returns URLACTION_SHELL_EXECUTE_HIGHRISK.

Availability

The AssocIsDangerous function is exported by name from SHLWAPI.DLL in builds of version 6.00 from Windows XP SP1 and higher, from Windows Server 2003 and Windows Vista and higher, and presumably in higher versions.