How to use a Win32 API inteface in C#?

N

nox

hi,

for my last question I didn't get any answer, so I'll try to define
the question in another way...

the shell32.dll exposes an interface called ITaskbarList which has a
few functions to manipulate taskbar buttons

I know how to use the a "normal" API function with DllImport, but I
can't figure out how to implement this interface...

can you help me please?
 
N

nox

actually I know that I should not implement it, I've the first page in
the documentation (thx for the second link, this I haven't seen
yet)...

I just don't know how to use this interface in my application :(
 
A

Arne Vajhøj

nox said:
for my last question I didn't get any answer, so I'll try to define
the question in another way...

the shell32.dll exposes an interface called ITaskbarList which has a
few functions to manipulate taskbar buttons

I know how to use the a "normal" API function with DllImport, but I
can't figure out how to implement this interface...

ITaskbarList is not Win32 API - it is COM.

It seems to be a bit tricky to use from .NET though.

See:

http://www.codeproject.com/KB/winsdk/Vanishing_Windows.aspx
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=252502&SiteID=1

for some hints.

Arne
 

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