All entries for Wednesday 10 May 2006

May 10, 2006

WMP Plug–in base library

During my adventures creating Windows Media Player plug–ins in .NET I decided it would be good to have a standard base library to handle most of the WMP goo–code. The result is that making a simple plug–in now consists of just:
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using Equin.WmpPluginLibrary;

namespace Test
{
[FriendlyName("My Plug-in")]
[Description("Example plug-in using Equin library.")]
[PluginType(PluginType.DisplayArea)]
[ComVisible(true)]
[Guid("8E8A3CA8-2464-423e-BED7-AF914B1449A4")]
public class MyPlugin : PluginBase
{
public override System.Windows.Forms.Control CreateUI()
{
Label label = new Label();
label.Text = "Hello, world!";
return label;
}
}

[System.ComponentModel.RunInstaller(true)]
public class Installer : PluginInstaller<MyPlugin>
{

}
}

The class uses some custom attributes to describe the plug–in. These are used by the PluginInstaller to set WMPs registry settings.

If anyone is interested in developing WMP plug–ins using .NET then leave a comment. I'll probably make the library source available online if there is sufficient interest…


Google Ads

Search this blog

Most recent comments

  • I scratched my eye while i was holding some kind of plastic packaging.. Anyways the corner of the pl… by Ercan on this entry
  • About a year ago my contacts that i was wearing, i guess were fautly, because shortly after they wer… by Jon on this entry
  • I got shower gel in my eye 4 and a half days ago, and becasue i rubbed my eyes a lot, i have scratch… by Chris on this entry
  • This website may help http://www.webmd.com/eye–health/tc/Eye–Injuries–Home–Treatment by S on this entry
  • I somehow got dirt, or debris in my eye. The terrible pain sent me in a tailspin. I was afraid of sa… by Bobbi on this entry

Tags

May 2006

Mo Tu We Th Fr Sa Su
Apr |  Today  | Jun
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31            

Galleries

Blog archive

Loading…
Not signed in
Sign in

Powered by BlogBuilder
© MMXX