Follow this article to establish a Windows Shell Extension with Delphi.

Download the document.