Geoff Chappell - Software Analyst
BOOL AssocIsDangerous (LPCWSTR pszAssoc);
The pszAssoc argument provides the address of a case-insensitive null-terminated string that describes the assocation to check.
The function returns TRUE if the given association is dangerous, else FALSE.
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.
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.