Easy shell extensions
Posted on 12 Sep 2002 at 16:37
Shell extensions are one of the more esoteric aspects of Windows programming. You're probably aware that Windows Explorer is very versatile and can support a number of types of shell extension or plug-in. Thanks to Microsoft's excessive (and, in my opinion, unwarranted) fondness for the COM object model, shell extensions have to be written as small COM servers - DLLs that need to be registered with the system before they can be used. Once that's done, Explorer will transparently call your extensions as required.
While you're developing a shell extension, you'll frequently need to unregister the extension, which is done using this command-line:
REGSVR32 /u IconHandlerDemo.dll
Once you've unregistered an extension, you can usually delete its DLL, but you'll sometimes find Delphi will complain that it's unable to create a new DLL because Windows Explorer still has it in use. On such occasions, it's necessary to 'pull the plug' on Windows Explorer, as previously described, before you can delete the existing DLL. However, these minor irritations aside, I think you'll agree that creating a shell extension in this way is infinitely easier than using Microsoft tools.
As a side benefit, high-quality shell controls such as the Shell Control Pack from Plasmatech (www.plasmatech.com) are fully compatible with Explorer's shell-extension technology, and you'll find that a registered shell extension works perfectly with these components. You can purchase version 1.1 of Shell+ for a remarkably cheap $80 (£54), all the more remarkable because full source code is included. Version 1.2 of the component set will be out soon and this will apparently include new components for implementing shell links, drag-and-drop operations and more. Highly recommended.
From around the web
advertisement
- Why you have to be left in the dark on OS patches
- Is Microsoft mismanaging Windows on ARM?
- Dealing with spam surrogates
- Why 3G broadband can be better and cheaper than ADSL
- Is Twitter bad for business?
- Publishing your email address isn't a security disaster
- Why you'll need a fax machine to develop iOS apps
- Learning to adapt to the mobile web
- Why you shouldn't use WPS on your Wi-Fi network
- Disabled users suffer when software breaks the rules
- Laptop bag reviews: nine tested
- Sony VAIO T Series Ultrabook review: first look
- Revealed: the military standards and robots HP uses to test its laptops
- Windows 8: multi-monitors and double standards?
- Why is TalkTalk's year-old porn filter suddenly big news?
- Why are laptop screens so far behind mobiles?
- HP EliteBook Folio review: first look
- The shoebox-sized all-in-one printer
- Forget the Ultrabook: here comes the HP Sleekbook
- HP Spectre XT review: first look
- Autonomy's Lynch joins 27,000 on way out of HP
- ICO: no fines for breaking cookie rules
- HP set to slash up to 30,000 jobs
- Government sites to miss cookie deadline
- Microsoft tweaks multi-monitor support in Windows 8
- Apple patches Leopard, despite ending support last year
- Defra opens rural broadband funding applications
- BT's broadband sales surpass calls revenue
- Apple patches multiple security issues
- FBI warns travellers to beware attacks via hotel Wi-Fi
advertisement
