RefreshShellIcons: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
 
(No difference)

Latest revision as of 05:44, 11 July 2005

Author: saivert (talk, contrib)


Description

This function refreshes the shell associations. Do this after setting file associations.

Usage

  Call RefreshShellIcons

The Function

Function RefreshShellIcons
  !define SHCNE_ASSOCCHANGED 0x08000000
  !define SHCNF_IDLIST 0
  System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
FunctionEnd