Click here to Skip to main content
15,895,142 members
Articles / Desktop Programming / MFC

Using screensavers inside the Windows Media Player

Rate me:
Please Sign up or sign in to vote.
4.94/5 (12 votes)
15 Jul 2011CPOL1 min read 108.5K   3.1K   53  
Wrapping a screensaver inside a WMP visualization plug-in.
//------------------------------------------------------------------------------

import "oaidl.idl";
import "ocidl.idl";

//------------------------------------------------------------------------------

[
	object,
	uuid(7DE1529E-8F58-4515-A7FC-3A7BC2F9630D),
	dual,
	helpstring("ISheepWMP Interface"),
	pointer_default(unique)
]

//------------------------------------------------------------------------------

interface ISheepWMP : IDispatch
{
	[propget, id(1), helpstring("property foregroundColor")] HRESULT foregroundColor([out, retval] BSTR *pVal);
	[propput, id(1), helpstring("property foregroundColor")] HRESULT foregroundColor([in] BSTR newVal);
};

//------------------------------------------------------------------------------

[
	uuid(7F617232-AA56-47B4-A8A6-4FBC8185B1C0),
	version(1.0),
	helpstring("SheepWMP 1.0 Type Library")
]

//------------------------------------------------------------------------------

library SHEEPWMPLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(62861803-3C16-491F-856A-E5C9C569B705),
		helpstring("SheepWMP Class")
	]
	coclass SheepWMP
	{
		[default] interface ISheepWMP;
	};
};

//------------------------------------------------------------------------------

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Australia Australia
Developing windows applications for over 15 years now starting on Win 3.1 with Object Oriented Pascal, progressed to C++ and OWL, in 1996 switch to MFC and never looked back, now focusing on .NET/Mono.

Comments and Discussions