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
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