Is there anything else special that RegSvr32.exe does beyond calling the
DllRegisterServer() & DllUnregisterServer() functions in a DLL that
implements a COM object?
The reason that I ask is that I'm looking at having an application program
deliberately call these 2 functions in a namespace extension DLL that I've
written. This all seems to be working OK w/respect to getting my NSE
registered or unregistered. However, there's one thing that I'm trying to
tidy up a bit.
The remaining task is to figure out how to tell all instances of the Windows
Explorer to refresh themselves upon the addition or removal of the NSE. It
seems that this must be done manually when RegSvr32 registers my NSE, but
when the NSE is unregistered, open instances of the Windows Explorer seem to
automatically remove my NSE's root folder from their displays within seconds
after RegSvr32 terminates. I've studied RegSvr32 while it works and have
monitored it with Spy++ and I don't see it generating any Windows
messages/events to trigger this. I suppose that rules out the SendMessage()
& PostMessage() API functions, but maybe there's something to be done with
SHChangeNotify() that can trigger this refresh of all instances of the explorer.
Any ideas?
TIA,
Chuck
--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road 864 801 2774 fax
Greer, SC 29651
Do not send me unsolicited commercial email.