Shenoy has written a great example of a live template extension. It uses PInvoke web service from the PInvoke.net website. For Delphi code, it also uses the BabelCode web service to translate the declaration to Delphi (since PInvoke.net only returns C# and perhaps VB.NET code, I think).
So, you’re writing a .NET app and need to make a PInvoke call to some unmanaged Win32 API? With this live template extension, no problem: type pinvd (in Delphi), or pinvc (in C#), press Ctrl+J, type in the function name, and press Enter 😉 The declaration will be inserted directly into your code. I think it’s very nice!