Source language: Translate to:

DLL Call Shell32 w/ SHChangeNotify

Questions about NeoBook PlugIns

Moderator: Neosoft Support

DLL Call Shell32 w/ SHChangeNotify

Postby smokinbanger » Sat Apr 27, 2013 9:25 am

Iv'e tried using hwp's hpwDllCall plugin to refresh file association icons using SHChangeNotify (http://msdn.microsoft.com/en-us/library/windows/desktop/bb762118(v=vs.85).aspx) in shell32 with:
Code: Select all
hpwDllCall "C:\Windows\System32\shell32.dll" "SHChangeNotify" "SHCNE_ASSOCCHANGED, 0, IntPtr.Zero, IntPtr.Zero" ""
and
Code: Select all
hpwDllCall "C:\Windows\System32\shell32.dll" "SHChangeNotify" "SHCNE_ASSOCCHANGED, 0, 0" ""

Both methods just kill the running pub without refreshing the icons. Does anyone know how to call shell32 properly and/or a vbscript to refresh explorer icons?
Just Sayin'...
smokinbanger
 
Posts: 198
Joined: Mon Jan 16, 2012 9:53 am
Location: United States

Re: DLL Call Shell32 w/ SHChangeNotify

Postby dec » Sat Apr 27, 2013 11:31 am

Hello,

Just for your information, the npRefreshDesktop action of my npUtil plugin try to doing this. In fact the action use both SHChangeNotify and send the "F5" key to the "Progman" window, trying to inform the system about the file association changes.
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Re: DLL Call Shell32 w/ SHChangeNotify

Postby HPW » Sat Apr 27, 2013 12:41 pm

hpwDllCall was not designed as a generic Dll-call plugin.
Only one sort of Dll with one parameter and one calling convention.
So here it seems not to be the right tool for the job.
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany


Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 0 guests