How to implement IDeskBand2 interface in C#

C

Christian Lund

Hi,

I am struggling to implement the following shell interface in C# :

====================================================
(extract from ShObjIdl.idl in Windows SDK)
//-------------------------------------------------------------------------
//
// IDeskBand2 interface
//
//
// [Member functions]
//
// IDeskBand2::CanRenderComposited(pfCanRenderComposited)
// Does the deskband support composited rendering (glass/translucent)?
//
// IDeskBand2::SetCompositionState(fCompositionEnabled)
// Tell the deskband to render with or without composition.
//
// IDeskBand2::GetCompositionState(pfCompositionEnabled)
// Does the deskband currently render with or without composition?
//
//-------------------------------------------------------------------------
[
uuid(79D16DE4-ABEE-4021-8D9D-9169B261D657),
object,
]
interface IDeskBand2 : IDeskBand
{
HRESULT CanRenderComposited([out] BOOL *pfCanRenderComposited);

HRESULT SetCompositionState([in] BOOL fCompositionEnabled);

HRESULT GetCompositionState([out] BOOL *pfCompositionEnabled);
}
=====================================================

I need to create the interface in one class and then implement them in
another.
Does anyone know how to properly convert this to C# code.

Thanks for any help,
Chris
 
C

Christian Lund

BTW, IDeksBand2 was introduced in Vista, to cope with transparency issues on
Aero.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top