How to use a Win32 API inteface in C#?

  • Thread starter Thread starter nox
  • Start date Start date
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?
 
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 :(
 
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
 
Back
Top